Crates.io | rscan |
lib.rs | rscan |
version | 0.2.1 |
source | src |
created_at | 2022-07-22 14:24:03.792592 |
updated_at | 2022-07-22 20:35:28.348715 |
description | Simple tool for a quick and reliable port scanning |
homepage | |
repository | https://github.com/h33333333/rscan |
max_upload_size | |
id | 630823 |
size | 30,985 |
rscan
is a simple tool to quickly scan a local or remote host for the open ports.
This project was mainly made to save people (and myself) some time during port scanning. There is a great tool called nmap
, which is considered the gold standard for network discovery and scanning, and rscan
doesn't have all the features nmap
does, but when it comes to a simple port scanning - rscan
can do it a lot quicker.
For now, rscan
can only do the SYN scan (or Half-open scan). It is often called "Stealth scan", because TCP handshake is never completed. Also, by default it checks if the host is up by pinging the target before the scan begins (this can be changed, check --help
for more info). rscan
is faster because it is working in multithreading mode (by default,the number of threads is 4, but you can change this. For more info refer to the --help
page)
Currently, the only way to install rscan
is through cargo:
$ cargo install rscan
$ sudo setcap cap_net_raw+ep ~/.cargo/bin/rscan
Scanning the google.com
using the en0
interface:
$ sudo rscan -i en0 google.com
DNS lookup results: google.com is at 216.58.209.14
Host is up, starting scan...
Scanning 216.58.209.14 using SYN scan:
*Interface: en0
*Threads: 4
*Port: 58058
---
Stats: 65533 filtered/closed port(s) (RST or no response), 2 open port(s)
PORT STATUS
80 Open
443 Open
Scan was completed in 10 seconds (it is worth noticing that this strongly depends on the load of your network and the current CPU usage).
rscan
should always be run using the sudo
. This happens because rscan
is using the raw sockets behind the scenes.rscan
on Windows is not as trivial as it is on the Unix based systems. For more inforamtion please refer to the libpnet's usage section