mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Payload: Fixed CaptivePortal
This commit is contained in:
parent
14472b2a05
commit
c9e41fc7d9
@ -1,7 +1,7 @@
|
||||
# Captive Portal for the Bash Bunny
|
||||
|
||||
Author: Sebkinne
|
||||
Version: 1.0
|
||||
Version: 1.1
|
||||
|
||||
## Description
|
||||
|
||||
|
||||
@ -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[@]}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user