mirror of
https://github.com/hak5darren/bashbunny-payloads.git
synced 2025-10-29 16:58:12 +00:00
added the use of bunny_helpers.sh
by the use of bunny_helpers.sh possible problems with the command "find" are avoided. If the user only copies the payload from the library folder then find will find two destinations for the portal.html and therefore the script will fail.
This commit is contained in:
parent
d756033c99
commit
adb60ec163
@ -4,6 +4,9 @@
|
|||||||
# Author: Sebkinne
|
# Author: Sebkinne
|
||||||
# Version: 1.0
|
# 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/
|
||||||
|
|
||||||
# Add or remove inputs here
|
# Add or remove inputs here
|
||||||
INPUTS=(username password)
|
INPUTS=(username password)
|
||||||
|
|
||||||
@ -27,7 +30,8 @@ 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 $(dirname $(find /root/udisk/payloads/ -name portal.html))
|
||||||
|
cd /root/udisk/payloads/$SWITCH_POSITION
|
||||||
chmod +x captiveportal
|
chmod +x captiveportal
|
||||||
./captiveportal ${INPUTS[@]}
|
./captiveportal ${INPUTS[@]}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user