Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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