Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Pentesting


Pentesting Specific topics related to legal penetration testing

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-2009, 03:31 PM
seven's Avatar
Member
 
Join Date: May 2007
Posts: 99
Default nmap -PS -PA -PU flags

Hello!
I have a question. I bought fyodor's book for NMAP and it's been great! I am really learning the internals and best practices. But one thing i'm confused with is the host discovery flags PS PA PU. Syntax should be P[A/S/U]<port list>
Essentially, it should be probing for hosts sending either SYN,ACK or UDP probes to the ports suggested. However, when I use it, I detects hosts that are up but on ports I didn't specify.
E.G. @my house
nmap -PS80,21,25 -PA80,21,25 -PU53 192.168.1.0/24 -v
will yield results for my http server,ftp,dns but also scan ports up to 4444 and higher.
Any reason this is happening? Am I using the flag wrong?

Thank you.
__________________
Lying is my life.
Reply With Quote
  #2 (permalink)  
Old 10-23-2009, 04:04 PM
Lincoln's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 319
Default

Try separating the ports with -p.

ex: nmap 192.168.1.1 -PS -p 21,25,80 -v
__________________
Homer: You don't like your job, you don't strike. You go in every day and do it really half-assed. That's the American way.
Reply With Quote
  #3 (permalink)  
Old 10-29-2009, 07:32 PM
thorin's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Northern Hemisphere
Posts: 2,445
Default

You're doing it the right way. The thing is the scan isn't limited by those probes/ports. After doing PS/PA/PU it still does the normal run of the default popular 1000 (or 1287) ports. If you don't want nmap to do that then you have to limit the ports to scan with the -p as Lincoln suggested.
__________________
I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.
Reply With Quote
  #4 (permalink)  
Old 11-08-2009, 05:21 PM
Just burned his ISO
 
Join Date: Jan 2009
Posts: 2
Default

The best choice is to use those discovery flags with -sP parameter, so it won't start SYN scan on active systems.

Last edited by Ermak; 11-11-2009 at 03:19 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2