Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Pen-Test
[Top] [All Lists]

Re: nmap and icmp-replies

Subject: Re: nmap and icmp-replies
Date: Thu, 20 Apr 2006 09:44:00 +0200
Meier,

ICMP Dest-Unreachable should occur when scanning UDP. Since UDP is stateless, it's the only way a stack can "tell" a port is closed/filtered. Even if you send a packet to an open UDP Port, depending on the protocol your scanner has to send a valid payload to get an answer. If your target sends ICMP Dest-Unrecheachables, you should feel lucky.
If an UDP Port is open your scanner will recognize this, because it doesn't matter which payload it sends: If there is no service, it will receive the Dest-Unreachable Packet, if there is any service, it won't. Conclusion: This port is open.


So don't filter these messages, they make your scan results much more reliable.

To answer your question: There is no way to tell nmap to ignore ICMP Answers. A iptabled gateway between your system and the target will help reaching your questionable goal.

Cheers,

Toby

Meier Zwei wrote on 19.04.2006 14:26:
Hi list,

while scanning somes hosts I figured out that a scanned packet filter sending back icmp destination-unreachable rather slow forces nmap to slow down scanning. A packet filter just dropping the scan probes has no effect on nmap, so does a host without any packet filter, just sending RST.
My problem is: filtering out the icmp answers with iptables doesn't work, as nmap seems to hook into the kernel before iptable does. Is there any to tell nmap to ignore icmp replies and just to determine a port status via TCP/UDP?


Thanks in advance

Meier

------------------------------------------------------------------------------

This List Sponsored by: Cenzic

Concerned about Web Application Security? Why not go with the #1 solution - Cenzic, the only one to win the Analyst's Choice Award from eWeek. As attacks through web applications continue to rise, you need to proactively protect your applications from hackers. Cenzic has the most comprehensive solutions to meet your application security penetration testing and vulnerability management needs. You have an option to go with a managed service (Cenzic ClickToSecure) or an enterprise software (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can help you: http://www.cenzic.com/news_events/wpappsec.php And, now for a limited time we can do a FREE audit for you to confirm your results from other product. Contact us at request@cenzic.com for details.
------------------------------------------------------------------------------





------------------------------------------------------------------------------ This List Sponsored by: Cenzic

Concerned about Web Application Security? Why not go with the #1 solution - Cenzic, the only one to win the Analyst's Choice Award from eWeek. As attacks through web applications continue to rise, you need to proactively protect your applications from hackers. Cenzic has the most comprehensive solutions to meet your application security penetration testing and vulnerability management needs. You have an option to go with a managed service (Cenzic ClickToSecure) or an enterprise software (Cenzic Hailstorm). Download FREE whitepaper on how a managed service can help you: http://www.cenzic.com/news_events/wpappsec.php And, now for a limited time we can do a FREE audit for you to confirm your results from other product. Contact us at request@cenzic.com for details.
------------------------------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>