23 lines
306 B
Markdown
23 lines
306 B
Markdown
# Netcat
|
|
Manual `man nc`
|
|
|
|
## Port Scanning
|
|
scan a single port
|
|
```bash
|
|
nc -v -w 2 z 192.168.56.1 22
|
|
```
|
|
|
|
scan multiple ports
|
|
```bash
|
|
nc -v -w 2 z 192.168.56.1 22 80
|
|
```
|
|
|
|
scan range of ports
|
|
```bash
|
|
nc -v -w 2 z 192.168.56.1 20-25
|
|
```
|
|
|
|
## Find a Service Running on Port
|
|
```bash
|
|
nc -v -n 192.168.56.110 80
|
|
``` |