linux获取用户完整请求url,linux – 如何查找进程访问的URL

您可以使用tcpflow执行此操作.来自网站:

tcpflow is a program that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis or debugging. A program like ‘tcpdump’ shows a summary of packets seen on the wire, but usually doesn’t store the data that’s actually being transmitted. In contrast, tcpflow reconstructs the actual data streams and stores each flow in a separate file for later analysis.

它会以[ip].[port] – [ip].[port]格式将日志转储到当前工作目录.

# mkdir http_logs

# cd http_logs

# tcpflow dst port 80

此示例记录所有进入端口80的TCP数据包,并将它们保存在当前目录中以便于调试.您还可以使用pcap filters进一步过滤.

您可能还会发现-a开关很有用,它可以启用后期处理.例如,它将HTTP标头和主体放在单独的文件中.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值