Black_chameleon Posted March 8, 2017 Share Posted March 8, 2017 I just ran the USB Exfiltration script from switch1. The powershell command included the $SWITCH_POSITION text instead of it being expanded. I have the updated bunny_helpers.sh that includes the "export SWITCH_POSITION" command. When I manually changed the payload.txt to point to switch1, the scripts finished perfectly! Original: QUACK STRING powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\$SWITCH_POSITION\d.cmd')" I changed to: QUACK STRING powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\switch1\d.cmd')" Any way I can help debug this? Willing to try anything to help figure this out. Quote Link to comment Share on other sites More sharing options...
IMcPwn Posted March 8, 2017 Share Posted March 8, 2017 The problem is needing to escape the QUACK string because it includes a bash variable. This pull request fixes it: https://github.com/hak5/bashbunny-payloads/pull/17 The correct line is: QUACK STRING powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\d.cmd')" Quote Link to comment Share on other sites More sharing options...
Black_chameleon Posted March 8, 2017 Author Share Posted March 8, 2017 Thank you So much! I just found that and manually changed it. Fixed my problem. May I delete this post since that fix was discussed here: 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.