command-line-murders/i-052566db2ed1ab05f
by SadServersMore 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
taipei/i-05ea7b30c835c60a9 03:55
by SadServersadmin 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 SadServersWARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-0bac7be7cee2fffc8:~$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sdb lvm2 --- 1.00g 1.00g /dev/sdc lvm2 --- 1.00g 1.00g admin@i-0bac7be7cee2fffc8:~$ sudo vgcreate vg_1 /dev/sdb /dev/sdc Volume group "vg_1" successfully created admin@i-0bac7be7cee2fffc8:~$ sudo vgs VG #PV #LV #SN Attr VSize VFree vg_1 2 0 0 wz--n- 1.99g 1.99g admin@i-0bac7be7cee2fffc8:~$ sudo lvcreate lv_1 -l 100%vg vg_1 Volume group "lv_1" not found Cannot process volume group lv_1 admin@i-0bac7be7cee2fffc8:~$ sudo lvcreate -lv_1 -l 100%vg vg_1