rscan
所属分类:Linux/Unix编程
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2022-03-02 13:42:09
上 传 者:
sh-1993
说明: 用Rust编程语言编写的免费网络实用程序,用于扫描打开的端口。
(A free networking utility written in the Rust programming language to scan for open ports.)
文件列表:
Cargo.lock (3050, 2021-11-06)
Cargo.toml (542, 2021-11-06)
LICENSE (35147, 2021-11-06)
src/ (0, 2021-11-06)
src/config.rs (7755, 2021-11-06)
src/main.rs (4751, 2021-11-06)
src/result.rs (721, 2021-11-06)
# rscan
![GitHub release (latest by date)](https://img.shields.io/github/v/release/CodeDead/rscan)
![GitHub](https://img.shields.io/badge/language-Rust-green)
![GitHub](https://img.shields.io/github/license/CodeDead/rscan)
rscan is a free and open-source networking utility written in the Rust programming language to scan for open ports.
## Building
To build the binary-ready `rscan`, issue the following command:
```shell
cargo build
```
To build the production-ready and optimized version, run:
```shell
cargo build --release
```
## Running
To run `rscan` using `cargo`, issue the following command:
```shell
cargo run
```
To run `rscan` from your terminal, issue the following command:
```shell
./rscan [FLAGS] [OPTIONS]
```
### Arguments
You can specify the following command-line arguments:
| Command | Short | Value | Default | Description |
|---------------|-------|------------------|---------|-----------------------------------------------------------------------------------------------------------------|
| `threads` | `-c` | Integer value | `1` | Specifies the number of threads to use |
| `host` | `-h` | String | `N/A` | Specifies the host (or IP address) that needs to be scanned |
| `startport` | `-s` | `0` - `65535` | `0` | Specifies the initial port that needs to be scanned |
| `endport` | `-e` | `0` - `65535` | `65535` | Specifies the last port that needs to be scanned |
| `timeout` | `-t` | Integer | `250` | Specifies the connection timeout (in milliseconds) before a port is marked as closed |
| `noclosed` | `-n` | N/A | `true` | Specifies whether closed ports should be outputted or not |
| `unsorted` | `-u` | N/A | `false` | Specifies whether the output should be sorted by port number or not |
| `interactive` | `-i` | N/A | `false` | Specifies whether the output should be displayed while scanning or whether to wait until the scan has completed |
It is important to note that using more threads does not automatically improve performance.
In terms of performance; when you have specified to use more threads than there are ports to scan, `rscan` will automatically lower the amount of threads it uses to be equal to the total amount of ports
that need to be scanned.
### Example usage
To read the help documentation, you can run:
```shell
./rscan --help
```
If you want to scan only a single port, you could use something like:
```shell
./rscan -h 127.0.0.1 -s 80 -e 80
```
If no start port is provided, `rscan` will simply start from the smallest port number and will scan until the end port is reached:
```shell
./rscan -h 127.0.0.1 -e 80
```
Likewise, if no end port is provided, `rscan` will scan from the start port until the largest port number (`65535`):
```shell
./rscan -h 127.0.0.1 -s 65530
```
To make use of multi-threading, you can specify the number of threads `rscan` should use by modifying the `threads` argument:
```shell
./rscan -h 127.0.0.1 -c 5
```
## Dependencies
A couple of dependencies are required in order to build `rscan`:
* [clap](https://crates.io/crates/clap)
## About
This library is maintained by CodeDead. You can find more about us using the following links:
* [Website](https://codedead.com)
* [Twitter](https://twitter.com/C0DEDEAD)
* [Facebook](https://facebook.com/deadlinecodedead)
* [Reddit](https://reddit.com/r/CodeDead/)
Copyright 2021 CodeDead
近期下载者:
相关文件:
收藏者: