1 Star 0 Fork 0

LeoZhang/tcprewrite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
===============================================================================
	Caprewrite 0.1 (c) 2015 zealoussnow<zealoussnow@qq.com>
===============================================================================

Caprewrite is a packet tool that can be alter the source ip, source mac, dest
ip and dst mac in packet.

The following is the usage of caprewrite:

Usage: ./caprewrite [-i|--interface ARG] [-d|--dir ARG] [-s|--save] [--smac=ARG]
       [--dmac=ARG] [--sip=ARG] [--dip=ARG] [-v|--version] [-?|--help] [--usage]
  -i, --interface=ARG    Set interface of sending packets
  -d, --dir=ARG          Directory of saving pcaps
  -s, --save             A switch for saving pcaps
  --smac=ARG             Set Source MAC
  --dmac=ARG             Set Destination MAC
  --sip=ARG              Set Source IP
  --dip=ARG              Set Destination IP
  -v, --version          Show version information
  -?, --help             Show this help message
  --usage                Display brief usage message

-i, Specified a network interface that you want to use it send packets, 
	e.g. "-i eth0"

-d, The directory stored the packets, e.g. "-d ./pcaps/"

-s, A switch for saving packets, if you add, will store the processed packets,
	e.g. "-s"

--smac=ARG, Specified the source hardware address, 
	e.g. "--smac=00:0C:29:BC:72:50 or --smac=00-0C-29-BC-72-50"
	If you don't use this option, it will automatic get your hardware of network interface

--sip=ARG, Specified the source ip address,
	.eg. "--sip=192.168.xxx.xxx"
	NOTE: If you don't use this option, it will automatic get your ip address of network interface

--dmac=ARG, Specified the destination hardware address,
	.e.g "--dmac=00:0C:29:BC:72:50 or --dmac=00-0C-29-BC-72-50"
	NOTE: If you don't use this option, it will automatic get the hardware of default gateway

--dip=ARG, Specified the destination ip address,
	.e.g. "--dip=192.168.xxx.xxx"
	NOTE: If you don't use this option, it will not alter the destination in packet

NOTE: 
1.Log is stored in /dev/shm/capwrite.log, every log file is less than 10M,
this program only save 5 log files.

2.The processed packets also  stored in /dev/shm/%d-cache.cap. If your don't
use -s option, the cap file is empty

空文件

简介

暂无描述 展开 收起
C
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/zealoussnow/tcprewrite.git
git@gitee.com:zealoussnow/tcprewrite.git
zealoussnow
tcprewrite
tcprewrite
master

搜索帮助