Nmap examples

 

nmap is an free, open-source and powerful tool used to discover hosts and services on a computer network. In our example, we are using nmap to scan this machine to identify all services that are running on a particular port. nmap has many capabilities, below is a table summarising some of the functionality it provides.



Common example:


nmap -sV -sC -Pn $IP

nmap -A -sC -oN $text_name $IP 





common parameters:


-sV :Attempts to determine the version of the services running

-p <x> or -p- :Port scan for port <x> or scan all ports

-Pn :Disable host discovery and just scan for open ports

-A :Enables OS and version detection, executes in-build scripts for further enumeration 

-sC :Scan with the default nmap scripts

-v :Verbose mode


-sU :UDP port scan

-sS :TCP SYN port scan

-oN/-oX/-oS/-oG <file>: Output scan in normal, XML, s|<rIpt kIddi3,
     and Grepable format, respectively, to the given filename.

Popular posts from this blog

Phonebook - Hack the box Write up -- Web LDAP injection

wafwaf -- Hack The Box -- Web SQL injection

Cheat sheet for security+