kihei/i-012952269c8a299f9
by SadServersMore by SadServers
latest revision: https://github.com/lsof-org/lsof latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/L usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]] [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names] Use the ``-h'' option to get more help information. admin@i-0d46f6faaf9ff441c:~$ lsof -n -i :5000 admin@i-0d46f6faaf9ff441c:~$ netstat -tulpn | grep 5000 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN admin@i-0d46f6faaf9ff441c:~$ nc localhost 5000 ^C admin@i-0d46f6faaf9ff441c:~$ tel
paris/i-0d46f6faaf9ff441c 02:23
by SadServersConnecting to localhost (localhost)|127.0.0.1|:5000... connected. HTTP request sent, awaiting response... 200 OK Length: 12 [text/html] index.html: Permission denied Cannot write to ‘index.html’ (Permission denied). admin@i-060882b6b7423c159:/etc/python3$ cd .. admin@i-060882b6b7423c159:/etc$ cd .. admin@i-060882b6b7423c159:/$ find "index.html" find: ‘index.html’: No such file or directory admin@i-060882b6b7423c159:/$ find *"index.html" find: ‘*index.html’: No such file or directory admin@i-060882b6b7423c159:/$ find */"index.html" find: ‘*/index.html’: No such file or directory admin@i-060882b6b7423c159:/$ find */"index.html"
paris/i-060882b6b7423c159 04:33
by SadServersudp UNCONN 0 0 127.0.0.1:323 0.0.udp UNCONN 0 0 0.0.0.0:68 0.0.udp UNCONN 0 0 [fe80::8a8:d3ff:fe19:c113]%ens5:546 [udp UNCONN 0 0 [::1]:323 [tcp LISTEN 0 511 0.0.0.0:80 0.0.tcp LISTEN 0 128 0.0.0.0:22 0.0.tcp LISTEN 0 4096 *:6767 tcp LISTEN 0 511 [::]:80 [tcp LISTEN 0 4096 *:8080 tcp LISTEN 0 128 [::]:22 [admin@i-0fe60fd5038ba7352:/etc$ ls -l /proc/511/cmd ls: cannot access '/proc/511/cmd': No such file or directory admin@i-0fe60fd5038ba7352:/etc$ curl http://localhost:80 curl: (7) Failed to connect to localhost port 80: Connection refused admin@i-0fe60fd5038ba7352:/etc$ echonc -u