Slashdot Mirror


Nmap Network Scanning

brothke writes "The 1962 song Wipe Out, with its energetic drum solo started, was the impetus for many people to take up playing the drums. Similarly, Nmap, the legendary network scanner, likely interested many in the art of hacking, and for some, started a career for security professionals and hackers. Nmap and its creator Fyodor need no introduction to anyone on Slashdot. With that, Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning, is a most useful guide to anyone interested in fully utilizing Nmap." Read on for the rest of Ben's review. Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning author Gordon Lyon (Fyodor) pages 468 publisher Nmap Project rating 9 reviewer Ben Rothke ISBN 978-0979958717 summary Valuable book about an invaluable security tool One may ask, why spend $50 on this book, when the Nmap Reference Guide provides a significant amount of the basic information needed to use the tool, especially since the reference guide is both free, and well written. The reference guide is included in the book in chapter 15, and takes up 41 pages. And for those that are cash strapped, the free reference guide is the way to go.

In addition, the web site for the book notes that about half of the content is available in the free online edition. The most useful information is in the book in chapters exclusive to the print edition, which includes Detecting and Subverting Firewalls and Intrusion Detection System, Optimizing Nmap Performance, Port Scanning Techniques and Algorithms, Host Discovery, and troubleshooting.

The main benefit of the buying the book is that it has the collected wisdom of Fyodor's, in addition to numerous real-world scenarios, and Nmap commands not documented elsewhere. At over 400 pages, the books 15 chapters provide the reader with everything they need to know about using Nmap to the fullest.

Chapter 1 starts with an overview of the history of Nmap and how it came to be. As to the question of whether port scanning is legal, the author writes that it is best to avoid the debate and its associated analogies. He advises that it's best to avoid ISP abuse reports and criminal charges, by not annoying the target network administrators in the first place. Chapter 1 provides a number of practical suggestions on just how to do that.

A complaint against Nmap it that is has often been blamed for crashing systems. Chapter 1 shows that the reality is that Nmap will rarely be the primary cause of a system crash. The truth is that many of the systems that crashed as a result of an Nmap scan were likely unstable from the outset, and Nmap either pushed them over the top or they coincidentally crashed at the same time as the Nmap scan.

An ironic incident detailed in chapter 3 is when someone from the information security department of Target Corp. complained to the author that he felt the Nmap documentation was particularly directed at his organization; given the use of the term target. He requested that the Nmap documentation be changed from targetto example. The section on target enumeration in the book shows the author did not take that request to heart.

Another example of where the book goes beyond what is in the reference guide is where the author shows the most valuable TCP ports via his probe of tens of millions of IP addresses across the internet. Not surprisingly, ports 80 23 and 443 were the top three most commonly open TCP ports. It is surprising that other ports, which should have been secured long ago, are still as vulnerable as ever.

For the serious Nmap user, the book is worth purchasing just for the indispensable information in chapter 16, which is about optimizing Nmap performance. The author writes that one of his highest priorities in the creation of Nmap has been performance. Nmap uses parallelism and numerous advanced algorithms to execute its blazingly fast scans. This chapter shows how to create Nmap commands to obtain only the information you care about and significantly sped up the scan. The chapter details numerous scan time reduction techniques, and strategies on how to deal with long scans. The chapter concludes with the output of a user who, with a customized Nmap command, was able to reduce his scan of a 676,352 IP address network from nearly a week to 46 hours.

Chapter 10 is also a fascinating chapter on the topic of detection and subverting of firewalls and IDS. The function of such tests on an internal network is to help an organization understand the dangers and risks of a real attack. Since it is not uncommon for firewalls to be accidentally misconfigured, or have rule bases that leak from far too many rules; such a test can be quite useful to any network.

Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning is the guide for anyone who wants to get more out of Nmap. It is useful whether one is a novice and only getting into basic security testing, or an advanced user looking for ways to optimize Nmap.

The book takes a real-world approach on how to use the tool and clearly documents every Nmap feature and option. It also shows how the tool should be correctly used in various settings.

What is unique about is that this is a rare book in which the creator of the program wrote it. Linus Torvalds never got around to writing a Linux reference, nor did the creators of the Check Point firewall. In Nmap Network Scanning, the reader gets the story from the creator of the code itself. This then is the ultimate Nmap reference guide.

Aside from the history and use of the program in the first chapter, the rest of the book is an extreme guide to maximizing the use of Nmap. It is written by a programmer and written for the technically astute. Anyone who wants to maximize their use of Nmap will find no better reference.

Ben Rothke manages the Bright Hub Enterprise Security channel and is the author of Computer Security: 20 Things Every Employee Should Know.

You can purchase Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

125 comments

  1. Target by mcgrew · · Score: 5, Funny

    An ironic incident detailed in chapter 3 is when someone from the information security department of Target Corp. complained to the author that he felt the Nmap documentation was particularly directed at his organization; given the use of the term target.

    He requested that the Nmap documentation be changed from target to walmart

    1. Re:Target by Anonymous Coward · · Score: 0

      amusing, but not ironic. :)

    2. Re:Target by GerardAtJob · · Score: 1
      --
      I can't call that English ;-)
  2. Amen with the crashed systems. by kwabbles · · Score: 5, Insightful

    I always roll my eyes when I hear someone complain about nmap "crashing a system". This should be common sense. If the target crashed simply from being nmapped or scanned from the outside - the target is obviously a turd of a system.

    --
    Just disrupt the deflector shield with a tachyon burst.
    1. Re:Amen with the crashed systems. by X0563511 · · Score: 5, Funny

      Hey, they spent a long time polishing that turd, and they are damn proud of it!

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    2. Re:Amen with the crashed systems. by Anonymous Coward · · Score: 0, Funny

      I know that the best approach is to ignore you trolls, even as your slander becomes more and more outrageous. I will admit that I did some trolling of the trolls last year. Big mistake - they have much more of an appetite and time for this than I do. It has been a year and they still continue to write new stories that are more and more absurd. Perhaps I should be flattered that they consider me so important. The troll journal you linked accuses me of "illegally penetrating computers across state lines" and that "Fyodor even submitted his "troll hunting" story to Slashdot, though it was rejected". Another page [geocities.com] includes a fake interview with me, a fake Nmap bug, and notes that I have been "pushing crystal meth on the street for a few months." It has also been said that I am "obviously a terrorist [insecure.org]" and that Nmap "is spyware to spy on the american people [insecure.org]". So I have learned to deal with abusive criticism. Another Slashdot journal currently says "Fyodor is ... a depraved, insidious hacker hell-bent on criminal intrusions into systems owned by minors!" Even I couldn't help but chuckle at that one :). Replying is useless, since the trolls are just looking for attention and care nothing of accuracy. But I will make a few points lest anyone else take the trolls seriously:

              * I am not a terrorist, and have never sold drugs.
              * I did not actually break into any troll boxes, although I did imply that in a misguided attempts to use some of their trolling rhetorical devices against them. I stand by my posting history [slashdot.org].
              * Much of the content in the journal you posted is an outright fabrication and the lies and accusations change by the minute! This (currently score 5) post [slashdot.org] quotes text that I saw in this journal an hour ago. Now it is gone, and many other changes have been made as well. Be careful of linking to Troll journals, or they may turn into goatse links.
              * Some of his lies are self-evident. How could he possibly know much of this stuff, such as that I submitted this as a Slashdot story? I have never submitted any story whatsoever to Slashdot. If there is some sort of public interface to the submission queue that I am unaware of, please post it. You will not find any submissions from me. Note that these [slashdot.org] were all submitted by other people.
              * I have not been "advised by legal counsel not to speak about it in public." If I was to speak with lawyers, it would be about their slander campaign. But they aren't even close to being worth the effort.
              * They claim I hacked a troll named Sdem who is a member [trollaxor.com] of Trollaxor.Com. That page currently admits that he has moved on to harassing other security folks - he is now impersonating Theo de Raadt [slashdot.org], the leader of OpenBSD.

      I could go on, but I have a much more important project to work on today. I won't post further on this troll topic, no matter how much you trolls slander and attack me in your journals and replies to this post. And don't bother posting "YHBT," I know. Hopefully Slashdot moderation will eventually catch up with your games and we can focus on interesting security subjects rather than troll gossip and manufactured scandals.

      Cheers.

    3. Re:Amen with the crashed systems. by Anonymous Coward · · Score: 0

      Sweet. let's nmap insecure.org

    4. Re:Amen with the crashed systems. by LingNoi · · Score: 2, Insightful

      I have no other words for this apart from, "What the fuck?"

    5. Re:Amen with the crashed systems. by lazyforker · · Score: 1

      I always roll my eyes when I hear someone complain about nmap "crashing a system". This should be common sense. If the target crashed simply from being nmapped or scanned from the outside - the target is obviously a turd of a system.

      Hey! Shouldn't that be example is obviously a turd of a system?

    6. Re:Amen with the crashed systems. by tabrisnet · · Score: 5, Interesting

      Happened to me in college at gvsu.edu. They claimed I had crashed several Solaris boxen, and claimed that my Linux box was 'dangerous', and even cut off my network access.

      The kicker was the 150 hours of community service I had to put in to pay for the time (of 'computer professionals' who were worth a lot more money than I was) it took to bring them back online.

      And to think, I was only trying to map out the campus network and what systems they used for various purposes.

    7. Re:Amen with the crashed systems. by fuzzyfuzzyfungus · · Score: 4, Insightful

      That is because you are thinking like an engineer and they aren't. People, even people who should know better, have perverse attitudes about problems.

      Somebody at the meeting has some concerns about the viability of the plan. Praise him for voicing those concerns so that they can, if necessary, be addressed? Heck no, tell that whiner that there is no place for negativity among team players.

      Nmap crashes the system. Great, we discovered a DOS vulnerability before it could be used against us? Hardly, if that hacker hadn't been hacking none of this trouble would have happened.

      I'm not sure how much of this is just laziness: If the problem doesn't show up on my watch it isn't my problem; and how much is actual magical thinking. A disturbing number of people seem to think that optimism actually makes things work, pessimism actually breaks things, negativity actually makes things work, etc. The Secret is perhaps the purest form of this utter nonsense; but slightly milder variants are all over the place.

    8. Re:Amen with the crashed systems. by digitalhermit · · Score: 3, Interesting

      I used to work at a (now defunct) flower company. My office was glass walled, overlooking the entire sales floor. One day I was testing Samba on a small desktop machine. I remember starting up nmbd/smbd. Then moments later, I looked into the sales pit and saw people getting up, the Win95 workstations had begun to bluescreen one by one. I didn't connect the two.

      A half hour later everyone has rebooted. In that time I'd turned off Samba to work on something else. I restart Samba on that little machine (it was called Stargate because it would act as a gateway to some shares on a Sun E6500). The moment I press enter, the machines start bluescreening again. I realized just at that moment what happened and immediately shut it down.

    9. Re:Amen with the crashed systems. by GXTi · · Score: 1

      In fact, a system that is thrashing itself to death (already "crashed") can still be scanned without disturbing its thrashing.

    10. Re:Amen with the crashed systems. by kwabbles · · Score: 4, Insightful

      The kicker was the 150 hours of community service I had to put in to pay for the time (of 'computer professionals' who were worth a lot more money than I was) it took to bring them back online.

      And just think - since most likely all they had to do was reboot the damned things, what you were really putting in your "sweat equity" to pay for was their time to go back and fix their own mistakes, since they obviously hadn't done their jobs right in the first place.

      However, this brings up an important rule of thumb: Don't pen test something that you don't have permission to pen test, unless you've accepted that you will be prosecuted if caught. There are a lot of idiot admins out there watching their logs ready to point fingers the moment they see a port scan... not because they're concerned about security, but because "hackers" make excellent scapegoats for incompetent admins.

      --
      Just disrupt the deflector shield with a tachyon burst.
    11. Re:Amen with the crashed systems. by Arimus · · Score: 1

      Good, its not just me who wondered WTF the point of that rant was...

      --
      --- Users are like bacteria -> Each one causing a thousand tiny crises until the host finally gives up and dies.
    12. Re:Amen with the crashed systems. by windsurfer619 · · Score: 1, Funny

      I thought Microsoft just shit^Hpped the first copy that compiled...

    13. Re:Amen with the crashed systems. by Anonymous Coward · · Score: 0

      Thing is, even if you believe in things like "The Secret", part of positive thinking is taking action/control of your own destiny. Ignoring problems is not part of positive thinking, but so many believers think it is.

      Reminds me of people who refuse doctors because "God will provide" ignoring the fact that "God provided" the doctors who want to help them. Not only is their thinking magical, but it's inconsistent, negative, and needlessly confrontational.

    14. Re:Amen with the crashed systems. by dbIII · · Score: 2, Insightful

      Some HP printers and network to parallel port converters fit squarely into that catagory on all accounts but are still expensive things to fix after a port scan.

    15. Re:Amen with the crashed systems. by Anonymous Coward · · Score: 0

      A disturbing number of people seem to think that optimism actually makes things work, pessimism actually breaks things, negativity actually makes things work, etc. The Secret is perhaps the purest form of this utter nonsense; but slightly milder variants are all over the place.

      This is negativity

    16. Re:Amen with the crashed systems. by Sobrique · · Score: 1

      The truth is inescapable - if there is a God, he doesn't actaully like you very much.

  3. In college... by Shadow7789 · · Score: 3, Informative

    my school's IT department confused my port scanning with that of a virus and subsequently banned me from the network.

    1. Re:In college... by Anonymous Coward · · Score: 0

      They do this all the time, and it's basically the nice way of saying "Hey, we know you were port scanning, but we don't want to directly accuse you of doing it, but we have to give a reason for banning you"

      I've had this happen too, I ran a virus scan, e-mailed them the results, and they unbanned me...

    2. Re:In college... by tripdizzle · · Score: 1

      Maybe use -sS??

      --
      "A claim for equality of material position can be met only by a government with totalitarian powers." Hayek
    3. Re:In college... by russotto · · Score: 4, Insightful

      The Internet doesn't work if you need permission to send an IP packet to someone.

    4. Re:In college... by MadMidnightBomber · · Score: 4, Informative

      If you are at college, do NOT:

      * 'finger' every possible username programmatically.
      * do a nessus scan on the IT people's servers "just to see"
      * nmap the college's /16
      * attempt an infeasible online crack of an admin's password from a computer you've just logged into. in a lab you swiped your own card to get in.

      All of these actions will get you noticed, but not in a good way.

      love & kisses, your friendly college sysadmin

      --
      "It doesn't cost enough, and it makes too much sense."
    5. Re:In college... by pgn674 · · Score: 1

      my school's IT department confused my port scanning with that of a virus and subsequently banned me from the network.

      Me too. And this was while I was working in the IT department at said school. The guy over in Networking just laughed and put me back on the network.

      Then later I got booted again because Google Desktop was being a little too friendly on the network. It only happened that once, so I guess Google updated the program soon after.

    6. Re:In college... by operagost · · Score: 1

      Sounds like he was probably scanning their LAN, not their internet face.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    7. Re:In college... by PitaBred · · Score: 1

      As an addendum, an accidental "Net Send" to a domain rather than your buddy will also get you noticed ;)

    8. Re:In college... by X0563511 · · Score: 2, Interesting

      Darwin at work. Let them be caught ;)

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    9. Re:In college... by al.caughey · · Score: 1

      I (a Canadian working for a defunct Cdn software company) was at a US military installation several years ago.

      One of the guys from our dev team wanted to show me some new functionality that had been integrated into one of our tools (NMAP). We thought it best that we scan our own domain rather than one of the military domains... it never occurred to us that that just made the situation worse.

      A US military site scanning a Cdn web site was bad, two Canadian civilians running the scan from a classified US computer was even worse. But what really got the feathers flying was the fact that it was the NSA who alerted the service of the illicit scan (rather than the service's own red team).

      Needless to say, the functionality was quickly removed from the software. Ooops! (And it had nothing to do with the software company becoming defunct)

    10. Re:In college... by Anonymous Coward · · Score: 0

      Imagine the looks as the entire AP computer science class shows up for detention the day after having a sub...

      Someone accidentally sent a domain message, so everybody across three campuses got the message upon login, then a few others did a reply in a similar fashion.

    11. Re:In college... by BigJClark · · Score: 1


      eeeeyeah, thats to be expected, as port scanning is a script-kiddies first point of contact to seeing what version/OS the target is using, as well as what apps the target is running, to expose vulnerabilities.

      but, you probably already know this ;)

      --

      Hi, I Boris. Hear fix bear, yes?
    12. Re:In college... by Doug+Neal · · Score: 1

      As an addendum, an accidental "Net Send" to a domain rather than your buddy will also get you noticed ;)

      Heh, I saw that happen in a call centre once. They were a lot less understanding than a college would have been...

    13. Re:In college... by Anonymous Coward · · Score: 0

      I am amused by your petty nmap scans. Bwaha ha ha ha ha! I have enough problems with staff and faculty setting their passwords the same as their usernames, and crackheads wandering in off the street and stealing our wireless APs.

      Students are actually fairly good about security, all having grown up online at this point.

    14. Re:In college... by Daimanta · · Score: 3, Funny

      I got jailtime in Germany for trying that. I would not advice it personally.

      --
      Knowledge is power. Knowledge shared is power lost.
    15. Re:In college... by AgentPhunk · · Score: 2, Funny

      Right. Just be nice and set the Evil bit if you're doing anything naughty. Problem solved.

    16. Re:In college... by RockWolf · · Score: 3, Funny

      love & kisses, your friendly college sysadmin

      Why didn't I have one of those? I feel so unloved...

      --
      February 9th, 2009 8:55pm: Slashdot becomes self-aware.
    17. Re:In college... by magarity · · Score: 2, Insightful

      my school's IT department confused my port scanning with that of a virus
       
      At a consulting client once I plugged in my usb thumb drive to transfer a document and the corporate scanning software on their computer detected nmap. It was immediately deleted with a pop-up that screamed "hacking tool detected!" On the one hand I was glad I didn't get escorted out (and not paid) but on the other hand it was rude of them to delete it when they could have just disallowed running it.

    18. Re:In college... by nog_lorp · · Score: 1

      My college doesn't run Windows tyvm.

    19. Re:In college... by Anonymous Coward · · Score: 1, Funny

      Bah, that's nothing. I was banned from my middle school library for a year for cleaning the rollers on a ball mouse.

    20. Re:In college... by Anonymous Coward · · Score: 0

      I did 2 of these 4 when I was in college, and now I work as a security engineer. I was never chased nor caught. Only the sloppy (or foolish) get caught.

      Amusingly, my captcha is "secrecy".

    21. Re:In college... by Anonymous Coward · · Score: 0

      I got jailtime in Germany for trying that. I would not advice it personally.

      Heck, Dude, you can get sent to camps to be exterminated in Germany just for being gay or a gypsy or something. Color me unsurprised.

    22. Re:In college... by Darby · · Score: 1

      love & kisses, your friendly college sysadmin

      Luckily, my college sysadmin is named HappyNoonFlowerHanderOuter, so I'm not worried ;-)

    23. Re:In college... by MadMidnightBomber · · Score: 1

      I wasn't working at your college. My favourite bit was when I rang up one of the departmental admins and his first words were "shit! how did you know?" (He'd just had a server compromised.)

      SPAN port on core routers + snort + p0f = POWER!

      --
      "It doesn't cost enough, and it makes too much sense."
    24. Re:In college... by Jansingal · · Score: 1

      which school was that???

    25. Re:In college... by Dr.+Smoove · · Score: 1

      What the fuck? Tell us what college you went to that A. Uses Windows, B. Allows an unprivileged user the ability to send broadcast messages to the whole domain. When people say epic fail, this is what they're talking about.

      --
      "If you plant ice, you're gonna harvest wind."
    26. Re:In college... by Hal_Porter · · Score: 1

      This is my Internet face >:3

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    27. Re:In college... by tehcyder · · Score: 1

      All of these actions will get you noticed, but not in a good way.

      Says Mr. MadMidnightBomber...

      --
      To have a right to do a thing is not at all the same as to be right in doing it
    28. Re:In college... by Anonymous Coward · · Score: 0

      Yeah... that happened to me. Except it was at work. On a military NIPRNET network.

  4. Phrack's Introduction... by Anonymous Coward · · Score: 0

    Chapter 1 starts with an overview of the history of Nmap and how it came to be.

    Trivia: I remember clearly reading nmap's introduction to the world in Phrack issue 51 "The Art of Port Scanning" more than 10 years ago.

    (And it's cool to see Phrack is still still around!)

  5. Needs no introduction by larry+bagina · · Score: 4, Informative

    I suspect a lot of slashdot readers are too new, have forgotten, or never learned of Fyodor's slashdot "girlfriend". Long story short -- a dude posted on slashdot, claiming to be a girl. Fyodor tried to hook up with "her" and "she" strung him along for awhile. After discovering "she" had dude parts, Fyodor hacked his computer and posted screenshots.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

    1. Re:Needs no introduction by Splab · · Score: 1

      Thanks for elaborating, been around slashdot since 2002, never heard of the guy.

    2. Re:Needs no introduction by larry+bagina · · Score: 4, Informative
      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    3. Re:Needs no introduction by russotto · · Score: 1

      Read the story. Totally justified. Trolls should know better than to meddle in the affairs of dragons.

    4. Re:Needs no introduction by Surreal+Puppet · · Score: 1

      That's really one of those one-in-a-million things. Getting trolled like that, Yahoo vuln, open X server on a home *nix box. The stars really aligned.

    5. Re:Needs no introduction by burner · · Score: 1

      Since '98 here -- me either.

      Though I haven't always visited religiously the entire time. (I admit that I may fit into the "have forgotten" category)

      --
      MRSH-Recording device, corned beef sandwich with kraut, seafaring bird, and the foamy top of a beverage.
    6. Re:Needs no introduction by Anonymous Coward · · Score: 0

      That's really one of those one-in-a-million things. Getting trolled like that, Yahoo vuln, open X server on a home *nix box. The stars really aligned.

      Open X Server on a home Windows box

    7. Re:Needs no introduction by karlconnors · · Score: 1

      No one really cares, nor did they ask about it.
      So the question is, why do you feel the need to share that bit of irrelevant information?
      Yes, everyone is vulnerable to social engineering.
      Is this the best security tool around, heck yes.

    8. Re:Needs no introduction by Anonymous Coward · · Score: 3, Informative

      Counter link.

      It all depends on who you trust more.

    9. Re:Needs no introduction by karlconnors · · Score: 1

      No one really cares about this, except you. The question is, why?
      What do you have against Fyodor? Why are you jealous of him?

      The is a book about an powerful security tool, can't ya just focus on that?

    10. Re:Needs no introduction by Jansingal · · Score: 1

      wow, what a valuable post.

      u must be a reall important person.

    11. Re:Needs no introduction by Anonymous Coward · · Score: 0

      Seriously? You have no idea that fyodor wrote nmap? and you're geeks?

  6. Re:Just FYI, yes Trinity used this on CLI in Matri by Anonymous Coward · · Score: 0

    Damn dude, just link people to the clip...
    http://www.youtube.com/watch?v=ojFFS_T3UQk

  7. matrix reloaded by circletimessquare · · Score: 4, Interesting

    while mostly being a steaming pile of shit compared to the original, it attempts to redeem itself by accurately using nmap in one scene

    http://www.theregister.co.uk/2003/05/16/matrix_sequel_has_hacker_cred/

    That's exactly how the fictional Trinity uses it. In a sequence that flashes on screen for a few scant seconds, the green phosphor text of Trinity's computer clearly shows Nmap being run against the IP address 10.2.2.2, and finding an open port number 22, correctly identified as the SSH service used to log into computers remotely.

    "I was definitely pretty excited when I saw it," says "Fyodor," the 25-year-old author of Nmap. "I think compared to previous movies that had any kind of hacking content, you could generally assume it's going to be some kind of stupid 3D graphics show."
    blockquote>

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
    1. Re:matrix reloaded by Anonymous Coward · · Score: 0

      it attempts to redeem itself by accurately using nmap in one scene

      You can even see the command options given, the syntax appears to be correct.

      Check it out!

    2. Re:matrix reloaded by pak9rabid · · Score: 2, Informative

      Haha, yea. I remember seeing that scene, pausing, rewinding, then going frame-by-frame to verify I saw what I thought I did.

    3. Re: Matrix Reloaded by fv · · Score: 4, Informative
      Yeah, Nmap has actually been in a surprising number of major movies. I created the Nmap in the Movies page to document them with screen shots. The Matrix Reloaded was the most exciting and really started the trend. I guess the rest of Hollywood just followed along and decided that the command shell was the new way to portray hacking, rather than ridiculous 3D animated eye-candy scenes from the era of Hackers and Swordfish. So we got Nmap in Bourne Ultimatum, Die Hard 4, etc.

      I wanted to include a screen shot of Trinity hacking the Matrix with Nmap for this book, but a then-potential publisher said I needed permission from Time Warner first. It took many unanswered requests, but Time Warner finally replied with basically "hell no, you IP pirate!" Of course they phrased it politely like "we would love to allow that, but our policies prohibit us from granting that permission". Funny, they didn't mind using Nmap in their movie without permission, credit, notification, etc. Then they say I can't even include a screen shot of them using Nmap?

      So I dumped the potential publisher and added the screen shots anyway (page 8) :).

      -Fyodor
      Insecure.Org

    4. Re:matrix reloaded by gatekeep · · Score: 0, Redundant

      Obligatory link to the Movies featuring Nmap page. Enjoy.

    5. Re:matrix reloaded by srvivn21 · · Score: 1

      while mostly being a steaming pile of shit compared to the original, it attempts to redeem itself by accurately using nmap in one scene

      http://www.theregister.co.uk/2003/05/16/matrix_sequel_has_hacker_cred/

      That's exactly how the fictional Trinity uses it. In a sequence that flashes on screen for a few scant seconds, the green phosphor text of Trinity's computer clearly shows Nmap being run against the IP address 10.2.2.2, and finding an open port number 22, correctly identified as the SSH service used to log into computers remotely.

      "I was definitely pretty excited when I saw it," says "Fyodor," the 25-year-old author of Nmap. "I think compared to previous movies that had any kind of hacking content, you could generally assume it's going to be some kind of stupid 3D graphics show."
      blockquote>

      Trinity didn't use nmap. Seriously, she didn't have the time. The hacking was performed by the original team sent in to do the job. She just executed a simple command on a compromised system.

      Just like a manager, they did all the hard work, she took all the credit.

    6. Re: Matrix Reloaded by milesw · · Score: 2

      I am a very occasional (though appreciative!) user of Nmap, but after reading this:

      So I dumped the potential publisher and added the screen shots anyway

      I immediately bought a copy via the Amazon link. Fyodor, well done, sir!

    7. Re: Matrix Reloaded by Anonymous Coward · · Score: 0

      Its not the first time he's broken the law :)

      http://slashdot.org/~sllort/journal/33255

    8. Re: Matrix Reloaded by RiotingPacifist · · Score: 1

      All that that journal contains as evidence are circular references?
      The only thing that would convince me that a bunch of trolls aren't lying would be a cached (somewhere trusted not www.tollaxor.org/...) pages on insecure.org, showing the boasting.

      in otherwords TITS OR GTFO!

      --
      IranAir Flight 655 never forget!
    9. Re: Matrix Reloaded by Anonymous Coward · · Score: 0
    10. Re: Matrix Reloaded by Jansingal · · Score: 1

      u mean, breakin the law, the judas preist song>?

  8. I didn't need WipeOut... by Black+Rabbit · · Score: 1, Offtopic

    ...to know that I wanted to play drums!

  9. It's not just miles ahead of the competition... by Surreal+Puppet · · Score: 2, Informative

    NMap is the best there is, period. There's not even specialist scanners that can up it's features, especially since you can set packet flags manually in the more recent versions. It really, really fills it's niche. I use it all the time in my daily life just for benign remote service discovery, and I assume many people do too. I've never had anyone complain about it either.

    1. Re:It's not just miles ahead of the competition... by value_added · · Score: 1

      For the kids following along at home, nc (netcat) can be used similarly.

      nc -z 10.2.2.2 22
      Connection to 10.2.2.2 22 port [tcp/ssh] succeeded!

      Port scanning doesn't work as fast, of course, but then, nmap isn't always available.

    2. Re:It's not just miles ahead of the competition... by Surreal+Puppet · · Score: 1

      A point is that one of the more useful basic features of NMap, the SYN partial-handshake scan (default when run as root) can't be replicated by nc. It always leaves marks in connect logs. Hping can replicate that feature though: "hping -8 -S known host.com" will SYN scan all ports listed in /etc/services on host.com

  10. Network map? by Anonymous Coward · · Score: 2, Interesting

    Have they included a network mapping function yet? They announced it as a GSoC project last year I think, did they get around to hack some graphical map output?

    1. Re:Network map? by fv · · Score: 4, Informative

      Have they included a network mapping function yet? They announced it as a GSoC project last year I think, did they get around to hack some graphical map output?

      Good question--and yes, we have! Full details on this feature, including screen shots, are provided in Section 12.5, "Surfing the Network Topology" starting on page 317. That section is also available free online. The code has been integrated into the latest version (4.76) of Nmap, available here.

      -Fyodor
      Insecure.Org

    2. Re:Network map? by HeronBlademaster · · Score: 1

      Yes, it's called Zenmap.

    3. Re:Network map? by DNS-and-BIND · · Score: 1

      Please put your signature in your .sig file, that way the rest of us don't have to see it.

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    4. Re:Network map? by Anonymous Coward · · Score: 0

      put your dick in your mouth, for same reasons.

  11. Re:Scannign long before NMAP by ZeroData00 · · Score: 0

    One of the boooks are writting visual basic that I learned from actually used making a port scanner as a learning project. Which I thought was kind of funny, but I did learn the basics of networking.

    --
    When I was a boy the goverment stole everything from us.
  12. Re:Just FYI, yes Trinity used this on CLI in Matri by X0563511 · · Score: 1

    It's a troll.

    "I was definitely pretty excited when I saw it," says "CmdTaco," the 25-year-old openly gay author of Nmap.

    --
    For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  13. Re:Scannign long before NMAP by Anonymous Coward · · Score: 0

    Nobody claimed that nmap was the first port-scanner. Oh, and wow, VisualBasic.

  14. crash by jDeepbeep · · Score: 1

    The system crashing is not a bug.

    It is a feature.

    --
    Reply to That ||
  15. New meaning of the term "malware" by wsanders · · Score: 1

    Henceforth to be known as "Wal-Ware".

    --
    Give a man a fish and you have fed him for today. Teach a man to fish, and he'll say "WHERE'S MY FISH, YOU IDIOT?"
  16. 468 Pages on NMAP?????? by zukinux · · Score: 0

    I thought I was not reading correctly, but... 468 pages on a single book about nmap?
    I'd prefer [code]# nmap -h (or --help)[/code] it would give me the same results. JESUS! people became crazy... 468 pages?!!?!?! Nmap?!?!?!

    1. Re:468 Pages on NMAP?????? by Jansingal · · Score: 1

      hey, it is a really big font :)

  17. nmap and IPv6 by swillden · · Score: 3, Interesting

    This is tangentially related, but it sort of fits in with the idea of "cools ways to use nmap" -- or, in this case "things you can't do with nmap".

    While setting up a 6to4 tunnel to give my home LAN IPv6 access (just for fun), I decided to use nmap to scan my home IPv6 network. I've used nmap from time to time to portscan, but mostly I use it as a ping scanner, just to find live hosts, so it seemed like a natural way to find out which hosts had picked up IPv6 addresses.

    I first tried the obvious syntax "nmap -sP <my subnet prefix>::/64", but nmap told me that slashes are not allowed, and that "IPv6 addresses can currently only be specified individually".

    My first reaction was "Well, that's stupid. Why can't nmap handle IPv6 subnets? Idiots". However, a half-second later it occurred to me that I was the idiot: what I thought I wanted nmap to do was to scan 18,446,744,073,709,551,616 addresses. That's obviously impractical. That many requests would saturate a 10 Gbps network for 60,000 years (2^64 128-byte packets).

    So, FYI, if you want to find out what hosts are live on your IPv6 network, the way to do it is to ping the link-local multicast address (fe02::1). Assuming they're not firewalled, all of the hosts will answer. Of course, what you'll get back is their link-local addresses, not their routable addresses. I haven't found a convenient way to get a list of those, other than a little sed script to convert the link-local addresses to their equivalents in the subnet.

    --
    Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    1. Re:nmap and IPv6 by RiotingPacifist · · Score: 1

      why cant nmap do that, then scan each of the hosts that answer?

      --
      IranAir Flight 655 never forget!
    2. Re:nmap and IPv6 by swillden · · Score: 1

      It could, and I expect it probably will when IPv6 becomes more widespread.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  18. Offtopic by MarginalWatcher · · Score: 0

    Whiskey Tango Farva? Not to put Nmap or Zenmap down, but WTF? If I've missed something and Fyodor is entitled to a multi-page ad, I apologise.

    1. Re:Offtopic by JebusIsLord · · Score: 1

      You probably missed the part where NMap is open source.

      --
      Jeremy
  19. Where Is The Chapter Detailing Him Hacking /. User by Real+World+Stuff · · Score: 1
    --
    If we don't fight for ourselves no one will.
  20. Re:Scannign long before NMAP by Jansingal · · Score: 1

    so what?

    what did u do more than that?

    maybe that is why a 100 million people use nmap and not yer tool.

  21. Re:Where Is The Chapter Detailing Him Hacking /. U by dbIII · · Score: 0
    It really isn't worth a chapter, but funny just the same.

    Not perfect behaviour but is that bit of tresspass really that bad? IMHO it's about thirty notches down the "black hat" scale less nasty than spammers that pretend to send things from your email address. I like it as a nice little anecdote to tell people to have decent firewall rules (and not have unsecured MS Windows machines naked to the net).

  22. Re:there's a town in upstate new york called fishk by Jansingal · · Score: 1

    what's this got to do with the book review?

  23. Re:Where Is The Chapter Detailing Him Hacking /. U by Jansingal · · Score: 1

    and your point is what?

  24. sllort journal == trolls spelled backward by Anonymous Coward · · Score: 0

    Um, sllort is a known troll account who regularly makes up stories. His username is 'trolls' spelled backwards, and you call sllort's page of speculation a credible citation? It is possible that some parts of the story are true, but you have still been trolled.

  25. mmm nmap... by blad3runn69 · · Score: 1

    nmap is way cool, infact so cool I am surprised it is legal, heh ;P Thank you & kudos to you Fyodor for your expertise and generosity, truly brilliant and inspirational stuff.

    1. Re:mmm nmap... by karlconnors · · Score: 1

      Guns are legal, and much more dangerous than nmap.
      So why should nmap be even close to being illegal.

  26. mmm nmap... by blad3runn69 · · Score: 1

    nmap is way cool, infact so cool I am surprised it is legal, heh ;P Thank you & kudos to you Fyodor for your expertise and generosity, truly brilliant and inspirational stuff.

  27. Nmap is a great way to get kicked by your ISP. by Anonymous Coward · · Score: 0

    I tried using Nmap to find open FTP servers on a class B address. It's all fun and games until you try it on a class B. Just do class C at most. Class C will probably still piss off enough people to get you in trouble, and thats only scanning one port.

    1. Re:Nmap is a great way to get kicked by your ISP. by Jansingal · · Score: 1

      hey, thats that point :)

  28. Reference guide well written? by iphayd · · Score: 1

    How can someone call the reference guide well written, then five sentences later say that the book explains commands not documented elsewhere? Isn't the purpose of the reference guide, manpages, and any other documentation to define _all_ of the commands that are inserted into a program?

    Now, I have to question what _else_ has been put into the program that hasn't been documented. Unfortunately, this lends credibility to Fyodor's detractors, and raises questions for me as to whether nmap belongs on my computer at all. (As a network professional that has rights to portscan his network it is a useful tool.)

    1. Re:Reference guide well written? by Surreal+Puppet · · Score: 2, Insightful

      The source is right there for you to read. Also, he's not the only guy working on the project, lots of other people have reviewed the code. Anything fishy would have been caught a long time ago.

    2. Re:Reference guide well written? by karlconnors · · Score: 2, Informative

      As to your comment 'How can someone call the reference guide well written, then five sentences later say that the book explains commands not documented elsewhere', there is a difference
      between 'undocumented' and 'not documented elsewhere'.

      My understanding is undocumented is more of an active attempt to keep under wraps.

      Not documented elsewhere is something that someone never got around to writing about.

      And as to the comment 'this lends credibility to Fyodor's detractors', since when does he have detractors? And who are they?

    3. Re:Reference guide well written? by karlconnors · · Score: 1

      Nmap grew in functionality as a direct result of Google's sponsorship of the program in the summer of code. With those programmers, Fyoder could have never done it on his own. He has said as much and knows that.
      All of these criticisms all have their base in people being jealous of Fyodor's success. It is that simple.

  29. Shameless promotion by Fuzzzy · · Score: 1
    Who have though this day will come – promoting nmap using the surfaris ;)
    Let me add a minor correction to the description:

    "The 1962 song Wipe Out , with its energetic drum solo started, was the impetus for many people to take up playing the drums. Similarly, Nmap, the legendary network scanner, likely interested many in the art of hacking, and for some, started a career for security professionals and hackers. Nmap and its creator Fyodor need no introduction to anyone on Slashdot. With that, Nmap Network Scanning: The Official Nmap Project Guide to Network Discovery and Security Scanning, is a most useful guide to anyone interested in fully utilizing Nmap."

    1. Re:Shameless promotion by karlconnors · · Score: 1

      Was that shameless meant to be tongue in cheek?

      Not sure what is supposed to be shameless.

    2. Re:Shameless promotion by Anonymous Coward · · Score: 0

      The joke?

  30. Re:Just FYI, yes Trinity used this on CLI in Matri by tehcyder · · Score: 1

    It's a troll.

    Well at least it's a new one.

    --
    To have a right to do a thing is not at all the same as to be right in doing it
  31. Re:there's a town in upstate new york called fishk by NoName6272 · · Score: 1

    what's this got to do with the book review?

    You've never meet a troll have you?