Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 870 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 870 Bytes

httpfake

Httpfake is a program that demnostrate how to hijack http package and response a advertisement to browser. httpfake 演示http数据协议过程,涉及到数据包采集,tcp协议包构造等技术点。

Install

centos:

#安装libpcap-dev:
yum -y install libpcap-dev 

#编译
wget https://github.com/spkettas/httpfake/archive/master.zip
unzip master.zip
cd master
make

Usage(需要root权限启动):

./httpfake 网卡名 采集类型 拦截IP 
./httpfake eth0 1 10.14.230.9

Example

  • 劫持前: 劫持前

  • 劫持后: 劫持后

At last

更高效的采集方式,可考虑PF_RING,DPDK等零拷贝库。