command-line-murders/i-0cda748b2cee58cb9
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 SadServersroot 590 0.0 0.9 220796 4244 ? Ssl 14:15 0:00 /usr/sbin/rsyroot 594 0.1 1.1 13488 5416 ? Ss 14:15 0:00 /lib/systemd/_chrony 595 0.0 0.7 10856 3724 ? S 14:15 0:00 /usr/sbin/chr_chrony 600 0.0 0.1 10724 556 ? S 14:15 0:00 /usr/sbin/chrroot 601 0.2 0.3 2872 1740 tty1 Ss+ 14:15 0:00 /sbin/agetty root 603 0.0 0.4 4396 2144 ttyS0 Ss+ 14:15 0:00 /sbin/agetty root 604 0.0 1.5 13348 7020 ? Ss 14:15 0:00 sshd: /usr/sbroot 620 0.1 3.7 26612 17336 ? Ss 14:15 0:00 /usr/bin/pythadmin 675 0.0 0.7 5920 3632 pts/0 S<s+ 14:15 0:00 bash -l admin 678 0.4 4.1 98188 19388 pts/0 R<l+ 14:15 0:00 /usr/bin/pythadmin 681 0.0 3.0 24456 14432 pts/0 R<+ 14:15 0:00 /usr/bin/pythadmin 682 0.0 0.1 2480 508 pts/1 S<s 14:15 0:00 sh -c /bin/baadmin 683 0.0 0.9 6820 4428 pts/1 S< 14:15 0:00 /bin/bash admin 688 0.0 0.6 8648 3176 pts/1 R<+ 14:16 0:00 ps auux admin@i-0113c5af4b6af66cd:~$ which
kihei/i-0113c5af4b6af66cd 00:33
by SadServerserrNetClosing,errorruntime.defaultGOROOT.strruntime.buildVersion.strruntadmin@i-0b4feba2b32953187:~$ ^C admin@i-0b4feba2b32953187:~$ kihei bash: kihei: command not found admin@i-0b4feba2b32953187:~$ ks bash: ks: command not found admin@i-0b4feba2b32953187:~$ ls agent data datafile kihei admin@i-0b4feba2b32953187:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-0b4feba2b32953187:~$