Commands

  • To understand Powershell working and commands formation do checkout

Powershell
  • Commands used in post exploitation for CMD and Powershell variants

C: command for cmd
P: command for powershell
  • System information

C: systeminfo
P: Get-ComputerInfo
  • Grep

C: findstr
P: Select-String -Pattern "OS:"
  • Piping

|
C: systeminfo | findstr "OS"
P: cat test.txt | Select-String -Pattern "OS"
  • User name

C: whoami [or] echo %username%
P: $env:UserName  
  • Machine name

  • Users

  • Information about the user

  • Groups

  • Get Group members

  • Get the network adapters

  • Routing Table information

  • Open ports

  • Scheduled Jobs

  • Running Process

  • Starting a service

  • Installed Drivers

  • Last upated information

  • Juicy files location

  • Find files

  • Search for a string in a file

  • Serch registry for passwords

  • Running Services

  • Information about the running processes

  • Copy a file

  • Move a file

  • Download a file

  • Exeucte powershell scripts directly from the memory

Last updated

Was this helpful?