Jump to content

$SWITCH_POSITION


frankace

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

  1. Just connect your Bunny and connect to it with screen or ssh
  2. 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.

Link to comment
Share on other sites

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?

  1. Just connect your Bunny and connect to it with screen or ssh
  2. 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!

 

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...