Fundamentals
The foundation the rest of the wiki builds on: how networks, operating systems, the web and cryptography work, plus the everyday tooling (terminal, scripting, Git, virtualization). If you are starting from scratch, follow the cards in order.
START HERE
CARDS (24 cards)
fundamentos/
- Pentest Methodology
Pentest methodology: scope and rules of engagement, phases and their loop, reference frameworks, notes and evidence, and lab vs real engagement.
- Networking Fundamentals
The pieces of a network, the layered model, how a packet is encapsulated and what changes at each hop: the basis for scanning, sniffing, MITM and pivoting.
- IP Addressing, Subnets and NAT
How to read an IPv4 address with its mask: network, broadcast and hosts, private and special ranges, and what NAT does (and doesn't) do.
- How a Packet Travels: Gateway, ARP and Routes
How your machine decides whether to deliver a packet directly or to the gateway, how it maps IP to MAC with ARP, and how to read the routing table.
- TCP, UDP and Ports
What sets TCP apart from UDP, how the handshake works, what ports and sockets are, and why nmap marks a port as open, closed or filtered.
- The Terminal and the Shell
The terminal: anatomy of a command, getting help, paths, redirections and pipes, variables and PATH, text filters and upgrading a shell to interactive.
- Linux: Files, Users and Permissions
Linux for privilege escalation: the filesystem, users and UIDs, rwx and octal permissions, SUID, SGID and sticky, capabilities, and sudo vs su.
- Linux: Processes, Services and Software
Linux internals: processes and signals, systemd services and their logs, scheduled tasks, tmux, and how software gets installed (apt, pipx, venv, Go).
- Bash Scripting
Bash for security: variables and quoting, arguments, conditions, loops, functions, exit codes and text processing to automate recon.
- The Windows Console: CMD and PowerShell
CMD and PowerShell: Verb-Noun cmdlets, the object pipeline with Get-Member, filtering and searching, .ps1 scripts, Execution Policy and PSReadLine history.
- Windows: Files, Users and Permissions
Windows for security: NTFS, key paths and folders, local and domain accounts, SYSTEM, SIDs and RIDs, groups, UAC, privileges and ACLs with icacls.
- Windows: Processes, Services, Registry and Networking
Windows internals: normal vs fake processes, services and their accounts, the registry, scheduled tasks and networking (ports by process, RDP, WinRM, firewall).
- Active Directory: Domains, Objects and Groups
Active Directory from scratch: domain and DC, DN, UPN, SID, OU, tree and forest, why it depends on DNS, key groups and the order GPOs apply in.
- Active Directory: Authentication with Kerberos and NTLM
Authentication vs authorization, the access token, Kerberos step by step (TGT, TGS, SPN), NTLM, and why connecting by IP or by name changes the protocol.
- Python from Scratch
Python from scratch for security: types, data structures, control flow, functions, files and errors, up to writing your own scripts.
- Python for Hacking
Python in a real engagement: bytes vs str, requests with sessions and Burp, sockets, subprocess without a shell, threads and porting exploits from 2 to 3.
- Regular Expressions
Regular expressions: metacharacters, classes, anchors, quantifiers, groups and lookarounds in grep, sed and Python, and pulling IPs, URLs and hashes from logs.
- Git for Hacking
Git for security: how it stores history, everyday commands and why deleted data is still there, the root of many exposed secrets.
- Virtualisation, Containers and Their Networks
Virtualization for labs: hypervisors, snapshots, VM network modes (NAT, bridged, host-only, internal) and how Docker networking works.
- HTTP Fundamentals
HTTP for web hacking: requests and responses, methods, status codes, key headers, URLs and encoding, cookies, sessions, tokens and what HTTPS changes.
- DNS and DHCP
How a name gets resolved (cache, hosts, resolver, root, TLD, authoritative), which DNS records matter, how to query them and what DHCP hands out.
- Cryptography: The Basics
Cryptography basics: what each primitive guarantees, why encoding is not encryption, symmetric, asymmetric, hashes and passwords.
- TLS and Certificates
TLS: what it protects, the TLS 1.3 handshake, X.509 certificates and the chain of trust, SNI, Certificate Transparency and how Burp intercepts HTTPS.
- Building Your Lab
Where to practice without breaking anything or the law: attack box, victims, isolated network, a minimal Active Directory and the online platforms.