1
15015613 2017-07-28 15:47:43 +08:00 via Android
可以用 python 写个脚本,先正则提取请求参数,然后直接调用 requests 库。
|
2
kfll 2017-07-28 15:54:33 +08:00 via Android
用 netcat 发
|
3
veelog 2017-07-28 16:01:55 +08:00 via iPhone
包重放?
|
4
ysc3839 2017-07-28 22:11:24 +08:00
随手写了个
``` with open('http.txt') as f: lines = f.readlines() method, url, version = lines[0].split(' ') curl = "curl '%s'" % url if method != 'GET': curl += ' -X %s' % method del lines[0] for line in lines: curl += " -H '%s'" % line print(curl) ``` |