Package:nmap Version:4.53-1~bpo40+1
When I execute /usr/bin/nmap --open -n -p 515,631,9100 192.168.7.0/24 <http://192.168.4.0/24> 2>/dev/null | grep ^Interesting | awk '{print $4}' |cut -d: -f1, It doesn't show some printers that exists on the net. Example: ServerName:~# /usr/bin/nmap --open -n -p 515,631,9100 192.168.7.0/24 2>/dev/null | grep ^Interesting | awk '{print $4}' |cut -d: -f1 ServerName:~# We can see that exists a printer with ip 192.168.7.221: ServerName:~# /usr/bin/nmap --open -n -p 515,631,9100 192.168.7.221 2>/dev/null | grep ^Interesting | awk '{print $4}' |cut -d: -f1 192.168.7.221 ServerName:~# nmap 192.168.7.221 Starting Nmap 4.53 ( http://insecure.org ) at 2009-06-24 11:40 CEST Interesting ports on pc221-7.21700356.21.andared.cec.junta-andalucia.es (192.168.7.221): Not shown: 1706 closed ports PORT STATE SERVICE 21/tcp open ftp 23/tcp open telnet 80/tcp open http 280/tcp open http-mgmt 443/tcp open https 515/tcp open printer 631/tcp open ipp 9100/tcp open jetdirect MAC Address: 00:0E:7F:36:41:C8 (Hewlett Packard) If I install namp 4.11 version, i always find the printer with the command: ServerName:~# /usr/bin/nmap -n -p 515,9100 192.168.7.0/24 | grep -B3 open | grep Interesting | cut -d" " -f4 | cut -d: -f1 192.168.7.221 ServerName:~# dpkg -l|grep nmap ii nmap 4.11-1 The Network Mapper Same problem we can find on 4.62 and 4.68 versions. The bug happens in a random way, ocassionally it works! -- System Information: Debian Release: 4.0 Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: 2.6.18-6-686 Locale: LANG=es_ES, LC_CTYPE=es_ES (charmap=UTF-8) Versions of packages nmap depends on: ii libc6 2.3.6.ds1-13etch9+b1 GNU C Library: Shared libraries ii libgcc1 4.1.1-21 GCC support library ii libpcap0.8 0.9.5-1 System interface for user-level packet capture ii libpcre3 6.7+7.4-4 Perl 5 Compatible Regular Expression Library - runtime files ii libssl0.9.8 0.9.8c-4etch5 SSL shared libraries ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 If you put "--send-ip" option on 4.53 version, It works correctly. Is this a bug?, or anew funcion of nmap?