magnifying-glassEnumeration

After we have a shell, we need to enumerate the system

Check Recycle Bin

Finding Executables

Finding bash.exe

Bash.exe may be present on Windows systems through WSL (Windows Subsystem for Linux), Git Bash, MSYS2, or Cygwin installations.

Using where command (fastest):

where /R C:\ bash.exe

Using PowerShell:

Get-ChildItem -Path C:\ -Filter bash.exe -Recurse -ErrorAction SilentlyContinue
dir /s /b C:\bash.exe

Common bash.exe locations:

  • C:\Windows\System32\bash.exe (WSL)

  • C:\Program Files\Git\bin\bash.exe (Git Bash)

  • C:\Program Files\Git\usr\bin\bash.exe (Git Bash)

  • C:\msys64\usr\bin\bash.exe (MSYS2)

  • C:\cygwin\bin\bash.exe (Cygwin)

Quick WSL check:

Finding any executable

DACLS

Check access for directories

System Information

Basic System Info

OS Information

Installed Software

User Enumeration

Current User

List all users

User details

Network Information

Network configuration

Routing table

ARP cache

Active connections

Firewall status

Process and Service Enumeration

Running processes

Services

Scheduled tasks

File and Directory Enumeration

Search for files

Find files containing specific text

Recently modified files

World-writable folders

Registry Enumeration

AlwaysInstallElevated

Search registry

AutoRun programs

Credentials and Sensitive Data

Check for saved credentials

Search for passwords in files

Unattended install files

Installed Programs and Paths

PATH environment variable

Program Files directories

Check for development tools

Locksmith

Last updated