Skip to content

Instantly share code, notes, and snippets.

@carnal0wnage
Last active October 18, 2018 23:10
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save carnal0wnage/5b5980fc409782f52259 to your computer and use it in GitHub Desktop.
PowerShell exec with Import Module to run in Meterpreter shell (local file)
powershell.exe -exec bypass -Command "& {Import-Module 'C:\Users\user\Desktop\PowerTools\PowerView\powerview.ps1'; Get-NetDomain}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment