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 ```

requirements

You have must WinPcap or npcap installed which is 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. See the LICENSE file for details.