nathgreco

Random @ in compiled code

2 posts in this topic

HI, I have made a PowerShell script to enable USB drive access ( as some machines I work with have usb drives disabled,

the PowerShell command works fine however when I use the website to create the inject.bin file using the website it places an @  in the PowerShell code, causing the code to fail

the @ is not in my code, I'm guessing it's being added during compiling,

any ideas would be greatly appreciated

Code:

REM let the HID enumerate
DELAY 1000
GUI r
DELAY 200
REM my best attempt at a elevated powershell instance
STRING powershell Start-Process powershell -Verb runAs
ENTER
DELAY 1000

REM Run Unlock Script
STRING Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\USBSTOR" -name start -Value 3
ENTER
DELAY 200

i-JjzG4QG-L.jpg

0

Share this post


Link to post
Share on other sites

never mind found this

and switching the language to Us English works like a treat 

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.