eCrofey Posted August 25, 2017 Share Posted August 25, 2017 I'm little bit disappointed there 're not much scripts for W8 or W10 and most of the Exploits for W8 or W10 're already patched.So I can't really use the Bash Bunny To this comes also that in most interesting places only certified power shell scripts are allowed. I don't know if there are a way to bypass the certificate. Quote Link to comment Share on other sites More sharing options...
PoSHMagiC0de Posted August 29, 2017 Share Posted August 29, 2017 I believe the signed with a valid cert scripts thing can be bypassed, if you are local admin, with the parameter "-ExecutionPolicy Bypass" or "-Exec Bypass" for short. Also, if the script is being typed from the command line, it does not have to be signed, only if you are running it from a file. So another way around it is to have the BB type out a download cradle for your script which will load it into memory as a string (not string array, if you are ending up with a string count of more than 1 then pipe that out the "out-string" to make it a solid here-string) where you can then execute it. Execution policy doesn't affect code in memory, only code on the disk. Take a look at other payloads, some do just this. I believe Darrin's exfiltration script does this also. The BBTPS does but maybe more confusing to read since I have it staying up for a certain number of heartbeats to give time for the BB network to come online and dying if it times out. 1 Quote Link to comment Share on other sites More sharing options...
eCrofey Posted August 29, 2017 Author Share Posted August 29, 2017 Thanks I will check it out ! 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.