Windows
Commands
User Related
# User info
whoami /all
# User info
net user
# Show groups
net group
# Show local groups
net localgroup <groupname>
# Add user to group
net group <groupname> /add <username>
# Create account
net user <username> <password> /add
# Create account (AD)
# This will force the command to execute on the domain controller instead of the local computer
net user <username> <password> /add /domainBasic
System
Download Files
Services
Directories
Configuration Files
Most config files can be found in C:\Windows\System32\config
Get Info From Registry Hive
Mount Windows Shares and VHD Files
The Common Internet File System (CIFS) is a network file-sharing protocol. CIFS is a form of SMB.
Mount VHD Files
One can use guestmount to mount a guest filesystem on the host.
Install with: apt install libguestfs-tools
References
accesschk - Enumeration
AccessChk is a command-line tool for viewing the effective permissions on files, registry keys, services, processes, kernel objects, and more. This tool will be helpful to identify whether the current user can modify files within a certain service directory.
Github.**
Example usage in CTF situations
AV Evasion
GreatSCT
Inside GreatSCT.py
Now start the listener with msfconsole -r file.rc and execute the xml payload with:
References
Office Files
Modern Office documents are just zip archives with XML files so, just unzip it and look for data within the XML files.
oletools
Last updated