You are not logged in.

#1 2009-07-27 21:57:34

beyecixramd
Member
Registered: 2009-07-23
Posts: 22

I need help with nmap

Well, i've read lots of manuals, but I still don't understand how does nmap work.

I would like to scan a specific range of IPs, for open UDP and TCP ports, let's say:

From 2.249.250.200 to 3.2.1.2 (random IPs)

At the same time, i would like to print the results to a file called "bin"

I know I can scan from 0.0.0.0 to 0.0.0.255 (for example) typing "0.0.0.*" but what about a specific range of IPs like that?

Also, how do I scan single IPs? I think it's "IP1;IP2;IP3;...", but i'm not sure

Offline

#2 2009-07-27 22:44:25

archunex
Member
Registered: 2009-07-06
Posts: 16

Re: I need help with nmap

u can use this syntex  :

nmap   scantype (-sS , -sT ,-sP .) -v(verbose mode) -T(1 or 2or3 or 3or 4or 5 is the time ) -oX or -oN (output )  ip/range

Offline

#3 2009-07-27 22:45:57

beyecixramd
Member
Registered: 2009-07-23
Posts: 22

Re: I need help with nmap

archunex wrote:

u can use this syntex  :

nmap   scantype (-sS , -sT ,-sP .) -v(verbose mode) -T(1 or 2or3 or 3or 4or 5 is the time ) -oX or -oN (output )  ip/range

Thank you, but what's exactly the way to make a range? IP1-IP2 should do the trick?

Offline

#4 2009-07-28 01:31:32

archunex
Member
Registered: 2009-07-06
Posts: 16

Re: I need help with nmap

hey

u can type those ranges ips in a file and u can u ethi file like that

nmap -scantype -v  -Time (1.2.3.2.4.5) -oX or -oN  filename  -il filethat contian ips  ..

Offline

#5 2009-07-28 01:53:11

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: I need help with nmap

If you're lazy like me just use nmapfe tongue


neutral

Offline

#6 2009-07-28 07:25:55

beyecixramd
Member
Registered: 2009-07-23
Posts: 22

Re: I need help with nmap

Haha, thank you, I'll write the file.

Also, I find nmapfe even more confusing than the console XD I have just started in the Linux world, an my first distro was Linux Mint, so I want to learn things, and I want to learn how does the console works, and its commands.

Offline

#7 2009-07-28 10:13:07

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: I need help with nmap

nmap -A -T5 -p 1-65535 ip1 ip2 ip3 ...

# -A   flag will get the service and details
# -T5  is to be faster
# -p 1-65535  selects all ports (they are limited)

you can use more wildcards

this is an example:

nmap 192.168.0.0/16 10.0.0,1,3-7.0-255

Last edited by quarkup (2009-07-28 11:14:57)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

Board footer

Powered by FluxBB