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

Payload injection: failure when injecting powershell #404

Open
lubiedo opened this issue Jul 12, 2022 · 1 comment
Open

Payload injection: failure when injecting powershell #404

lubiedo opened this issue Jul 12, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lubiedo
Copy link
Contributor

lubiedo commented Jul 12, 2022

Info

Branch: master
Command line:

$ pyrdp-mitm.py --payload-powershell-file payload.ps1  --payload-delay 10000 --payload-duration 1000 [REDACTED]

Windows version: Server 2016 Datacenter

Issue:

image

Fix:

A simple fix would be to use ; instead of & here:

return self.attacker.sendText(self.config.payload + " & exit")

This way we will ignore the output and just execute the exit.

@lubiedo lubiedo added the bug Something isn't working label Jul 12, 2022
@lubiedo lubiedo self-assigned this Jul 12, 2022
@obilodeau
Copy link
Collaborator

Did you git blame for why it was an ampersand to begin with? AFAIK & is not even valid on cmd, it should've been &&

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants