Some days ago, i start working on a bot for the Dice
BTC game at 999dice.com
The codes i use are bash and imacros, and now i want to make it Opensource. iMacros is a plugin for Firefox to automate actions.
Imagine we want to bet 10 times:
0.000002
0.00005
0.001
...
10*3=30 Total bets
What i do to solve these, is create the iMacros code with bash script, for example:
#!/bin/bash
IFS=$'\n'
echo "----------------------------------------"
echo "----------------BTCmaker----------------"
echo "----------------------------------------"
echo "----------------------------------------"
echo "-----------Make-a-good-Karma------------"
echo "----------------------------------------"
echo "->1GEomkEsQcPoaPDUGQU2L78b2YEFRikUxw"
echo "----------------------------------------"
echo "VERSION BUILD=8820413 RECORDER=FX" > ~/iMacros/Macros/999bot.iim
echo "SET !ERRORIGNORE YES" >> ~/iMacros/Macros/999bot.iim
echo "TAB T=1" >> ~/iMacros/Macros/999bot.iim
echo "WAIT SECONDS=5" >> ~/iMacros/Macros/999bot.iim
for a in $(seq 1 10)
do
echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002" >> ~/iMacros/Macros/999bot.iim
echo "WAIT SECONDS=5" >> ~/iMacros/Macros/999bot.iim
echo "TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle" >> ~/iMacros/Macros/999bot.iim
echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005" >> ~/iMacros/Macros/999bot.iim
echo "WAIT SECONDS=6" >> ~/iMacros/Macros/999bot.iim
echo "TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle" >> ~/iMacros/Macros/999bot.iim
echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001" >> ~/iMacros/Macros/999bot.iim
echo "WAIT SECONDS=7" >> ~/iMacros/Macros/999bot.iim
echo "TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle" >> ~/iMacros/Macros/999bot.iim
done
echo ""
echo "imacros 999bot.iim created"
echo "Good luck"
iMacros Output
VERSION BUILD=8820413 RECORDER=FX
SET !ERRORIGNORE YES
TAB T=1
WAIT SECONDS=5
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000002
WAIT SECONDS=5
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00005
WAIT SECONDS=6
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.001
WAIT SECONDS=7
TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle
for make a random up low bet you can use the bash code:
d=$(echo $[ $RANDOM % 2 ])
if [ $d = 1 ]; then
e=$(echo "TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle")
elif [ $d = 0 ]; then
e=$(echo "TAG POS=14 TYPE=SPAN ATTR=CLASS:BetControlTitle")
else
echo "fail"
fi
2 days ago 1 of my bots was beting all night. it starts with 0.0018748 BTC, and in the morning i withdraw 0.00440907 BTC
https://blockchain.info/tx-index/8c28470f2b6f8c4070c6bf870c70ba258b49bef8fb974ca906169a69fca8e0fahttps://blockchain.info/tx-index/d8d986db9c603493089fd8205287be42f7e8fc0b70101fe7330ca9debf050008The code has some coments, it is open source and any one can modify it:
#!/bin/bash
IFS=$'\n'
echo "----------------------------------------"
echo "----------------BTCmaker----------------"
echo "----------------------------------------"
echo "----------------------------------------"
echo "-----------Make-a-good-Karma------------"
echo "----------------------------------------"
echo "->1GEomkEsQcPoaPDUGQU2L78b2YEFRikUxw"
echo "----------------------------------------"
echo "VERSION BUILD=8820413 RECORDER=FX" > ~/iMacros/Macros/999bot.iim
echo "SET !ERRORIGNORE YES" >> ~/iMacros/Macros/999bot.iim
echo "TAB T=1" >> ~/iMacros/Macros/999bot.iim
echo "WAIT SECONDS=5" >> ~/iMacros/Macros/999bot.iim
#echo "URL GOTO=https://www.999dice.com/?2438044" >> ~/iMacros/Macros/999bot.iim
for x in $(seq 1 2000)
do
#*******************************************************************************************************
#Creating low bets Hi/Lo/Hi/Lo...
#z=$(echo $[ $RANDOM % 3 + 1 ])
#for b in $(seq 1 $z)
#do
#echo "TAG POS=14 TYPE=SPAN ATTR=CLASS:BetControlTitle" >> ~/iMacros/Macros/999bot.iim
#echo "WAIT SECONDS=3" >> ~/iMacros/Macros/999bot.iim
#echo "TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle" >> ~/iMacros/Macros/999bot.iim
#echo "WAIT SECONDS=3" >> ~/iMacros/Macros/999bot.iim
#done
#*******************************************************************************************************
#Random if bet hi or low
#y=$(echo $[ $RANDOM % 4 + 1])
#for a in $(seq 1 $y)
for a in $(seq 1 4)
do
d=$(echo $[ $RANDOM % 2 ])
if [ $d = 1 ]; then
e=$(echo "TAG POS=13 TYPE=SPAN ATTR=CLASS:BetControlTitle")
elif [ $d = 0 ]; then
e=$(echo "TAG POS=14 TYPE=SPAN ATTR=CLASS:BetControlTitle")
else
echo "fail"
fi
#random bet amount
dx=$(echo $[ $RANDOM % 10 ])
if [ $dx = 0 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.0000002")
elif [ $dx = 1 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000006")
elif [ $dx = 2 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00002")
elif [ $dx = 3 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.0000002")
elif [ $dx = 4 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.000004")
elif [ $dx = 6 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.0000002")
elif [ $dx = 7 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.00002")
elif [ $dx = 8 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.0001")
elif [ $dx = 9 ]; then
ex=$(echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&CLASS:StandardTextBox&&MAXLENGTH:15&&ID:BetSizeInput CONTENT=0.0000002")
else
echo "fail"
fi
#Creating random iMacros
echo "$e" >> ~/iMacros/Macros/999bot.iim
echo "$ex" >> ~/iMacros/Macros/999bot.iim
echo "WAIT SECONDS=5" >> ~/iMacros/Macros/999bot.iim
done
done
#firefox imacros://run/?m=999bot.iim &
echo "imacros 999bot.iim created"
echo "Good luck"
#Auto Withdraw
#If you want to try these delet "#" and change the BTC addres.
#echo "TAG POS=1 TYPE=DIV ATTR=CLASS:TextButton<SP>WithdrawButton" >> ~/iMacros/Macros/999bot.iim
#echo "TAG POS=1 TYPE=INPUT:TEXT ATTR=TYPE:text&&MAXLENGTH:40&&ID:WithdrawAddress CONTENT=1GEomkEsQcPoaPDUGQU2L78b2YEFRikUxw" >> ~/iMacros/Macros/999bot.iim
#echo "TAG POS=1 TYPE=SPAN ATTR=ID:WithdrawAllButton&&CLASS:TextButton" >> ~/iMacros/Macros/999bot.iim
#echo "ONDIALOG POS=1 BUTTON=OK CONTENT=" >> ~/iMacros/Macros/999bot.iim
#free btc from faucet
#200 satoshis for 10 minutes... Balance < 999 satoshis
#TAG POS=1 TYPE=DIV ATTR=ID:ShowFaucetBoxButton&&CLASS:ActionBoxTab<SP>ActionBoxTabButton
#TAG POS=2 TYPE=SPAN ATTR=CLASS:FaucetClaimTitle
#TAG POS=1 TYPE=DIV ATTR=ID:FaucetBetsButton&&CLASS:ActionBoxTab<SP>ActionBoxTabButton
What it do?
1.-Begins cycle 1 to 2000
2.-Chose a random Hi or Lo bet.
3.-Chose a random number for the list:
0.0000002
0.000006
0.00002
0.0000002
0.000004
0.0000002
0.00002
0.0001
0.0000002
4.-Make bet
5.-Wait 5 seconds
6.-Cycle 2 to 2000
...
I recomend bet to 95% prob wins.
For win yor bot must be lucky and lose when it bets lo, that is why you see 0.0000002x4 in the numbers list.
About win by referrals i dont think that is business, because you win the 0.05%.
Referrals bets:0.06541536 BTC
I win:0.0000327 BTC
0.0000327/0.06541536=0.000499
0.05%*100=0.0005
0.06541536*0.0005=0.0000327 <--- 3270 satoshis for 0.065 Btc on bets
I make that 0.065 BTC referral bet with 7 virtual machines each one using the bot in 1H.
But as i say, it is not business.
The bash code i use, is for unix, it works on mac and linux. But if you need a personal configuration bot, a can make any configuration you whant on iMacros.
I will make the 3 first bots for free... just tell me the configuration of the bets, if you want it random, % to bet and btc list to bet...
If you like these codes, consider making a donation: 1GEomkEsQcPoaPDUGQU2L78b2YEFRikUxw