List of commands: https://www.pdq.com/powershell/. PowerShell, Powercat & Nishang

What actually is Powershell?

Common Commands + Alias + Table

Enumeration Commands + Table

Powershell Scripting

<aside> 💡 Google for cmdlet or function Eg: Get-Command > goto #notes for summary and alias.

</aside>

Some commands that you might require on daily basis as a beginner for Pentesting.

Basic - Help, Grep, Length, gcm, pwd, Test-Path

Help menu - Get-Help <Command> or help <command> or man <command> (PS treats man same as help) e.g. help New-Object, (Look REMARKS for more commands) -

Untitled

Grep - Select-String or sls e.g. To find short alias of commands, alias of Get-Alias is gal : gal > shorts.txt then cat shorts.txt | sls "gal" outputs Get-Alias.

Hashing - Get-FileHash

Alternate for other OSes - shasum(mac), md5(mac), sha256sum(linux), md5sum(linux)

Get-FileHash D:\\Temp\\file.txt -Algorithm MD5 E.g. and Get-FileHash help menu.

Untitled

Untitled