Privilege Escalation [Searching]
Checking Environment Variable
# To list all variable
Get-ChildItem Env:
cmd /c "set"Searching for Hidden Plain text
# Searching for KeePass Database.
Get-ChildItem -Path C:\ -Include *.kdbx -File -Recurse -ErrorAction SilentlyContinue
# Searching for Text file and configuration file in Xampp
Get-ChildItem -Path C:\xampp -Include *.txt,*.ini -File -Recurse -ErrorAction SilentlyContinue
# Searching credential files in Home Directory of the user.
Get-ChildItem -Path C:\Users\<USERNAME> -Include *.txt,*.pdf,*.xls,*.xlsx,*.doc,*.docx,*.ini,*.exe, *.log, *.bak -File -Recurse -ErrorAction SilentlyContinue
# To search for running binary
tasklist /v
# You want to get Full name with above command
Get-ChildItem -Path C:\Users -Include *.txt,*.pdf,*.xls,*.xlsx,*.doc,*.docx,*.ini,*.exe, *.log, *.bak -File -Recurse -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName
# If Above command output looks overwhelming then run command for each extention one by one.Accessing User account
Finding Hidden information
Searching in Script Block Logging
Shortcut:
Manual approach:


Looking Inside Hidden Directory
Using Automated tool
Last updated
