I implemented a New PowerShell Handler #277
L015H4CK
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Awesome — I am currently working on and testing version 8, and I will integrate this handler into the windows client. Thanks for the good work and support of this project! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am happy to hear the handler will be integrated! I am looking forward to the release of version 8. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone (and especially Dustin again),
I have been working with GHOSTS for some weeks now and wanted to execute PowerShell commands directly, i.e. not using the Command Handler and commands like
powershell -c (...)
.So I went ahead and implemented a new PowerShell Handler - see my fork(direct compare with master). Basically, the PowerShell Handler is implemented the same way as Command Handler, with the only difference that it calls
powershell.exe
instead ofcmd.exe
(see here).Additionally, I wanted to be able to use randomness during the PowerShell command execution. Since the BrowserHandler already implemented such randomness, I used the same technique to replace placeholders in the PowerShell commands (see here). I think it would be nice to implement this functionality for the Command Handler as well.
Also, I will happily write down a few steps on how to implement a new Handler for the documentation (in case I did everything correctly and as intended) so that people can integrate new handlers more easily (because it took me some time to integrate it into the various components of GHOSTS).
I will gladly answer any questions and open a pull request if the PowerShell Handler should be integrated into GHOSTS.
Best regards,
L015 🧚♂️
Beta Was this translation helpful? Give feedback.
All reactions