-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbet.sh
executable file
·145 lines (128 loc) · 4.7 KB
/
bet.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
board_id='056f1931-0266-4ed6-97fe-40e661cd4975'
auto_cash_out="2"
get_board_result() {
curl -s "https://eu-server-w9.ssgportal.com/JetXNode83//api/JetXapi/Board/$board_id" \
-H 'authority: eu-server-w9.ssgportal.com' \
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.8' \
-H 'referer: https://eu-server-w9.ssgportal.com/JetXNode83/JetXLight/Board.aspx?Token=b063bdf3-92f2-4414-890d-173d074d9fac&ReturnUrl=https%3a%2f%2fgamelaunch.everymatrix.com%2fLoader%2fLobbyResolver%2f2314%2f285%3fcasinolobbyurlencoded%3diuANNG_Ju4flgEnwneQN8lCr2uoM1Gw2&StopUrl=&Skin=&chat=' \
-H 'sec-ch-ua: "Brave";v="119", "Chromium";v="119", "Not?A_Brand";v="24"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-gpc: 1' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
-H 'x-requested-with: XMLHttpRequest' \
--compressed
}
place_bet() {
place=$(curl "https://eu-server-w9.ssgportal.com/JetXNode83//api/JetXapi/Bet/$board_id" \
-H 'authority: eu-server-w9.ssgportal.com' \
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.8' \
-H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'origin: https://eu-server-w9.ssgportal.com' \
-H "referer: https://eu-server-w9.ssgportal.com/JetXNode83/JetXLight/Board.aspx?Token=$board_id&ReturnUrl=https%3a%2f%2fgamelaunch.everymatrix.com%2fLoader%2fLobbyResolver%2f2314%2f285%3fcasinolobbyurlencoded%3diuANNG_Ju4flgEnwneQN8lCr2uoM1Gw2&StopUrl=&Skin=&chat=" \
-H 'sec-ch-ua: "Brave";v="119", "Chromium";v="119", "Not?A_Brand";v="24"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'sec-gpc: 1' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
-H 'x-requested-with: XMLHttpRequest' \
--data-raw "Amount=$1&Autocashout=$auto_cash_out&Position=0" \
--compressed)
echo "... Betting $1 MGA"
}
place_bet_demo() {
echo "... Betting $1 MGA"
}
placed_bet="false"
limit=3
initial_bet_amount=500
multiplier=1
under_two_count=0
skip_next="false"
gain_count=0
loss=0
total_gain=$((gain - loss))
# Function to initialize variables
init_all() {
placed_bet="false"
under_two_count=0
multiplier=1
}
# Function to clear the terminal
clear_terminal() {
if command -v clear > /dev/null; then
clear
else
printf '\033c'
fi
}
# Main function to execute the script logic
launch() {
board_res=$(get_board_result)
is_finished=$(echo "$board_res" | jq -r '.SocketInfo.IsFinnished')
value=$(echo "$board_res" | jq -r '.SocketInfo.Value')
if ((multiplier > 4)); then
init_all
((initial_bet_amount *= 2))
fi
if [ "$placed_bet" == "true" ] && (( $(echo "$value > 1.99" | bc -l) )); then
# clear_terminal
((total_gain += initial_bet_amount))
((gain_count++))
current_time=$(date +"%T")
echo
echo "$current_time"
echo "... Bet : $(($initial_bet_amount * $multiplier))MGA - Gain : $(($initial_bet_amount * $multiplier * 2))MGA"
echo "... Total gain = $total_gain MGA"
echo "... Removing bet"
echo "... Waiting for next signal"
if ((gain_count >= 2)); then
skip_next="true"
gain_count=0
echo "... skipping next signal"
fi
echo
initial_bet_amount=500
init_all
sleep 2
fi
if [ "$is_finished" == "true" ] && (( $(echo "$value > 1.99" | bc -l) )); then
init_all
fi
if [ "$is_finished" == "true" ] && (( $(echo "$value >= 1.00 && $value <= 1.99" | bc -l) )); then
((under_two_count++))
if [ "$placed_bet" == "true" ]; then
if ((multiplier < 4)); then
((multiplier *= 2))
# else
# init_all
# fi
fi
placed_bet="false"
fi
sleep 3
fi
if [ "$is_finished" == "true" ] && ((under_two_count >= limit)) && [ "$placed_bet" == "false" ]; then
if [ "$skip_next" == "true" ]; then
skip_next="false"
init_all
else
place_bet "$(($initial_bet_amount * $multiplier))"
placed_bet="true"
fi
fi
}
# Entry point
echo "... Script now running"
echo "... Waiting for signal"
while true; do
launch
done