2009-01-27 18:46:23 |
stilus |
description |
Binary package hint: netcat-traditional
opening a netcat listener and reading from lsof, I expected something like this:
sudo netcat -l -p 3333 < /dev/null :
lsof |grep netcat:
netcat 19548 root cwd DIR 254,1 4096 1318919 /home/<user>
netcat 19548 root rtd DIR 254,1 4096 2 /
netcat 19548 root txt REG 254,1 19884 3440703 /bin/nc.traditional
netcat 19548 root mem REG 254,1 38412 491553 /lib/tls/i686/cmov/libnss_files-2.7.so
netcat 19548 root mem REG 254,1 1364388 491544 /lib/tls/i686/cmov/libc-2.7.so
netcat 19548 root mem REG 254,1 109152 493064 /lib/ld-2.7.so
netcat 19548 root 0r CHR 1,3 6670 /dev/null
netcat 19548 root 1u CHR 136,0 2 /dev/pts/0
netcat 19548 root 2u CHR 136,0 2 /dev/pts/0
netcat 19548 root 3r IPv4 133694 TCP *:3333 (LISTEN)
But I got this:
sudo netcat -l -p 3333 <namedpipe>
lsof |grep netcat:
<output nil, nada>
Same when just run as regular user, same when run as "nc" (and of course grepping on nc, or on /lib/tls/i686/cmov/libc-2.7.so which it uses)
Filename: pool/main/n/netcat/netcat_1.10-36_all.deb
lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04 |
Binary package hint: netcat-traditional
opening a netcat listener which reads from a named pipe, and then looking at lsof, I expected something like this (/dev/null is just an example here):
sudo netcat -l -p 3333 < /dev/null :
lsof |grep netcat:
netcat 19548 root cwd DIR 254,1 4096 1318919 /home/<user>
netcat 19548 root rtd DIR 254,1 4096 2 /
netcat 19548 root txt REG 254,1 19884 3440703 /bin/nc.traditional
netcat 19548 root mem REG 254,1 38412 491553 /lib/tls/i686/cmov/libnss_files-2.7.so
netcat 19548 root mem REG 254,1 1364388 491544 /lib/tls/i686/cmov/libc-2.7.so
netcat 19548 root mem REG 254,1 109152 493064 /lib/ld-2.7.so
netcat 19548 root 0r CHR 1,3 6670 /dev/null
netcat 19548 root 1u CHR 136,0 2 /dev/pts/0
netcat 19548 root 2u CHR 136,0 2 /dev/pts/0
netcat 19548 root 3r IPv4 133694 TCP *:3333 (LISTEN)
But I got this:
sudo netcat -l -p 3333 <namedpipe>
lsof |grep netcat:
<output nil, nada>
Same when just run as regular user, same when run as "nc" (and of course grepping on nc, or on /lib/tls/i686/cmov/libc-2.7.so which it uses)
Filename: pool/main/n/netcat/netcat_1.10-36_all.deb
lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04 |
|