GermanNoob Posted March 22, 2017 Share Posted March 22, 2017 3 minutes ago, GreenRubi said: I'm having the same issues bunny_helpers.sh. The $SWITCH_POSITION variable is always empty. :( Have you downloaded the newest version of all payloads (including bunny_helpers.sh) from GitHub? try the test I just described and tell us the result. Quote Link to comment Share on other sites More sharing options...
GreenRubi Posted March 22, 2017 Share Posted March 22, 2017 I've tried the following: ensuring source bunny_helpers.sh is in my payload.txt. ensuring source bunny_helpers.sh comes after ATTACKMODE statement. This is my payload: LED R 100 ATTACKMODE HID source bunny_helpers.sh QUACK GUI r QUACK DELAY 100 QUACK STRING Testing Switch Position, Switch Position is $SWITCH_POSITION QUACK DELAY 100 LED G My result is: Testing Switch Position, Switch Position is Any other idea of things I can check? Thanks. Quote Link to comment Share on other sites More sharing options...
GreenRubi Posted March 22, 2017 Share Posted March 22, 2017 10 minutes ago, GermanNoob said: That's really weird as I tested your first payload on my BashBunny & Computer and it works just fine... Have you tested the bunny_helpers.sh "offline" meaning without using in a payload? Just connect your Bunny and connect to it with screen or ssh Mount the payload drive to /root/udisk with mount -o sync /dev/nandf /root/udisk 3. goto /root/udisk/payloads/library 4. type "source bunny_helpers.sh" 5. type "echo $SWITCH_POSITION" That should work and tests your bunny_helpers.sh Trying this now... Will let you know. Quote Link to comment Share on other sites More sharing options...
GreenRubi Posted March 22, 2017 Share Posted March 22, 2017 BINGO... I had an old version of the bunny_helpers.sh file. Thanks for the assistance. Quote Link to comment Share on other sites More sharing options...
GermanNoob Posted March 22, 2017 Share Posted March 22, 2017 You're welcome, @GreenRubi Quote Link to comment Share on other sites More sharing options...
trumpet7347 Posted March 22, 2017 Share Posted March 22, 2017 54 minutes ago, GermanNoob said: That's really weird as I tested your first payload on my BashBunny & Computer and it works just fine... Have you tested the bunny_helpers.sh "offline" meaning without using in a payload? Just connect your Bunny and connect to it with screen or ssh Mount the payload drive to /root/udisk with mount -o sync /dev/nandf /root/udisk 3. goto /root/udisk/payloads/library 4. type "source bunny_helpers.sh" 5. type "echo $SWITCH_POSITION" That should work and tests your bunny_helpers.sh Just tried this and it helped me figure out that the file was DOS encoded, not Unix. Changed the encoding and everything works fine now. Thanks for the help! Quote Link to comment Share on other sites More sharing options...
ccollins Posted July 14, 2017 Share Posted July 14, 2017 Fixed it! I had the same problem with an empty $SWITCH_POSITION until I updated my firmware to 1.3. Be sure to follow instructions closely here https://wiki.bashbunny.com/#!downloads.md Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.