Index: examples/nmapAnswerMachine.py --- examples/nmapAnswerMachine.py.orig +++ examples/nmapAnswerMachine.py @@ -25,11 +25,11 @@ from impacket.examples import os_ident MAC = "01:02:03:04:05:06" IP = "192.168.67.254" -IFACE = "eth0" +IFACE = "em0" OPEN_TCP_PORTS = [80, 443] OPEN_UDP_PORTS = [111] UDP_CMD_PORT = 12345 -nmapOSDB = '/usr/share/nmap/nmap-os-db' +nmapOSDB = '${LOCALBASE}/share/nmap/nmap-os-db' # Fingerprint = 'Adtran NetVanta 3200 router' # CD=Z TOSI=Z <----------- NMAP detects it as Linux!!! # Fingerprint = 'ADIC Scalar 1000 tape library remote management unit' # DFI=S @@ -1123,5 +1123,5 @@ if __name__ == '__main__': # [-] ??? (TOS) Type of Service # [-] ??? (RUL) Length of return UDP packet is correct -# sudo nmap -O 127.0.0.2 -p 22,111,89 -# sudo python nmapAnswerMachine.py -i eth0 -p 192.168.66.254 -f 'Sun Solaris 9 (SPARC)' +# doas nmap -O 127.0.0.2 -p 22,111,89 +# doas ${MODPY_BIN} nmapAnswerMachine.py -i em0 -p 192.168.66.254 -f 'Sun Solaris 9 (SPARC)'