mirror of
https://github.com/hak5darren/bashbunny-payloads.git
synced 2025-10-29 16:58:12 +00:00
Payload: Fixed CaptivePortal
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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[@]}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user