paris/i-0f6c30f8d04ab9891
by SadServersMore by SadServers
admin 681 0.0 0.9 6740 4532 pts/0 S<s+ 17:03 0:00 bash -l admin 685 0.0 4.1 98188 19252 pts/0 R<l+ 17:03 0:00 /usr/bin/pythadmin 688 0.0 3.0 24456 14384 pts/0 S<+ 17:03 0:00 /usr/bin/pythadmin 689 0.0 0.1 2480 572 pts/1 S<s 17:03 0:00 sh -c /bin/baadmin 690 0.0 1.0 6952 4716 pts/1 S< 17:03 0:00 /bin/bash admin 834 0.0 0.6 8648 3240 pts/1 R<+ 17:07 0:00 ps -aux admin@i-0855e77fc64d64a54:~$ cat /home/admin/webserver cat: /home/admin/webserver: No such file or directory admin@i-0855e77fc64d64a54:~$ ls /home/admin/ agent webserver.py admin@i-0855e77fc64d64a54:~$ cat /home/admin/webserver.py cat: /home/admin/webserver.py: Permission denied admin@i-0855e77fc64d64a54:~$ ls -l /home/admin/webserver.py -rwxrwx--- 1 root root 360 Sep 24 2023 /home/admin/webserver.py admin@i-0855e77fc64d64a54:~$
paris/i-0855e77fc64d64a54 02:42
by SadServersWe 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: Sorry, try again. [sudo] password for admin: sudo: 3 incorrect password attempts admin@i-040ec55e8e002101c:~$ find / -name webserver
paris/i-040ec55e8e002101c 02:48
by SadServers# Define the range of ports you want to test (from PORT_START to PORT_END) PORT_START=1 PORT_END=65535 # Define the target host (localhost in this case) TARGET_HOST="localhost" # Loop through the range of ports and run curl with a 1-second timeout for ((port = PORT_START; port <= PORT_END; port++)); do "$TARGET_HOST:$port" &>/dev/null if [ $? -eq 0 ]; then echo "Port $port is open" fi done