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 perform ddos attack using ping2death on Kali Linux

Hi guys,Today i will be teaching how to perform a ddos attack using Ping2death on Kali Linux Ping2death is a ddos tool created by SpiderAnon Greyhat( Click here to visit his github repo ) to send packet over a user.. Its has a custom amount of packet How to use: Open Kali and type git clonehttps://github.com/Spider863644/Ping2death cd Ping2death Now move it to C: drive by typing  mv DDos-tool C:\ Now go to File manager, go to c drive, u will see the file just double click it Usage: {IP address} -t |{Amount of packet to send} Example: 127.0.05 -t |20000 Hope you enjoyed the post

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

How to build a diy smartphone projector

Did you know you can build a smartphone projector at home at a low budget cost? well,you can,infact its actually simple,I will show you in this post how you can do it. Here's a step by step guide to a DIY projector. Materials: .A shoebox .Magnifying glass .Phone holder .Scissors or precision knife .Tape .Smartphone .Pencil .Black paint (You can easily get any of this items in your household but if you don't have, you can purchase them at an affordable price from Amazon )  Step 1: Cut the Box The first thing you’re going to do is to separate the part that will hold the lens. This is to make it easier to add the lens to the projector. To do this, cut out one of the short sides of the box. Save 50% on select product(s) with promo code 5055FBR5 on Amazon.com Step 2: Darken the inside of the box Now you need to darken the inside of the box,this stops the light from reflecting back into the image thus ensuring better quality.To do this,use the black pa...