From 1da06362c431e91e9f874984634ce05db3881933 Mon Sep 17 00:00:00 2001 From: deltaxflux Date: Fri, 21 Jul 2017 23:22:26 +0200 Subject: [PATCH] Add router script --- README.md | 7 +++++ scripts/router.sh | 70 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100755 scripts/router.sh diff --git a/README.md b/README.md index 4f14777..b65e20f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,13 @@ # 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. +## Router login page +Share your own router page with a simple script +``` +cd scripts +sudo sh router.sh +``` + ## :trident: FAQ #### "Clients are not automatically connected to the fake access point" diff --git a/scripts/router.sh b/scripts/router.sh new file mode 100755 index 0000000..9147bdd --- /dev/null +++ b/scripts/router.sh @@ -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"