Using Rust to Build CLI Application to Check Socket Connection of Multiple Hosts by Thread Mode
If you’re running macOS, Linux, or another Unix-like OS. To download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/andrealvesguimaraes/thread-tcp-check.git
cd thread-tcp-check
cargo build --release
nano iplist.txt
Usage: thread-tcp-check [OPTIONS]
Options: -f, --file File Name -p, --port TCP Port Number -h, --help Print Help -V, --version Print Version
./target/release/thread-tcp-check --file iplist.txt --port 8080