kihei/i-0eda2bc33bbba2475
by SadServersMore by SadServers
agent webserver.py admin@i-0360c0d51a2cc6a1e:~$ ss -lnt4p State Recv-Q Send-Q Local Address:Port Peer AddreLISTEN 0 128 127.0.0.1:5000 0.0.0LISTEN 0 128 0.0.0.0:22 0.0.0admin@i-0360c0d51a2cc6a1e:~$ curl localhost:5000 Unauthorizedadmin@i-0360c0d51a2cc6a1e:~$ ls agent webserver.py admin@i-0360c0d51a2cc6a1e:~$ string webserver.py bash: string: command not found admin@i-0360c0d51a2cc6a1e:~$ python webserver.py bash: python: command not found admin@i-0360c0d51a2cc6a1e:~$ python3 webserver.py python3: can't open file '/home/admin/webserver.py': [Errno 13] Permission denieadmin@i-0360c0d51a2cc6a1e:~$ c
paris/i-0360c0d51a2cc6a1e 03:45
by SadServers# The program is typically sudo, sudoers.so, sudoreplay or visudo. # # Subsystems vary based on the program; "all" matches all subsystems. # Priority may be crit, err, warn, notice, diag, info, trace or debug. # Multiple subsystem@priority may be specified, separated by a comma. # #Debug sudo /var/log/sudo_debug all@debug #Debug sudoers.so /var/log/sudoers_debug all@debug admin@i-020f08eb573cc1e85:~$ ls agent webserver.py admin@i-020f08eb573cc1e85:~$ cat /etc/sudo sudo.conf sudo_logsrvd.conf sudoers sudoers.d/ admin@i-020f08eb573cc1e85:~$ cat /etc/sudoers cat: /etc/sudoers: Permission denied admin@i-020f08eb573cc1e85:~$
paris/i-020f08eb573cc1e85 06:02
by SadServersdrwxr-xr-x 2 admin root 4096 Sep 17 17:28 agent drwxr-xr-x 2 admin root 4096 Sep 17 17:28 data -rw-r--r-- 1 root root 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-011967f767ae5a17a:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-011967f767ae5a17a:~$ vim kihei admin@i-011967f767ae5a17a:~$ cd data admin@i-011967f767ae5a17a:~/data$ ls admin@i-011967f767ae5a17a:~/data$ cd ../ admin@i-011967f767ae5a17a:~$ ca