Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Fix for target not being able to launch powershell after adding persistence#225

Open
kafkaesqu3 wants to merge 1 commit intoPowerShellMafia:devfrom
kafkaesqu3:dev
Open

Fix for target not being able to launch powershell after adding persistence#225
kafkaesqu3 wants to merge 1 commit intoPowerShellMafia:devfrom
kafkaesqu3:dev

Conversation

@kafkaesqu3
Copy link
Copy Markdown

@kafkaesqu3 kafkaesqu3 commented Mar 22, 2017

When Powersploit's persistence mechanisms are deployed, the user on the target machine will not be able to run powershell. This is because the payload (which is run inside a script in the user's profile) never returns, so the prompt will hang forever. This can be a problem since it might cause the target to become suspicious and investigate why he can't run powershell, finding the persistence mechanism.

I fixed this by running the payload as a job and sending output to out-null. This way when a persistence mechanism is deployed on a target machine, the user can still run powershell without it hanging and without seeing payload output.

…ell while certain persistence mechanisms were in place. Payload now executes in the background
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant