Results 1 to 7 of 7

Thread: nmap -sL does not resolve netbios names

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Location
    Shoulder surfing besides you...
    Posts
    39

    Default nmap -sL does not resolve netbios names

    Hello,

    nmap -sL does not resolve netbios names not even with the
    -R switch. I guess its used for resolving IP to DNS names
    then what about the netbios names on a local network
    where DNS is not installed??

    Please help

  2. #2
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    -sL relies on reverse DNS, it even mentions this in the man page.

    But, to be sure, I ran it against two hosts I have internally, as one is an alias IP address it doesn't have a reverse IP - sure enough, it worked just fine (and didn't report the hostname) until I added a reverse DNS entry for that address.

    Find other ways to scan netbios information.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  3. #3
    Junior Member
    Join Date
    Dec 2008
    Location
    Shoulder surfing besides you...
    Posts
    39

    Default

    Thx Gitsnik, that solves my query I did check the MAN page
    before posting my query here. But I thought for resolving
    IP to Netbios names thru nmap there might be some different
    switch. Thx again

  4. #4
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    nmap -sV might find the NetBIOS name if the share is open, there also may be a script to do it (I haven't looked, nor ever needed to).

    There may be other ways too involving nmap, but those would be the ones I would look at.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

  5. #5
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by Gitsnik View Post
    nmap -sV might find the NetBIOS name if the share is open, there also may be a script to do it (I haven't looked, nor ever needed to).

    There may be other ways too involving nmap, but those would be the ones I would look at.
    The nmap scanning engine will also give up the info.
    Try the -A in 5.x I believe it is and this will run common nse scans.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  6. #6
    My life is this forum thorin's Avatar
    Join Date
    Jan 2010
    Posts
    2,629

    Default

    According to 4.85BETA8 (on Winblows machine is a bit behind):
    -A: Enables OS detection and Version detection, Script scanning and Traceroute
    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.

  7. #7
    Very good friend of the forum Gitsnik's Avatar
    Join Date
    Jan 2010
    Location
    The Crystal Wind
    Posts
    851

    Default

    -A has been around almost as long as I have been using Nmap (which is a few years now), and was originally considered "all" or "agressive". So using -A was initially just like executing -sV -O, and has now moved on to incorporate all the rest as well.

    It is useful, but if one needs to know how things work, it is probably better to be constructing the command line completely before using the simpler switches.
    Still not underestimating the power...

    There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •