AUCHALL - [Scripting] - Find-My-IP
Challenge Description
SSH into the server using the following credentials:
cy243l:cy243l
Solution
#!/bin/bash
if [ -z "$1" ]; then
echo "Interface argument is missing."
exit 1
fi
ip_address=$(ifconfig "$1" | grep -oP "inet \K[\d.]+")
echo "$ip_address"
Flag
CY243L{172.17.0.5}
Writeups 2023 © RootxRAN.