sendpkt-rs

sendpkt-rs send the TCP Packet from cli

# Purpose kill the quiet TCP connection (CLOSE-WAIT status) by sending the RST segment. # Sendpkt-rs sendpkt-rs is a command line tool to send TCP Packet with specified option as the following: ```bash USAGE: sendpkt [FLAGS] [OPTIONS] --ip-dip --ip-sip --tcp-dport --tcp-sport FLAGS: -h, --help Prints help information --tcp-flag-ack --tcp-flag-cwr --tcp-flag-ece --tcp-flag-fin --tcp-flag-ns --tcp-flag-psh --tcp-flag-rst --tcp-flag-syn --tcp-flag-urg -V, --version Prints version information -v, --verbose Verbose mode (-v, -vv, -vvv, etc.) OPTIONS: --ip-dip --ip-sip --ip-ttl --tcp-dport --tcp-seq --tcp-sport --tcp-window ``` # Install 1. cargo install sendpkt-rs 2. Download the binary from [sendpkt-rs/releases](https://github.com/detailyang/sendpkt-rs/releases) # Requirements You have must WinPcap or npcap installed which is [libpnet](https://github.com/libpnet/libpnet) required. ### usage ## send rst packet ```bash sendpkt --ip-dip 127.0.0.1 --ip-sip 127.0.0.1 --tcp-dport 8888 --tcp-sport 1234 --tcp-seq 0x12345 --tcp-flag-rst ``` ## send syn packet ```bash sendpkt --ip-dip 127.0.0.1 --ip-sip 127.0.0.1 --tcp-dport 8888 --tcp-sport 1234 --tcp-seq 0x12345 --tcp-flag-syn ``` # License sendpkt-rs is under the [MIT license](/LICENSE). See the [LICENSE](/LICENSE) file for details.