项目作者: slankdev

项目描述 :
Tiny packet sender. User can craft IP packet flexibly.
高级语言: C++
项目地址: git://github.com/slankdev/pktsend.git
创建时间: 2017-09-02T06:21:36Z
项目社区:https://github.com/slankdev/pktsend

开源协议:MIT License

下载


pktsend

Tiny packet sender. User can craft IP packet flexibly.
I assume that this tool is used with shell-scripts.
It is easy to extend (ex. net protocol fields). If you neet to support
new feature to this software, please tell me that. (author info is below)

Install/Uninstall

  1. $ git clone http://github.com/slankdev/pktsend
  2. $ cd pktsend
  3. $ make && sudo make install //install
  4. $ sudo make Uninstall // uninstall

Options

  1. $ pktsend -h
  2. USAGE: ./pktsend [OPTION]
  3. Basic Option
  4. -i ifname interface name
  5. -w file write as pcap format
  6. -c count packet count
  7. -h show usage
  8. --version show version
  9. --verbose verbose output
  10. --hex print packet as hex
  11. Option for Crafting Packet Binary
  12. --hsrc=11:22:33:44:55:66 src mac address
  13. --hdst=ff:ff:ff:ff:ff:ff dst mac address
  14. --etype=0x0800 ethernet type
  15. --psrc=192.168.0.10 src ip address
  16. --pdst=192.168.0.1 dst ip address
  17. --proto=1 ip protocol

Screenshot

ss

Execution Sample Scripts

  1. #!/bin/bash
  2. for ((i=0; i<10; i++)) do
  3. sudo pktsend --psrc=192.168.0.$i -i lo
  4. done

Author & Licence

This software is developed under the MIT Licence. please see LICENCE

Autor Infos

  • Hiroki SHIROKURA
  • slank.dev [at] gmail.com
  • @slankdev (twitter)
  • hiroki.shirokura (facebook)