Exploitation (공격)
All you need to know about basic host-based exploitation for OSCP
Windows Exploitiation
Basic commands
net user $username $password /addnet localgroup "$groupname" $username /addnet localgroup administrators $username /addsysteminfo | findstr /B /C:"OS Name" /C:"OS Version"wmic qfe get Caption,Description,HotFixID,InstalledOnfindstr /si password .txt
findstr /si password .xml
findstr /si password *.iniFind all those strings in config files
Find all passwords in all files
Download files from Attacker Box ( Kali ) to the target via powershell
Other downloading and uploading techinques

Finding password files in Registry
VNC
Windows autologin
SNMP Paramters
Putty
Search for password in registry
Finding credentials in Groups.xml
Finding admin credentials from AppData
Running commands as a different user by using runas command
Enable RDP in Windows Target
Port 88 - Kerberoasting
Exploiting AD users
Other Useful commands
List out all schedule tasks
Find GPP Passwords in SYSVOL
Run Powershell prompt as a different user, without loading profile to the machine [replace DOMAIN and USER]
Insert reg key to enable Wdigest on newer versions of Windows
Linux Exploitation
Spawing a intereactive TTY linux shell
Exploiting Directory
Find any writable directories
Finding only Executable folders
Finding Writable and executable folders
Find commands that allows you to run as root with no password

Check the bash histroy
Check the process it's running
Finding Plaintext Passwords in web server
Plaintext Password in /var/www/html/*.php
In mail
Chekcing the service ti's running
GTFOBins
Authomation Tools
LinEnum.sh
pspy
Other useful commands
List out all scheduled tasks
Password Cracking
Creating a password list
Cracking Tools
Cracking Hash
Keepass password
Putty key ppk to SSH key
Linux shadow password
Decoding Base64
Cracking Unzip file password
Convert Hex to Binary
Online Tools
Cracking password for Services
Port 22- SSH
Cracking Priave RSA Key
Port 161 - SNMP
Port 3389 - RDP
Port 80/443 htaccess
Password protect directory with htaccess
HTTP POST Login Form
Pass The Hash
SMB PTH
RDP PTH
Misc: Windows Password check in SAM
Last updated
