1833465 Members
2849 Online
110052 Solutions
New Discussion

nmap on hp-ux 11.0

 
William Pribble
Frequent Advisor

nmap on hp-ux 11.0

When I try to run nmap on my 11.0 workstation I get the following error message.

ovserv|root:/opt/nmap/bin # ./nmap -sP 10.64.162.0/24

Starting nmap V. 2.53 by fyodor@insecure.org ( www.insecure.org/nmap/ )
pcap_open_live: can't find PPA for /dev/lan0
There are several possible reasons for this, depending on your operating system:
LINUX: If you are getting Socket type not supported, try modprobe af_packet or r
ecompile your kernel with SOCK_PACKET enabled.
*BSD: If you are getting device not configured, you need to recompile your kern
el with Berkeley Packet Filter support. If you are getting No such file or dire
ctory, try creating the device (eg cd /dev; MAKEDEV ; or use mknod).
SOLARIS: If you are trying to scan localhost and getting '/dev/lo0: No such fil
e or directory', complain to Sun. I don't think Solaris can support advanced lo
calhost scans. You can probably use "-P0 -sT localhost" though.

QUITTING!

Any help would be greatly appreciated.


3 REPLIES 3
Uday_S_Ankolekar
Honored Contributor

Re: nmap on hp-ux 11.0

Hi,

This link might help you

http://www.nmap.org

-USA..
Good Luck..

Re: nmap on hp-ux 11.0

You can try giving the device name (PPA) like /dev/dlpi0

Manoj
Alan Nicholson
Occasional Advisor

Re: nmap on hp-ux 11.0

You need to modify the lan0 device file to use the dlpi driver in the kernel instead of the lan driver.

1. Log on to your box as root and issue a lanscan command. The far right column should be titled "DLPI Mjr#".

2. Find the entry for lan0 and make a note of the dlpi major number for lan0 (on my machine it's 119).

3. Change directory to /dev

4. ll the lan0 file and make a note of the minor device number (that's the long one starting 0x), on my system it is 0x000000.

5. mv the lan0 file to lan0.old (in case you want to go back later).

6. Use the mknod command to create a new lan0 device file using the major number for dlpi and minor number from your "old" lan file. On my system the command becomes "mknod lan0 c 119 0x000000".

7. nmap should now work (fingers crossed!).
In time, on budget, good quality. Pick any two.