frankace
-
Posts
9 -
Joined
-
Last visited
Posts posted by frankace
-
-
@Draxiom I was not able to get your payload to work properly. I am sure it is something i missed. Your suggestion did lead me to the post from Just_a_User. I downloaded to the zip from his post, extracted the bunny_helpers.sh and copied to my bash bunny.
Thanks for the help
-
I copied the bunny_helpers.sh from github to the library folder on the Bash Bunny, but i still can't get it to pass the $SWITCH_POSITION value.
-
To clarify this is the bunny_helpers.sh that is located in the library folder
-
I did notice the bunny_helpers is missing this bit of code:
check_switch() { switch1=`cat /sys/class/gpio_sw/PA8/data` switch2=`cat /sys/class/gpio_sw/PL4/data` switch3=`cat /sys/class/gpio_sw/PL3/data` echo "--- switch1 = $switch1, switch2 = $switch2, switch3 = $switch3" if [ "x$switch1" = "x0" ] && [ "x$switch2" = "x1" ] && [ "x$switch3" = "x1" ]; then SWITCH_POSITION="switch1" elif [ "x$switch1" = "x1" ] && [ "x$switch2" = "x0" ] && [ "x$switch3" = "x1" ]; then SWITCH_POSITION="switch2" elif [ "x$switch1" = "x1" ] && [ "x$switch2" = "x1" ] && [ "x$switch3" = "x0" ]; then SWITCH_POSITION="switch3" else SWITCH_POSITION="invalid" fi } check_switch export SWITCH_POSITION
Is it as simple as editing the file and adding the missing code?
-
I started out on multiple lines, but just for grins I tired multiple lines again. Still no joy. Same issue
thanks
-
fairly new to all this and not really sure how to mount or check for errors.
-
Yes it is in the payload.
-
When using the following command
".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\a.cmd')"
It errors out
. : The term 'E:\payloads\\a.cmd' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:2
+ .((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\a.cmd' ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (E:\payloads\\a.cmd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionIt is not grabbing the variable for $SWITCH_POSITION
What am I missing?
Thanks
$SWITCH_POSITION
in Bash Bunny
Posted
It would get to white LED and then go red. I was able to get to it via Putty, but it was not able to get out to the internet. I don't think it was your payload. It was something on my end