paris/i-0ff88b0a1b5e530b4
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 SadServersdrwxr-xr-x 2 admin root 4096 Sep 17 2023 data -rwxr-xr-x 1 admin root 2207109 Sep 17 2023 kihei drwxr-xr-x 2 admin root 4096 Sep 17 2023 agent admin@i-0c04274541d88a1da:~$ sudo ./kihei Error: This program cannot be run as the 'root' superuser. admin@i-0c04274541d88a1da:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-0c04274541d88a1da:~$ sudo cat /dev/null > datafile bash: datafile: Permission denied admin@i-0c04274541d88a1da:~$ sudo su -
kihei/i-0c04274541d88a1da 00:56
by SadServers[sudo] password for admin: Sorry, try again. [sudo] password for admin: Sorry, try again. [sudo] password for admin: sudo: 3 incorrect password attempts admin@i-048902c622e991104:~$ su Password: su: Authentication failure admin@i-048902c622e991104:~$ systemctl status nginx Unit nginx.service could not be found. admin@i-048902c622e991104:~$ systemctl status apache2 Unit apache2.service could not be found. admin@i-048902c622e991104:~$ curl -I local
paris/i-048902c622e991104 02:58
by SadServersadmin@i-098e8bd6780cfa047:~$ sudo netstat -antp We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for admin: Sorry, try again. [sudo] password for admin: sudo: 1 incorrect password attempt admin@i-098e8bd6780cfa047:~$ ^C admin@i-098e8bd6780cfa047:~$ sys