![]() |
|
Comprehensive nMap Guide - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +---- Thread: Comprehensive nMap Guide (/showthread.php?tid=4585073) |
Comprehensive nMap Guide - Cyph Jr - Dec 14, 2014
The first step toward obtaining Nmap is to check whether you already have it. Many free operating system distributions (including most Linux and BSD systems) come with Nmap packages, although they may not be installed by default. PHP Code
Nmap.Org is the official source for downloading Nmap source code and binaries for Nmap and Zenmap. Source code is distributed in bzip2 and gzip compressed tar files, and binaries are available for Linux (RPM format), Windows (NSIS executable installer) and Mac OS X (.dmg disk image). Find all of this at http://nmap.org/download.html.
Nmap (Network Mapper) is a security scanner originally written by Gordon Lyon (also known by his pseudonym Fyodor Vaskovich) used to discover hosts and services on a computer network, thus creating a "map" of the network.
This is one of the simplest uses of nmap. This command is commonly refereed to as a "ping scan", and tells nmap to send an icmp echo request, TCP SYN to port 443, TCP ACK to port 80 and icmp timestamp request to all hosts in the specified subnet. It can be done by PHP Code
With the -O option nmap will try to guess the targets operating system. This is accomplished by utilizing information that nmap is already getting through the TCP SYN port scan. This is usually a best guess but can actually be fairly accurate. It can be done by PHP Code
This scan is the default scan for nmap and can take some time to generate. With this scan nmap will attempt a TCP SYN connection to 1000 of the most common ports as well as an icmp echo request to determine if a host is up. It can be done by executing the following command PHP Code
The TCP SYN and UDP scan will take a while to generate but is fairly unobtrusive and stealthy. This command will check about 2000 common tcp and udp ports to see if they are responding. When you use the -Pn flag this tells nmap to skip the ping scan and assume the host is up. PHP Code
This scan limits the scan to the most common 100 ports, if you simply want to know some potential hosts with ports open that shouldn't be this is a quick command to use. PHP Code
Unlike some of the earlier commands this command is very aggressive and very obtrusive. It will scan every-port and every service that the host you are scanning is running and executing. To execute the following command enter in this PHP Code
This command is similar to the TCP SYN scan however rather than sending a SYN packet and reviewing the headers it will ask the OS to establish a TCP connection to the 1000 common ports. PHP Code
This command will specify the full port range from 1 to 65535 nmap will scan to see if the host is listening on all available ports. You can use the port range specification on any scan that performs a port scan. PHP Code
By adding verbose to a majority of the commands above you get a better insight into what nmap is doing; for some scans verbosity will provide additional details that the report does not provide. PHP Code
So that's how you download, install, and use nMap. This is not all the commands nMap is limited to, but the ones I find most useful for you guys to use. If you wish to learn more about nMap, check out nMaps wiki where they have every command possibly executable on their wiki page. If you have any questions or concerns regarding this tutorial, please feel free to leave them below or PM me regarding it. * - Tirus - Dec 14, 2014 Nice thread Cyph, keep up the good work man. * - Raz3r - Dec 14, 2014 Very nice guide, explains it well. ~ViagraFalls * - Cyph Jr - Dec 14, 2014 (Dec 14, 2014 07:08 PM)ViagraFalls Wrote: Very nice guide, explains it well. Thanks for your feedback, is there anything I can add / improve on. * - Raz3r - Dec 14, 2014 I would keep it like this, the problem with other tuts is that their to long and confusing. You made this a 10/10 in my opinion. ~ViagraFalls * - Orchid - Dec 14, 2014 This was Tirus's guide, why would you post it for him, reputation I suppose. * - Cyph Jr - Dec 14, 2014 (Dec 14, 2014 08:10 PM)Orchid Wrote: This was Tirus's guide, why would you post it for him, reputation I suppose. Actually this is my guide so I don't know why you're here making up bullshit. * - Cyph Jr - Dec 16, 2014 Thanks for your feedback everyone, looking for ideas on a next guide. * - Schweppes - Dec 17, 2014 lol not sure what the point of writing a guide is when NMap has a free guide on their website, and there are already hundreds of books on it and stuff... * - Cyph Jr - Dec 17, 2014 (Dec 17, 2014 12:30 AM)Schweppes Wrote: lol not sure what the point of writing a guide is when NMap has a free guide on their website, and there are already hundreds of books on it and stuff... Not everyone has to the time to be searching up guides and if I feel like giving back to the community I can so if you don't have any thing positive or constructive to say buzz off. * - Im gone brah - Dec 18, 2014 (Dec 17, 2014 04:59 AM)Cyph Jr Wrote: Not everyone has to the time to be searching up guides and if I feel like giving back to the community I can so if you don't have any thing positive or constructive to say buzz off. Quote:Not everyone has to the time to be searching upThe NMAP documention is straight forward and 100 times better than this. Not to mention, why would you write something that has been covered a thousand times already? * - Cyph Jr - Dec 24, 2014 Upping this thread so people can see it. * - Opak3 - Dec 24, 2014 Good work! Sure is going to help a lot of people over here. |