Payload: Fixed CaptivePortal

This commit is contained in:
Sebastian Kinne 2017-03-21 08:19:12 +11:00
parent 14472b2a05
commit c9e41fc7d9
No known key found for this signature in database
GPG Key ID: 7F899C8AF843F556
2 changed files with 6 additions and 7 deletions

View File

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

View File

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