Added nmap notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-04-20 21:03:37 +02:00
parent d969c6e8c3
commit 67cd9709ef

22
knowledge base/nmap.md Normal file
View File

@@ -0,0 +1,22 @@
# Nmap
## TL;DR
```shell
# scan all 65535 ports on a host
nmap -p- 192.168.1.1
# scan a single port on a subnet
nmap -p 22 192.168.0.0/24
# detect a host's os
nmap -O 192.168.0.1
```
## Further readings
- [Cheatsheet]
- [OS detection]
[cheatsheet]: https://hackertarget.com/nmap-cheatsheet-a-quick-reference-guide/
[os detection]: https://nmap.org/book/man-os-detection.html