kihei/i-0af8cfecbf1963f99
by SadServersMore by SadServers
[:delay_enter=DELAY][:delay_exit=DELAY][:when=WHEN], --inject=SET[:error=ERRNO|:retval=VALUE][:signal=SIG][:syscall=SYSCALL] [:delay_enter=DELAY][:delay_exit=DELAY][:when=WHEN] perform syscall tampering for the syscalls in SET delay: microseconds or NUMBER{s|ms|us|ns} when: FIRST[..LAST][+[STEP]] -e fault=SET[:error=ERRNO][:when=WHEN], --fault=SET[:error=ERRNO][:when=WHEN] synonym for -e inject with default ERRNO set to ENOSYS. Miscellaneous: -d, --debug enable debug output to stderr -h, --help print help message --seccomp-bpf enable seccomp-bpf filtering -V, --version print version admin@i-054157b3157fdc4cd:~$ strace ./kihei -v
kihei/i-054157b3157fdc4cd 01:21
by SadServersdrwx------ 5 root root 4096 Nov 1 12:56 . drwxr-xr-x 18 root root 4096 Nov 1 12:54 .. -rw-r--r-- 1 root root 571 Apr 10 2021 .bashrc drwxr-xr-x 3 root root 4096 Nov 1 12:56 .config drwx------ 5 root root 4096 Nov 1 12:56 .mc -rw-r--r-- 1 root root 161 Jul 9 2019 .profile drwx------ 2 root root 4096 Sep 17 16:44 .ssh --wxrw--wT 1 root root 984 Sep 17 17:16 mc.sh root@i-065b0b4396750e734:~# cat .config/ cat: .config/: Is a directory root@i-065b0b4396750e734:~# cd .config/ root@i-065b0b4396750e734:~/.config# ls asciinema root@i-065b0b4396750e734:~/.config# cat asciinema/install-id a8958cd1-8249-4f60-9b73-4859fccd1f47root@i-065b0b4396750e734:~/.config#
kihei/i-065b0b4396750e734 02:07
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