Jump to content

Recommended Posts

Posted

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

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...