paris/i-07ce4a8d4e2cfe93b
by SadServersMore by SadServers
write(2, "main.main", 9main.main) = 9 write(2, "(", 1() = 1 write(2, ")\n", 2) ) = 2 write(2, "\t", 1 ) = 1 write(2, "./main.go", 9./main.go) = 9 write(2, ":", 1:) = 1 write(2, "64", 264) = 2 write(2, " +", 2 +) = 2 write(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-0f74c319172ce7b15:~$ strace ./kihei
kihei/i-0f74c319172ce7b15 00:46
by SadServersdrwxr-xr-x 3 root root 4096 Sep 17 16:44 .. drwx------ 3 admin admin 4096 Sep 17 17:15 .ansible -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4096 Jan 2 13:17 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4096 Sep 17 17:28 agent drwxr-xr-x 2 admin root 4096 Jan 2 13:20 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 -rw-r--r-- 1 admin admin 0 Jan 2 13:19 newdatafile admin@i-0d2fffbb2efd15ca7:~$ touch data/newdatafile admin@i-0d2fffbb2efd15ca7:~$ touch data/newdatafile admin@i-0d2fffbb2efd15ca7:~$ c
kihei/i-0d2fffbb2efd15ca7 02:59
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