Nmap From an Ethical Hacker's Point of View
ddonzal notes a new tutorial that introduces Nmap from the viewpoint of an ethical hacker. (Part 1 of 2 parts is up now.) The author is Kirby Tucker, who writes: "After completing this 2 Part Series and having practiced the techniques described, one should not only be able to sit at a 'roundtable' with advanced security professionals and 'hold their own' in a discussion concerning Nmap, but also utilize this great tool in protecting their own network."
Do you think that an title called 'Nmap From a Hacker's Point of View' would inform most people enough about the content of the article?
If you mod this up, your slashdot background will turn into a beautiful sunset!
try netstat -anpe | grep 9090 as root ?
>>Is there a more rich informed alternative that would say something like '9090/tcp open zeus-admin/transmission/appX/appY'?
Yes:
# netstat --numeric-hosts --listening --tcp --programs
Active Internet connections (only servers)
Proto Local Address Foreign Address State PID/Program name
tcp 0.0.0.0:svn 0.0.0.0:* LISTEN 1678/xinetd
tcp 0.0.0.0:netbios-ssn 0.0.0.0:* LISTEN 1703/smbd
tcp 0.0.0.0:sunrpc 0.0.0.0:* LISTEN 1531/portmap
tcp 0.0.0.0:http 0.0.0.0:* LISTEN 2580/lighttpd
etc.
fuser 9090/tcp, lsof -i
After TCP and/or UDP ports are discovered using one of the other scan methods, version detection interrogates those ports to determine more about what is actually running. The nmap-service-probes database contains probes for querying various services and match expressions to recognize and parse responses. A paper documenting the workings, usage, and customization of version detection is available at http://insecure.org/nmap/vscan/.
netstat -planet is what I remember.
Get your own free personal location tracker
they will fuck you if you ever go to another OS like Solaris, *BSD, OS/X, etc. example:
$ netstat --numeric-hosts --listening --tcp --programs
netstat: unknown option -- -
usage: netstat [-Aan] [-f address_family] [-M core] [-N system]
netstat [-bdgilmnqrstu] [-f address_family] [-M core] [-N system]
netstat [-bdn] [-I interface] [-M core] [-N system] [-w wait]
netstat [-M core] [-N system] -P pcbaddr
netstat [-s] [-M core] [-N system] [-p protocol]
netstat [-a] [-f address_family] [-i | -I interface]
netstat [-W interface]
$ uname -sr
OpenBSD 4.1
I hate this discussion, but about half the people here use the term "Hacker" to mean 'friendly computer programmer who's quite good at it' or perhaps 'security consultant', while the other half uses the term to refer to people who break into computer networks, usually for profit or other "evil" motives. The people who prefer the first definition use the term "Cracker" for the latter definition.
So, an "ethical burglar" would be a locksmith, I guess. Someone who knows how to use the tools, yet refrains from breaking and entering.
I'd leave "ethical rapist" as an exercise to the reader.
When I wrote "Secrets of Network Cartography: A Comprehensive Guide to Nmap" two years ago, I made the entire 180 page ebook available online. It's free to read, and it's licensed under Creative Commons. You can copy the entire thing and give it away to anyone for non-commercial use; you just have to provide proper attribution. Like my name. Or my web site. Anything. Work with me, here.
:)
Fyodor has led a great development effort over the last ten years, and part of Nmap's appeal is how such a free and "simple" program can be used to perform powerful port scans, operating system identifications, and application version detections. What started as a simple 10 page tutorial has now grown into multiple ebook editions, free online Nmap webinars, and a for-sale video training series on using Nmap to secure your network.
I'm not surprised that the content and flow of my book was copied, but I'm very disappointed that it was apparently rewritten to hide the copying so that it can allegedly be passed off as original material. The "repurposing" of one of my charts is just one example of the similarities in the flow and tone of my original text. The inclusion of this slighly-used article on an "Ethical Hacker" site has caused my irony meter to melt beyond repair.
To be fair, not all of Kirby "Kev" Tucker's article is "borrowed" from my book; there's at least two paragraphs near the end that aren't associated with any of my original work. I'm not sure where those came from.
James "Professor" Messer
Author, Secrets of Network Cartography: A Comprehensive Guide to Nmap