25 lines
320 B
Markdown
25 lines
320 B
Markdown
# Network
|
|
|
|
## 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
|
|
``` |