Payload: Fixed CaptivePortal

This commit is contained in:
Sebastian Kinne
2017-03-21 08:19:12 +11:00
parent 14472b2a05
commit c9e41fc7d9
2 changed files with 6 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
# Captive Portal for the Bash Bunny # Captive Portal for the Bash Bunny
Author: Sebkinne Author: Sebkinne
Version: 1.0 Version: 1.1
## Description ## Description

View File

@@ -2,10 +2,7 @@
# #
# Title: Captiveportal # Title: Captiveportal
# Author: Sebkinne # Author: Sebkinne
# Version: 1.0 # Version: 1.1
# Usage of bunny_helpers.sh to avoid problems with find in function startCaptiveportal
https://forums.hak5.org/index.php?/topic/40237-install-tools/
# Add or remove inputs here # Add or remove inputs here
INPUTS=(username password) INPUTS=(username password)
@@ -18,6 +15,9 @@ ATTACKMODE RNDIS_ETHERNET
# DO NOT EDIT BELOW THIS LINE # # DO NOT EDIT BELOW THIS LINE #
################################################################## ##################################################################
source bunny_helpers.sh
WORKINGPATH="/root/udisk/payloads/$SWITCH_POSITION"
# Sets up iptable forwarding and filters # Sets up iptable forwarding and filters
function setupNetworking() { function setupNetworking() {
echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/ip_forward
@@ -30,8 +30,7 @@ function setupNetworking() {
# Find payload directory and execute payload # Find payload directory and execute payload
function startCaptiveportal() { function startCaptiveportal() {
# cd $(dirname $(find /root/udisk/payloads/ -name portal.html)) cd $WORKINGPATH
cd /root/udisk/payloads/$SWITCH_POSITION
chmod +x captiveportal chmod +x captiveportal
./captiveportal ${INPUTS[@]} ./captiveportal ${INPUTS[@]}
} }