From 67cd9709ef65718e4e536a568fc539744ccd0f4a Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 20 Apr 2022 21:03:37 +0200 Subject: [PATCH] Added nmap notes to the knowledge base --- knowledge base/nmap.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 knowledge base/nmap.md diff --git a/knowledge base/nmap.md b/knowledge base/nmap.md new file mode 100644 index 0000000..6d82081 --- /dev/null +++ b/knowledge base/nmap.md @@ -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