Merge pull request #1 from FluxionNetwork/master

merge
This commit is contained in:
Matt Gates 2017-07-23 08:32:32 -04:00 committed by GitHub
commit 8d52227900
6 changed files with 239 additions and 287 deletions

View File

@ -3,6 +3,13 @@
# Fluxion is the future of MITM WPA attacks # Fluxion is the future of MITM WPA attacks
Fluxion is a remake of linset by vk496 with (hopefully) less bugs and more functionality. It's compatible with the latest release of Kali (rolling). The attack is mostly manual, but experimental versions will automatically handle most functionality from the stable releases. Fluxion is a remake of linset by vk496 with (hopefully) less bugs and more functionality. It's compatible with the latest release of Kali (rolling). The attack is mostly manual, but experimental versions will automatically handle most functionality from the stable releases.
## Router login page
Share your own router page with a simple script
```
cd scripts
sudo sh router.sh
```
## :trident: FAQ ## :trident: FAQ
#### "Clients are not automatically connected to the fake access point" #### "Clients are not automatically connected to the fake access point"
@ -56,6 +63,9 @@ All contributions are welcome! Code, documentation, graphics or even design sugg
A Linux-based operating system. We recommend Kali Linux 2 or Kali 2016.1 rolling. Kali 2 & 2016 support the latest aircrack-ng versions. An external wifi card is recommended. A Linux-based operating system. We recommend Kali Linux 2 or Kali 2016.1 rolling. Kali 2 & 2016 support the latest aircrack-ng versions. An external wifi card is recommended.
## Related work
For development I use vim and tmux. Here are my [dotfiles](https://github.com/deltaxflux/takumi/)
## :octocat: Credits ## :octocat: Credits
1. l3op - contributor 1. l3op - contributor
2. dlinkproto - contributor 2. dlinkproto - contributor

View File

@ -948,10 +948,9 @@ function handshakelocation {
echo -e "handshake location (Example: $red$WORK_DIR.cap$transparent)" echo -e "handshake location (Example: $red$WORK_DIR.cap$transparent)"
echo -e "Press ${yellow}ENTER$transparent to skip" echo -e "Press ${yellow}ENTER$transparent to skip"
echo echo
echo -ne "Path: "
if [ "$FLUX_AUTO" = "0" ];then if [ "$FLUX_AUTO" = "0" ];then
read handshakeloc read -e -p "Path: " handshakeloc
fi fi
fi fi
@ -1351,53 +1350,75 @@ function ConnectionRESET {
echo echo
echo -e ""$red"["$yellow"2"$red"]"$transparent" $header_ConnectionRESET" echo -e ""$red"["$yellow"2"$red"]"$transparent" $header_ConnectionRESET"
echo echo
echo -e " "$red"["$yellow"$n"$red"]"$transparent" English [ENG] (NEUTRA)";n=`expr $n + 1` totallines=46 # number of selection lines to print
echo -e " "$red"["$yellow"$n"$red"]"$transparent" German [GER] (NEUTRA)";n=`expr $n + 1` itemprinted=0
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Russian [RUS] (NEUTRA)";n=`expr $n + 1`
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Italian [IT] (NEUTRA)";n=`expr $n + 1` for line in $( seq 1 $((totallines/2+1)) ); do
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Spanish [ESP] (NEUTRA)";n=`expr $n + 1` for column in {0..1}; do
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Portuguese [POR] (NEUTRA)";n=`expr $n + 1` n=$line
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Chinese [CN] (NEUTRA)";n=`expr $n + 1` if (( $column == 1 )); then
echo -e " "$red"["$yellow"$n"$red"]"$transparent" French [FR] (NEUTRA)";n=`expr $n + 1` n=$((line+(totallines+1)/2))
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Turkish [TR] (NEUTRA)";n=`expr $n + 1` fi
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Romanian [RO] (NEUTRA)";n=`expr $n + 1`
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Hungarian [HU] (NEUTRA)";n=`expr $n + 1` if (( $itemprinted < $totallines )); then
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Arabic [ARA] (NEUTRA)";n=`expr $n + 1` echo -e -n " "$red"["$yellow"$n"$red"]"
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Greek [GR] (NEUTRA)";n=`expr $n + 1` case $n in
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Czech [CZ] (NEUTRA)";n=`expr $n + 1` 1 ) echo -e -n $transparent" English [ENG] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Norwegian [NO] (NEUTRA)";n=`expr $n + 1` 2 ) echo -e -n $transparent" German [GER] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Bulgarian [BG] (NEUTRA)";n=`expr $n + 1` 3 ) echo -e -n $transparent" Russian [RUS] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Serbian [SRB] (NEUTRA)";n=`expr $n + 1` 4 ) echo -e -n $transparent" Italian [IT] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Polish [PL] (NEUTRA)";n=`expr $n + 1` 5 ) echo -e -n $transparent" Spanish [ESP] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Indonesian [ID] (NEUTRA)";n=`expr $n + 1` 6 ) echo -e -n $transparent" Portuguese [POR] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Dutch [NL] (NEUTRA)";n=`expr $n + 1` 7 ) echo -e -n $transparent" Chinese [CN] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Danish [DAN] (NEUTRA)";n=`expr $n + 1` 8 ) echo -e -n $transparent" French [FR] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Hebrew [HE] (NEUTRA)";n=`expr $n + 1` 9 ) echo -e -n $transparent" Turkish [TR] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Thai [TH] (NEUTRA)";n=`expr $n + 1` 10 ) echo -e -n $transparent" Romanian [RO] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Portuguese [BR] (NEUTRA)";n=`expr $n + 1` 11 ) echo -e -n $transparent" Hungarian [HU] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Slovenian [SVN] (NEUTRA)";n=`expr $n + 1` 12 ) echo -e -n $transparent" Arabic [ARA] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Belkin [ENG]";n=`expr $n + 1` 13 ) echo -e -n $transparent" Greek [GR] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Netgear [ENG]";n=`expr $n + 1` 14 ) echo -e -n $transparent" Czech [CZ] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Huawei [ENG]";n=`expr $n + 1` 15 ) echo -e -n $transparent" Norwegian [NO] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Verizon [ENG]";n=`expr $n + 1` 16 ) echo -e -n $transparent" Bulgarian [BG] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Netgear [ESP]";n=`expr $n + 1` 17 ) echo -e -n $transparent" Serbian [SRB] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Arris [ESP]";n=`expr $n + 1` 18 ) echo -e -n $transparent" Polish [PL] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Vodafone [ESP]";n=`expr $n + 1` 19 ) echo -e -n $transparent" Indonesian [ID] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" TP-Link [ENG]";n=`expr $n + 1` 20 ) echo -e -n $transparent" Dutch [NL] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Ziggo [NL]";n=` expr $n + 1` 21 ) echo -e -n $transparent" Danish [DAN] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" KPN [NL]";n=` expr $n + 1` 22 ) echo -e -n $transparent" Hebrew [HE] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Ziggo2016 [NL]";n=` expr $n + 1` 23 ) echo -e -n $transparent" Thai [TH] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" FRITZBOX [DE] ";n=` expr $n + 1` 24 ) echo -e -n $transparent" Portuguese [BR] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" FRITZBOX [ENG] ";n=` expr $n + 1` 25 ) echo -e -n $transparent" Slovenian [SVN] (NEUTRA) ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" FRITZBOX [IT]";n=`expr $n + 1` 26 ) echo -e -n $transparent" Belkin [ENG] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" GENEXIS_DE [DE] ";n=` expr $n + 1` 27 ) echo -e -n $transparent" Netgear [ENG] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Login-Netgear[Login-Netgear] ";n=` expr $n + 1` 28 ) echo -e -n $transparent" Huawei [ENG] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Login-Xfinity[Login-Xfinity] ";n=` expr $n + 1` 29 ) echo -e -n $transparent" Verizon [ENG] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Telekom ";n=` expr $n + 1` 30 ) echo -e -n $transparent" Netgear [ESP] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" Google";n=` expr $n + 1` 31 ) echo -e -n $transparent" Arris [ESP] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent" MOVISTAR [ESP]";n=`expr $n + 1` 32 ) echo -e -n $transparent" Vodafone [ESP] ";;
echo -e " "$red"["$yellow"$n"$red"]"$transparent"\e[1;31m $general_back"$transparent"" 33 ) echo -e -n $transparent" TP-Link [ENG] ";;
echo 34 ) echo -e -n $transparent" Ziggo [NL] ";;
35 ) echo -e -n $transparent" KPN [NL] ";;
36 ) echo -e -n $transparent" Ziggo2016 [NL] ";;
37 ) echo -e -n $transparent" FRITZBOX [DE] ";;
38 ) echo -e -n $transparent" FRITZBOX [ENG] ";;
39 ) echo -e -n $transparent" FRITZBOX [IT] ";;
40 ) echo -e -n $transparent" GENEXIS_DE [DE] ";;
41 ) echo -e -n $transparent" Login-Netgear[Login-Netgear] ";;
42 ) echo -e -n $transparent" Login-Xfinity[Login-Xfinity] ";;
43 ) echo -e -n $transparent" Telekom ";;
44 ) echo -e -n $transparent" Google ";;
45 ) echo -e -n $transparent" MOVISTAR [ESP] ";;
46 ) echo -e -n $transparent"\e[1;31m $general_back"$transparent"";;
esac
itemprinted=$((itemprinted+1))
fi
done
echo
done
echo
echo -n "#? " echo -n "#? "
read webconf read webconf
@ -1847,7 +1868,7 @@ fi
function preattack { function preattack {
# Check if channel is negative # Check if channel is negative
if [ "CHANNEL" = "" ];then if [ "$CHANNEL" = "" ];then
CHANNEL=1 CHANNEL=1
fi fi
# Config HostAPD # Config HostAPD
@ -2070,10 +2091,7 @@ function attack {
sleep 0.4 sleep 0.4
ifconfig $WIFI up ifconfig $WIFI up
sleep 0.4 sleep 0.4
fi
if [ $fakeapmode = "hostapd" ]; then
killall hostapd &> $flux_output_device killall hostapd &> $flux_output_device
xterm $HOLD $BOTTOMRIGHT -bg "#000000" -fg "#FFFFFF" -title "AP" -e hostapd $DUMP_PATH/hostapd.conf & xterm $HOLD $BOTTOMRIGHT -bg "#000000" -fg "#FFFFFF" -title "AP" -e hostapd $DUMP_PATH/hostapd.conf &
elif [ $fakeapmode = "airbase-ng" ]; then elif [ $fakeapmode = "airbase-ng" ]; then
@ -2127,8 +2145,7 @@ $general_case_error"; conditional_clear ;;
function Bruteforce { function Bruteforce {
echo "where is your Dictionary: _" read -e -p "where is your Dictionary: " Dictionary0
read Dictionary0
xterm -title "aircrack-ng $Host_MAC --by Princeofguilty" -e "aircrack-ng $DUMP_PATH/$Host_MAC-01.cap -w $Dictionary0" xterm -title "aircrack-ng $Host_MAC --by Princeofguilty" -e "aircrack-ng $DUMP_PATH/$Host_MAC-01.cap -w $Dictionary0"
} }
@ -2176,7 +2193,7 @@ function handshakecheck {
ih=\"0\" ih=\"0\"
else else
ih= ih=
fi">>$DUMP_PATH/handcheck fi">$DUMP_PATH/handcheck
if [ $authmode = "handshake" ]; then if [ $authmode = "handshake" ]; then
echo "if [ -f $DUMP_PATH/pwattempt.txt ]; then echo "if [ -f $DUMP_PATH/pwattempt.txt ]; then

View File

@ -58,7 +58,7 @@ function mostrarheader(){
conditional_clear conditional_clear
echo -e "$red[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]" echo -e "$red[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]"
echo -e "$red[ ]" echo -e "$red[ ]"
echo -e "$red[ $red FLUXION $version" "${yellow} ${red} < F""${yellow}luxion" "${red}I""${yellow}s" "${red}T""${yellow}he ""${red}F""${yellow}uture > " ${blue}" ]" echo -e "$red[ $red FLUXION $version" "${yellow} ${red} < F""${yellow}luxion" "${red}I""${yellow}s" "${red}T""${yellow}he ""${red}F""${yellow}uture > "${blue}"]"
echo -e "$blue[ ]" echo -e "$blue[ ]"
echo -e "$blue[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]""$transparent" echo -e "$blue[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]""$transparent"
echo echo
@ -267,7 +267,7 @@ else
fi fi
sleep 0.025 sleep 0.025
############################## ##############################
echo -ne "Php-cgi........" echo -ne "Php-cgi........."
if ! hash php-cgi 2>/dev/null; then if ! hash php-cgi 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent"" echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing php-cgi" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e pacman -S php-cgi xterm $HOLD -title "Installing php-cgi" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e pacman -S php-cgi
@ -328,7 +328,7 @@ echo -ne "Unzip..........."
sleep 0.025 sleep 0.025
############################## ##############################
echo -ne "strings.........." echo -ne "strings........."
if ! hash strings 2>/dev/null; then if ! hash strings 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent"" echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing binutils" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e pacman -S binutils xterm $HOLD -title "Installing binutils" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e pacman -S binutils
@ -337,7 +337,7 @@ else
fi fi
sleep 0.025 sleep 0.025
############################# #############################
echo -ne "fuser............" echo -ne "fuser..........."
if ! hash fuser 2>/dev/null; then if ! hash fuser 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent"" echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing psmisc" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e pacman -S psmisc xterm $HOLD -title "Installing psmisc" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e pacman -S psmisc

View File

@ -18,11 +18,6 @@ blue='\e[1;34m'
yellow='\e[1;33m' yellow='\e[1;33m'
transparent="\e[0m" transparent="\e[0m"
#DUMP_PATH
rm -rf /tmp/Installer/
mkdir /tmp/Installer/
DUMP_PATH="/tmp/Installer/"
function conditional_clear() { function conditional_clear() {
if [[ "$INSTALLER_output_device" != "/dev/stdout" ]]; then clear; fi if [[ "$INSTALLER_output_device" != "/dev/stdout" ]]; then clear; fi
@ -48,20 +43,17 @@ fi
clear clear
#Check for X display #Check for X display
if [ -z "${DISPLAY:-}" ]; then if [ -z "${DISPLAY:-}" ]; then
echo -e "\e[1;31mThe script should be executed inside a X (graphical) session."$transparent"" echo -e "\e[1;31mThe script should be executed inside a X (graphical) session."$transparent""
exit 1 exit 1
fi fi
function mostrarheader(){ function mostrarheader(){
conditional_clear conditional_clear
echo -e "$red[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]" echo -e "$red[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]"
echo -e "$red[ ]" echo -e "$red[ ]"
echo -e "$red[ $red FLUXION $version" "${yellow} ${red} < F""${yellow}luxion" "${red}I""${yellow}s" "${red}T""${yellow}he ""${red}F""${yellow}uture > " ${blue}" ]" echo -e "$red[ $red FLUXION $version" "${yellow} ${red} < F""${yellow}luxion" "${red}I""${yellow}s" "${red}T""${yellow}he ""${red}F""${yellow}uture > "${blue}"]"
echo -e "$blue[ ]" echo -e "$blue[ ]"
echo -e "$blue[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]""$transparent" echo -e "$blue[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]""$transparent"
echo echo
@ -72,7 +64,6 @@ function mostrarheader(){
function setresolution { function setresolution {
function resA { function resA {
TOPLEFT="-geometry 90x13+0+0" TOPLEFT="-geometry 90x13+0+0"
TOPRIGHT="-geometry 83x26-0+0" TOPRIGHT="-geometry 83x26-0+0"
BOTTOMLEFT="-geometry 90x24+0-0" BOTTOMLEFT="-geometry 90x24+0-0"
@ -82,7 +73,6 @@ function setresolution {
} }
function resB { function resB {
TOPLEFT="-geometry 92x14+0+0" TOPLEFT="-geometry 92x14+0+0"
TOPRIGHT="-geometry 68x25-0+0" TOPRIGHT="-geometry 68x25-0+0"
BOTTOMLEFT="-geometry 92x36+0-0" BOTTOMLEFT="-geometry 92x36+0-0"
@ -91,7 +81,6 @@ function setresolution {
TOPRIGHTBIG="-geometry 74x30-0+0" TOPRIGHTBIG="-geometry 74x30-0+0"
} }
function resC { function resC {
TOPLEFT="-geometry 100x20+0+0" TOPLEFT="-geometry 100x20+0+0"
TOPRIGHT="-geometry 109x20-0+0" TOPRIGHT="-geometry 109x20-0+0"
BOTTOMLEFT="-geometry 100x30+0-0" BOTTOMLEFT="-geometry 100x30+0-0"
@ -122,7 +111,7 @@ function setresolution {
BOTTOMRIGHT="-geometry 90x20-0-0" BOTTOMRIGHT="-geometry 90x20-0-0"
TOPLEFTBIG="-geometry 100x70+0+0" TOPLEFTBIG="-geometry 100x70+0+0"
TOPRIGHTBIG="-geometry 90x27-0+0" TOPRIGHTBIG="-geometry 90x27-0+0"
} }
detectedresolution=$(xdpyinfo | grep -A 3 "screen #0" | grep dimensions | tr -s " " | cut -d" " -f 3) detectedresolution=$(xdpyinfo | grep -A 3 "screen #0" | grep dimensions | tr -s " " | cut -d" " -f 3)
## A) 1024x600 ## A) 1024x600
@ -142,225 +131,91 @@ case $detectedresolution in
esac esac
} }
# Installer function
function installer {
echo -ne "$1.............................." | cut -z -b1-30
echo "[*] Installing $1" >> /tmp/fluxionlog.txt
xterm $HOLD -title "Installing $1" -e "apt-get --yes install $1 | tee -a /tmp/fluxionlog.txt; echo \${PIPESTATUS[0]} > isok"
if [ "$(cat isok)" == "0" ]; then
echo -e "\e[1;32mOK!"$transparent
else
echo -e "\e[1;31mError (Check /tmp/fluxionlog.txt)."$transparent
fi
echo >> /tmp/fluxionlog.txt
rm -f isok
}
#Install Main #Install Main
conditional_clear conditional_clear
mostrarheader mostrarheader
#Check internet connection
wget -q --spider http://google.com
internet=$?
if [ "$internet" != "0" ]; then
echo "Waiting for internet connection..."
while [ "$internet" != "0" ]
do
sleep 1
wget -q --spider http://google.com
internet=$?
done
fi
echo "Updating system..." echo "Updating system..."
# adding repository and keys
if [ "$(cat /etc/apt/sources.list | grep 'deb http://http.kali.org/kali kali-rolling main contrib non-free')" = "" ]; then
gpg --keyserver hkp://keys.gnupg.net --recv-key 7D8D0BF6
apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free # by fluxion" >> /etc/apt/sources.list
else
echo "[*] Kali repository already exist, skipping."
fi
#cleaning up #cleaning up
sudo apt-get install -f -y rm -f /tmp/fluxionlog.txt
sudo apt-get autoremove -y sudo apt-get install -f -y | tee -a /tmp/fluxionlog.txt
sudo apt-get autoclean -y sudo apt-get autoremove -y | tee -a /tmp/fluxionlog.txt
sudo apt-get clean -y sudo apt-get autoclean -y | tee -a /tmp/fluxionlog.txt
sudo apt-get update sudo apt-get clean -y | tee -a /tmp/fluxionlog.txt
sudo apt-get install xterm --yes sudo apt-get update | tee -a /tmp/fluxionlog.txt
sudo apt-get install xterm --yes | tee -a /tmp/fluxionlog.txt
sleep 3
clear clear
mostrarheader mostrarheader
xterm $HOLD -title "Updating System" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install software-properties-common --yes
xterm $HOLD -title "Updating System" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e python remove.py
xterm $HOLD -title "Updating System" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e python add.py
############################## ##############################
echo -ne "Aircrack-ng....." installer software-properties-common
if ! hash aircrack-ng 2>/dev/null; then installer aircrack-ng
echo -e "\e[1;31mInstalling ..."$transparent installer gawk
xterm $HOLD -title "Installing Aircrack-ng" -e apt-get --yes install aircrack-ng installer curl
else installer dhcpd
echo -e "\e[1;32mOK!"$transparent installer isc-dhcp-server
fi installer hostapd
sleep 0.025 installer lighttpd
installer macchanger
installer mdk3
installer nmap
installer openssl
installer php-cgi
installer pyrit
installer python
installer rfkill
installer unzip
installer binutils
installer psmisc
installer git
installer net-tools
############################## # removing repository
echo "$(cat /etc/apt/sources.list | grep -v 'deb http://http.kali.org/kali kali-rolling main contrib non-free # by fluxion')" > /etc/apt/sources.list
echo -ne "Aireplay-ng....."
if ! hash awk 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Awk" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install gawk
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Airodump-ng....."
if ! hash airodump-ng 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Airodump-ng" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install aircrack-ng
else
echo -e "\e[1;32mOK!"$transparent""
fi
##############################
echo -ne "Curl............"
if ! hash curl 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Curl" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install curl
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Dhcpd..........."
if ! hash dhcpd 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing isc-dhcp-server" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install isc-dhcp-server
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Hostapd........."
if ! hash hostapd 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Hostapd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install hostapd
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Iwconfig........"
if ! hash iwconfig 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Iwconfig" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install iwconfig
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
##############################
echo -ne "Lighttpd........"
if ! hash lighttpd 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Lighttpd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install lighttpd
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Macchanger......"
if ! hash macchanger 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Macchanger" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install macchanger
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Mdk3............"
if ! hash mdk3 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Macchanger" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install mdk3
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Nmap............"
if ! hash nmap 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Nmap" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install --yes nmap
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Openssl........."
if ! hash openssl 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Openssl" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install openssl
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
##############################
echo -ne "Php-cgi........."
if ! hash php-cgi 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing php-cgi" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install php-cgi
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Pyrit..........."
if ! hash pyrit 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Pyrit" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install pyrit
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Python.........."
if ! hash python 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Python" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install python
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "rfkill.........."
if ! hash rfkill 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Rfkill" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install rfkill
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
##############################
echo -ne "Unzip..........."
if ! hash unzip 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing unzip" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install unzip
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "Xterm..........."
if ! hash xterm 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
apt-get install xterm
else
echo -e "\e[1;32mOK!"$transparent
fi
sleep 0.025
##############################
echo -ne "strings........."
if ! hash strings 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing binutils" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install binutils
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
#############################
echo -ne "fuser..........."
if ! hash fuser 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing psmisc" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install psmisc
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
#############################
xterm $HOLD -title "Remove repositories" -e python remove.py
rm -rf revolver
git clone https://github.com/molovo/revolver revolver git clone https://github.com/molovo/revolver revolver
chmod u+x revolver/revolver chmod u+x revolver/revolver
mv revolver/revolver /usr/local/bin mv revolver/revolver /usr/local/bin

View File

@ -1,5 +1,5 @@
header_setinterface="Sélectionnez une interface" header_setinterface="Sélectionnez une interface"
setinterface_error="Pas de carte wifi detecté, fin..." setinterface_error="Pas de carte wifi detecté, Fluxion va quitter..."
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_choosescan="Sélectionnez un canal" header_choosescan="Sélectionnez un canal"
@ -11,7 +11,7 @@ header_setinterface="Sélectionnez une interface"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_scan="WIFI Monitor" header_scan="WIFI Monitor"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_scanchan="Scan du reseau" header_scanchan="Scan du réseau"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_askAP="Sélectionnez une option d'attaque" header_askAP="Sélectionnez une option d'attaque"
askAP_option_1="FakeAP - Hostapd ("$red"Recommandé)" askAP_option_1="FakeAP - Hostapd ("$red"Recommandé)"
@ -33,16 +33,16 @@ header_setinterface="Sélectionnez une interface"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
general_back="Retour" general_back="Retour"
general_error_1="Pas trouvé" general_error_1="Pas trouvé"
general_case_error="Option inconnue. Sélectionnez à nouveau" general_case_error="Option inconnue. Choisissez à nouveau"
general_exitmode="Nettoyage et fermeture" general_exitmode="Nettoyage et fermeture"
general_exitmode_1="Désactivation de l'interface de monitoring" general_exitmode_1="Désactivation de l'interface de monitoring"
general_exitmode_2="Désactivation de l'interface" general_exitmode_2="Désactivation de l'interface"
general_exitmode_3="Désactivation de "$grey" transmission de paquets" general_exitmode_3="Désactivation de de la "$grey" transmission de paquets"
general_exitmode_4="Nettoyage "$grey"iptables" general_exitmode_4="Nettoyage de "$grey"iptables"
general_exitmode_5="Restauration "$grey"tput" general_exitmode_5="Restauration de "$grey"tput"
general_exitmode_6="Redémarrage "$grey"Network-Manager" general_exitmode_6="Redémarrage de "$grey"Network-Manager"
general_exitmode_7="Nettoyage effectué avec succès!" general_exitmode_7="Nettoyage effectué avec succès!"
general_exitmode_8="Merci d'avoir utilisé fluxion" general_exitmode_8="Merci d'avoir utilisé fluxion"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
selection_1="Clients actifs" selection_1="Clients actifs"
selection_2="Sélectionnez une cible. Pour relancer un scan, touche $red r$transparent" selection_2="Sélectionnez une cible. Pour relancer un scan, tape $red r$transparent"

70
scripts/router.sh Executable file
View File

@ -0,0 +1,70 @@
#!/bin/bash
##################################### < CONFIGURATION > #####################################
gateway=`ip route | grep default | awk '{print $3}'`
#Colors
white="\033[1;37m"
red="\033[1;31m"
blue="\033[1;34m"
transparent="\e[0m"
#############################################################################################
clear
echo -e "$red[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]"
echo -e "$red Prepare router page."
echo -e "$blue[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]""$transparent"
echo "[i] Prepare dep."
# Check which package manager is installed
echo "Package Manager"
if hash pacman 2>/dev/null; then
PACK="pacman -S"
else
if hash apt-get 2>/dev/null; then
PACK="apt-get install"
else
if hash yum 2>/dev/null; then
PACK="yum install"
fi
fi
fi
sleep 0.025
echo "================================================================================="
echo -ne "Httrack........."
if ! hash httrack 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
$PACK httrack
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo "================================================================================="
echo -ne "cutycapt........"
if ! hash httrack 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
$PACK cutycapt
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo "================================================================================="
if [ ! -d sites ];then
mkdir sites
fi
#############################################################################################
echo "[i] Download preview picture"
cutycapt --url=http://$gateway --out=sites/$(date | awk '{print $4}').png
echo "================================================================================="
cd sites
echo "[i] Download router site"
httrack $gateway
echo "================================================================================="
echo "[I] DONE"