Added range feature and and dns resolving
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Justine Pelletreau
2023-07-14 11:58:00 +02:00
parent 4edb7b08ab
commit 2c8ef69905
3 changed files with 60 additions and 16 deletions

View File

@ -34,16 +34,17 @@ Stressing 127.0.0.1 using 100 concurrent threads per port for 30s
See the help :
```
1648 justine@portnut > target/release/portnut -h
justine@portnut > target/release/portnut -h
A simple TCP port scanner / stresser. If stressing, you can pass a payload via a pipe
Usage: portnut [OPTIONS] --address <ADDRESS>
Options:
-a, --address <ADDRESS> IP address to scan
-a, --address <ADDRESS> IP address or hostname to scan
-t, --timeout <TIMEOUT> Timeout for each connection in seconds [default: 1]
-w, --wait <WAIT> Number of milliseconds to wait in between scans when scanning OR duration of stress when stress testing (in seconds) [default: 30]
-p, --ports <PORTS>... Ports to stress / scan, separated by commas (22,80)
-r, --range Set this flag to treat the ports as a range rather than a list
-s, --stress Set this flag to stress the ports instead of scanning them
-c, --cthreads <CTHREADS> How many threads per port when stressing (Concurrent Threads) [default: 5]
-h, --help Print help