Skip to content

A program to hijack http package.

Notifications You must be signed in to change notification settings

sankred9527/httpfake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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等零拷贝库。

About

A program to hijack http package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 74.5%
  • C 22.2%
  • Makefile 3.0%
  • Shell 0.3%