Notes - Hacker Setup
NOTE: This is just a scratchpad. Don’t take it too seriously…
TODO
Review
Be strategic… only review sections on exam
- DOUBLE CHECK: REDO certain sections
- Active Directory
- SQL Injection
sqlmap- XSS
- File Inclusion
- File Upload
Kali
- make zsh hook or something that background scan commands, saves output to unique file in ~/kali_logs (maybe make this exportable $HACKER_LOG)
- send notification when done?
- force default pwd is in kali_logs and not ~
- set some msfvenom options automagically like LHOST (tun0 or listening port) and any other VARS? maybe random autoport
- vim highlighter for targets and split screen to have targets on top (maybe better thing exists without vim base)
- create shell function to get tun0 callback IP easily
- PowerShell: https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-linux?view=powershell-7.5
Windows
- add to VM:
- zellij
- make it for default for all terminals
- plink/PuTTY (maybe not necesary)
- proxifier
- openvpn
- maybe VPN connect helper script
- nmap (already install in FLARE VM)
- wsl first time setup
wsl --install --distribution Debian
- zellij
- set default display resolution: 1920x1080
- add automatic VPN configs files
Website
add Hugo shortcode torelrefjust a header section of a page like “See [LINK]” but it’s an expandable block of the sourced information to prevent duplication but allow easy access of contextually relevant information- scrollable tables to not overflow in mobile view
Notes
- study a few IppSec videos to polish process
- use REPORTING pentest template and make that into a Obsidian template (replace current one)
- add good download locations for file-transfer (or embed-section
common-location-paths) - move or reorg assessment vs access info for files like SSH and RDP
- Include mitigations into notes
- embed ffuf and burp/zap into http page under section 4
- make web checklist
- add commands notes from [[Persisting Active Directory]]
- embed mimikatz commands into active-directory page isntead of duplicated commands
- add tmux cheatatsheets
- create Golden and Silver ticket explanations in
active-directoryor inauth proc - kerberos file - add
secretsdump.pyandnxe --ntds embed Network Info http://127.0.0.1:1313/docs/7—lateral-movement/lateral-movement/ section into the AD Domain Enummake bloodhound its own page- add in setup notes for tools that need to be git clone or downloaded (check the kali-linux Ansible playbooks) in order to make sure notes are useful for all VMs
make responder and web traffic capture as pre-actions (before any active scanning)make checklist for sectionsweb enumADespecially workflow process to compromise a domain (users, pass, machines, trust, etc.)domain user and computer attributes, group membership, Group Policy Objects, permissions, ACLs, trustsadsisearcherinstead of PS moduleActiveDirectory
DNSNMAP (or ARP) for host discoverySMB (enum4linux-ng, anon/null sessions)
- fix
mirror.ymlfor website - TASTY BINARIES?: https://github.com/Flangvik/SharpCollection?tab=readme-ov-file
SAMPLE PENTEST ENGAGEMENT FLOW: https://archive.ph/i6AeUsplit out Hydra from password into its own section?- add
dnstttolateral-movementsection - make cheatsheet guide:
- scan IP or block
- run forked background scan per service that is specialized (SMB, Wordpress, etc.)
- maybe AI to read scan and highlight top moves?
- Add standards to notes from: https://academy.hackthebox.com/beta/module/108/section/1027
- Add firewall probing to notes: https://tryhackme.com/room/redteamfirewalls
- Make file transfer quick pastables script for dummy files (to see what works)… maybe 1 command to run them all or something? (e.g autosetup SMB, HTTP, etc. server and print out connection info or pastables), auto encryption or encoding for files placed in certain folders
- Various windows priv esc techniques: https://academy.hackthebox.com/beta/module/24/section/159
- Vuln Scoring system: https://academy.hackthebox.com/beta/module/108/section/1228
- Add standards to notes from: https://academy.hackthebox.com/beta/module/108/section/1027
- Make notes from THM Red Teaming Section