How TO Install Nmap In Termux?

How TO Install Nmap In Termux?

Nmap is an abbreviation of ‘Network Mapper’, which is a very well known free and open source hackers tool. It is used for network discovery and security auditing. Literally thousands of system admins all around the world are using nmap for network inventory, check for open ports, manage service upgrade schedules, and monitor host or service uptime. Nmap, as a tool uses raw IP packets in creative ways to determine what hosts are available on the network, what services (application name and version) those hosts are providing information about, what operating systems (fingerprinting) and what type and version of packet filters/ firewalls are being used by the target.

Open termux and type the following commands step by step.
  • pkg update
  • pkg install nmap

Nmap Commands :

Nmap Target Selection :-
  • Scan a single IP: nmap
  • Scan a host: nmap
  • Scan a range of IPs: nmap
  • Scan a subnet: nmap
  • Scan targets from a text file: nmap -iL list-of-ips.txt
Nmap Port Selection :-
  • Scan a single Port: nmap -p 22
  • Scan a range of ports: nmap -p 1-100
  • Scan 100 most common ports (Fast): nmap -F
  • Scan all 65535 ports: nmap -p-
Nmap Port Scan types :-
  • Scan using TCP connect: nmap -sT
  • Scan using TCP SYN scan (default): nmap -sS
  • Scan UDP ports: nmap -sU -p 123,161,162
  • Scan selected ports - ignore discovery: nmap -Pn -F
Nmap Output Formats :-
  • Save default output to file: nmap -oN outputfile.txt
  • Save results as XML: nmap -oX outputfile.xml
  • Save results in a format for grep: nmap -oG outputfile.txt
  • Save in all formats: nmap -oA outputfile
HTTP Service Information :-
  • Gather page titles from HTTP services: nmap --script=http-title
  • Get HTTP headers of web services: nmap --script=http-headers
  • Find web apps from known paths: nmap --script=http-enum
  • Heartbleed Testing: nmap -sV -p 443 --script=ssl-heartbleed
  • IP Address information :-
  • Find Information about IP address: nmap --script=asn-query,whois,ip-geolocation-maxmind
  • Anonsagar
    Anonsagar Founder of Tritech and creator of "Anonsagar Cyber " blog that you are currently previewing. Through this blog and youtubechannel, my attempt is to teach basics and those coding techniques to people in short time which took me ages to learn. 6 min read