项目地址:https://github.com/OffensivePython/Pinject
Raw Packet Injection tool
比起scrpy 起来简单多了,当然功能不如他,但是自己写一些raw的程序经测试笔scrpy快很多。
注:windows下不支持sock raw.
例子:
# IP Header
ipobj = IP(src_host, dst_host)
# TCP Header
tcpobj = TCP(1234, 80)
response = send(ipobj, tcpobj, iface="eth0", retry=1, timeout=0.3)
if response:
ip = ipobj.unpack(response)
response &#