Httpfake is a program that demnostrate how to hijack http package and response a advertisement to browser. httpfake 演示http数据协议过程,涉及到数据包采集,tcp协议包构造等技术点。
centos:
#安装libpcap-dev:
yum -y install libpcap-dev
#编译
wget https://github.com/spkettas/httpfake/archive/master.zip
unzip master.zip
cd master
make
./httpfake 网卡名 采集类型 拦截IP
./httpfake eth0 1 10.14.230.9
更高效的采集方式,可考虑PF_RING,DPDK等零拷贝库。