Author Topic: Nmap Not Working.  (Read 9521 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Nmap Not Working.
« on: October 14, 2007, 01:17:37 pm »
When I try to run nmap on my Zaurus (pdaX r198, Ambicom WL1100C wireless, custom-built pcap), it says

Code: [Select]
Starting Nmap 4.20 ( http://insecure.org ) at 2007-10-14 12:14 UTC
pcap_open_live(wlan0, 104, 0, 200) FAILED. Reported error: live packet capture not supported on this system.  Will wait 5 seconds then retry.
caught SIGINT signal, cleaning up

What causes this? Kismet works fine. Do I need to put the card into monitor mode or something (it's just connected to my wireless now).

Thanks.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Nmap Not Working.
« Reply #1 on: October 16, 2007, 06:18:26 pm »
Nobody? Or is this just that obvious?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Nmap Not Working.
« Reply #2 on: October 22, 2007, 12:15:57 pm »
You could try running strace and study the output to see where the process hangs.

If there were some kind of logs, you could also check those.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Nmap Not Working.
« Reply #3 on: October 22, 2007, 02:24:04 pm »
It's not hanging just giving an error (as seen above). It kind of looks like a config thing.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Nmap Not Working.
« Reply #4 on: October 23, 2007, 03:49:09 am »
Uh, well did you try strace if it helped you figure out the error better?

If it's in the CF slot, did you try "cardctl reset"  or "pccardctl reset"?  Yeah, maybe some kind of timing out to play with cfg files to fix.  Where are the Nmap experts?

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Nmap Not Working.
« Reply #5 on: October 23, 2007, 04:00:01 am »
Look at this:

https://www.oesf.org/forum/lofiversion/index.php/t9529.html

also check out what else google turns up for:

nmap "live packet capture" "not supported"

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Nmap Not Working.
« Reply #6 on: October 23, 2007, 07:51:03 am »
OK, that error was because I forgot to install pcap. Now it says:

Code: [Select]
dnet: failed to open device wlan0
Any ideas?

Thanks for helping, by the way!

EDIT: I'm now getting the live packet capture error again...Weird.
« Last Edit: October 23, 2007, 07:54:41 am by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Nmap Not Working.
« Reply #7 on: October 24, 2007, 10:35:58 am »
Is it the identical "live packet capture" error or slightly different?  I would still run strace to see exactly what it's doing up until it fails.  Have you used it before?

I also would go back and see if there are any more useful hints in those google results for other Linux systems.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Nmap Not Working.
« Reply #8 on: October 24, 2007, 09:05:17 pm »
I think it's the same error, and I'll try strace.

One thing that came up was recompiling the kernel with something or other enabled, but I'll hold off on that for at least a bit.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Nmap Not Working.
« Reply #9 on: November 01, 2007, 09:04:38 am »
Strace could take the guesswork out of what's going wrong because you can see the calls and all from just before it messes up.

Have you used it before?  I tend to increase the output string when I run it to make sure it doesn't cut off anything important.  My strace for this would look something like:

strace -f -v -s 200 -o /mnt/card/nmap.strace nmap &

You could have it put the results wherever you wanted and call the output file after -o whatever you want, I put mine on SD card.  The number after -s is the length of each diagnostic string.  If a line is longer than that, it gets truncated and I think the default is something like 30 characters IIRC.

Just try it...you could post the last 50-100 lines of output to get help interpreting?

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards