Quick Network Scanner CLI
Rust command line utility for quick asynchronous network hosts scanning.
NOTE: in order to use the tool you may need to increase the maximum allowed open files. E.g.:
See the CLI tool on crates.io.
Obtain qsc
Clone the repository and build qsc with:
# Install (optional)
If not installed, qsc executable can be found in ./target/release/qsc.
Alternatively, it is possible to install from crates.io:
Usage
Print the help message using -h option:
>>> qsc
)
;
;
|;
;
;
here are a few usage examples:
# Single target, multiple port
# Scan local lan for SSH (assuming 192.168.1.0/24). In this case we reduce the
# timeout to 500ms.
# Use a domain name as target
# Use a file as target, the file must contain a target (IP, cidr or domain name)
# for each line
# Print all the ports with OPEN/CLOSED indication and save results in json
# format in file /tmp/res.json
Docker Image
It's possible to build and use a Docker image configured for running qsc.
NOTE: currently only Linux has been tested for building the Docker image.
Assuming Docker is installed on your machine and configured to run without sudo (if not, see here and here), proceed by building the image:
Then you can use the 0xor0ne/qscan Docker image for running the scanner:
the same thing can be done using the helper script:
Docker Image from hub.docker.com
Alternatively, it is possible to download and run a precompiled image from hub.docker.com: