command-line-murders/i-09bed29f41d80f318
by SadServersMore by SadServers
#!/bin/bash expected_checksum="d8bee9d7f830d5fb59b89e1e120cce8e" actual_checksum=$(md5sum /home/admin/mysolution | awk '{print $1}') if [[ "$actual_checksum" == "$expected_checksum" ]]; then echo -n "OK" else echo -n "NO" fiadmin@i-061454707f2cf9aeb:~/agent$ file sadagent sadagent: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linkeH6A8cVluPFUvaNojVwMi/C5t-5rNiA5GJLWeSm5Qz/KXfivG_lDFnrqPGrWEJo/K_OQEFevUZEPr4lPEadmin@i-061454707f2cf9aeb:~/agent$ .. bash: ..: command not found admin@i-061454707f2cf9aeb:~/agent$
paris/i-061454707f2cf9aeb 01:55
by SadServersdr-xr-xr-x 3 root root 0 Feb 6 06:31 task -rw-r--r-- 1 root root 0 Feb 6 06:31 timens_offsets -r--r--r-- 1 root root 0 Feb 6 06:31 timers -rw-rw-rw- 1 root root 0 Feb 6 06:31 timerslack_ns -rw-r--r-- 1 root root 0 Feb 6 06:31 uid_map -r--r--r-- 1 root root 0 Feb 6 06:31 wchan admin@i-0fb869488634369c7:/proc/575$ sudo usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [comusage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [directory] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-irectory] [-T timeout] [-u user] file ... admin@i-0fb869488634369c7:/proc/575$ sudo -
paris/i-0fb869488634369c7 02:09
by SadServers693 pts/1 00:00:00 sh 694 pts/1 00:00:00 bash 800 pts/1 00:00:00 ps admin@i-0b98d3e9a33585961:~$ netstat -an | grep 5000 tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN admin@i-0b98d3e9a33585961:~$ lsof -i :5000 admin@i-0b98d3e9a33585961:~$ lsof -i :5000 admin@i-0b98d3e9a33585961:~$ ss -lntu | grep 5000 tcp LISTEN 0 128 127.0.0.1:5000 0.0.0.0:* admin@i-0b98d3e9a33585961:~$ lsof -i :5000 admin@i-0b98d3e9a33585961:~$ netstat -tulnp | 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-0b98d3e9a33585961:~$ netstat -tulnp | grep