OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: Capn_Fish on October 14, 2007, 01:17:37 pm

Title: Nmap Not Working.
Post by: Capn_Fish 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.
Title: Nmap Not Working.
Post by: Capn_Fish on October 16, 2007, 06:18:26 pm
Nobody? Or is this just that obvious?
Title: Nmap Not Working.
Post by: sdjf 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
Title: Nmap Not Working.
Post by: Capn_Fish 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.
Title: Nmap Not Working.
Post by: sdjf 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
Title: Nmap Not Working.
Post by: sdjf on October 23, 2007, 04:00:01 am
Look at this:

https://www.oesf.org/forum/lofiversion/index.php/t9529.html (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
Title: Nmap Not Working.
Post by: Capn_Fish 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.
Title: Nmap Not Working.
Post by: sdjf 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
Title: Nmap Not Working.
Post by: Capn_Fish 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.
Title: Nmap Not Working.
Post by: sdjf 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