Crates.io | sendpkt-rs |
lib.rs | sendpkt-rs |
version | 0.1.1 |
source | src |
created_at | 2020-07-28 14:46:34.092764 |
updated_at | 2020-07-28 14:54:21.06667 |
description | send tcp packet from cli |
homepage | |
repository | https://github.com/detailyang/sendpkt-rs |
max_upload_size | |
id | 270468 |
size | 27,124 |
sendpkt-rs
sendpkt-rs send the TCP Packet from cli
kill the quiet TCP connection (CLOSE-WAIT status) by sending the RST segment.
sendpkt-rs is a command line tool to send TCP Packet with specified option as the following:
USAGE:
sendpkt [FLAGS] [OPTIONS] --ip-dip <ip-dip> --ip-sip <ip-sip> --tcp-dport <tcp-dport> --tcp-sport <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-dip>
--ip-sip <ip-sip>
--ip-ttl <ip-ttl>
--tcp-dport <tcp-dport>
--tcp-seq <tcp-seq>
--tcp-sport <tcp-sport>
--tcp-window <tcp-window>
You have must WinPcap or npcap installed which is libpnet required.
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
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
sendpkt-rs is under the MIT license. See the LICENSE file for details.