other
- Location
advanced-exploits-2.md:479- Finding
Privileged Browser Data Exfiltration to an Attacker-Controlled Server
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a CTF exploitation reference skill, but it contains operational reverse-shell, privilege-escalation, data-exfiltration, and system-file modification guidance without strong lab-only guardrails.
Install only for controlled CTF or disposable lab use. Do not let an agent run the examples against real systems, production browsers, personal files, or hosts where you lack explicit authorization; use an isolated VM/container and review package installs first.
advanced-exploits-2.md:479Privileged Browser Data Exfiltration to an Attacker-Controlled Server
advanced-exploits-4.md:54Embedded Detached Netcat Reverse-Shell Launcher
advanced-exploits-4.md:73SeDebugPrivilege Abuse for Injection into a SYSTEM Process
kernel.md:388Kernel modprobe_path Overwrite for Root Script Execution
kernel.md:460core_pattern Overwrite Creates a Reusable Root Execution Trigger
sandbox-escape.md:38Root Account Takeover Through /etc/passwd Modification
SKILL.md:19Unpinned Third-Party Tool Installation
The Meterpreter reference appears in a privilege-escalation workflow (SeDebugPrivilege to SYSTEM via migration into winlogon.exe), which is strongly associated with post-exploitation on real Windows hosts. In this context, it is a concrete offensive tradecraft indicator rather than an accidental keyword match.
SEH (Structured Exception Handler) overwrite with stack pivot to ROP chain. `pushad` builds VirtualAlloc call frame for DEP (Data Execution Prevention) bypass. Detached process launcher for shell stability on thread-based servers. See [advanced-exploits-4.md](advanced-exploits-4.md#windows-seh-overwrite-pushad-virtualalloc-rop-rainbowtwo-htb).
## SeDebugPrivilege → SYSTEM
`SeDebugPrivilege` + Meterpreter `migrate -N winlogon.exe` -> SYSTEM. See [advanced-exploits-4.md](advanced-exploits-4.md#sedebugprivilege-to-system-rainbowtwo-htb).
## mmap/munmap Size Mismatch UAF (0CTF 2017)
Over-unmap via mmap(small)/munmap(large) destroys adjacent mappings. Thread stack fills gap, old buffer pointer becomes write-into-stack. Race-free UAF variant. See [advanced-exploits-4.md](advanced-exploits-4.md#mmapmunmap-size-mismatch-uaf-for-thread-stack-overlap-0ctf-2017).
## strcspn Indirect Null Byte Injection (BSidesSF 2017)
`strcspn(buf, "\r\n")` + null write truncates strings at injected newli
This section gives direct guidance for using Meterpreter to migrate into SYSTEM-owned processes via SeDebugPrivilege, which is a post-exploitation tradecraft pattern strongly associated with real intrusions. In a skill available to an agent, this enables concrete privilege-escalation assistance and process injection guidance with immediate offensive utility.
the correct value, pushad builds the entire STDCALL function call frame in the exact order Windows expects. This avoids the need for mov [esp+N], reg gadgets which are rare.
Exploits SeDebugPrivilege to escalate to SYSTEM by migrating into a SYSTEM-owned process. The privilege allows debugging any process, even if listed as "Disabled" -- Meterpreter enables it automatically before use.
Steps:
meterpreter > migrate -N winlogon.exe
meterpreter > getuid
# NT AUTHORITY\SYSTEM
Meterpreter's migrate injects a DLL into the target process (winlogon.exe, lsass.exe), running code as that process's user (SYSTEM).
Detection: whoami /priv shows SeDebugPrivilege. Common on service accounts and NT AUTHORITY\SERVICE.
Key insight: Always run whoami /priv after landing a Windows shell. SeDebugPrivilege -- even w
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [overflow-basics.md](overflow-basics.md) - Stack/global buffer overflow, ret2win, canary bypass, canary byte-by-byte brute force on forking servers, struct po
Referenced artifact was not completely inspected
- [format-string.md](format-string.md) - Format string exploitation (leaks, GOT overwrite, blind pwn, filter bypass, canary leak, __free_hook, .rela.plt patchin
Referenced artifact was not completely inspected
- [format-string.md](format-string.md) - Format string exploitation (leaks, GOT overwrite, blind pwn, filter bypass, canary leak, __free_hook, .rela.plt patchin
Referenced artifact was not completely inspected
- [format-string.md](format-string.md) - Format string exploitation (leaks, GOT overwrite, blind pwn, filter bypass, canary leak, __free_hook, .rela.plt patchin
Referenced artifact was not completely inspected
- [format-string.md](format-string.md) - Format string exploitation (leaks, GOT overwrite, blind pwn, filter bypass, canary leak, __free_hook, .rela.plt patchin
Referenced artifact was not completely inspected
- [format-string.md](format-string.md) - Format string exploitation (leaks, GOT overwrite, blind pwn, filter bypass, canary leak, __free_hook, .rela.plt patchin
Referenced artifact was not completely inspected
- [format-string.md](format-string.md) - Format string exploitation (leaks, GOT overwrite, blind pwn, filter bypass, canary leak, __free_hook, .rela.plt patchin
Referenced artifact was not completely inspected
- [advanced-exploits.md](advanced-exploits.md) - Advanced exploit techniques (part 1): VM signed comparison, BF JIT shellcode, type confusion, off-by-one index
Referenced artifact was not completely inspected
- [advanced-exploits.md](advanced-exploits.md) - Advanced exploit techniques (part 1): VM signed comparison, BF JIT shellcode, type confusion, off-by-one index
Referenced artifact was not completely inspected
- [advanced-exploits-3.md](advanced-exploits-3.md) - Advanced exploit techniques (part 3): stack variable overlap / carry corruption OOB, 1-byte overflow via 8-
Referenced artifact was not completely inspected
- [advanced-exploits-3.md](advanced-exploits-3.md) - Advanced exploit techniques (part 3): stack variable overlap / carry corruption OOB, 1-byte overflow via 8-
Referenced artifact was not completely inspected
- [advanced-exploits-3.md](advanced-exploits-3.md) - Advanced exploit techniques (part 3): stack variable overlap / carry corruption OOB, 1-byte overflow via 8-
Referenced artifact was not completely inspected
- [advanced-exploits-3.md](advanced-exploits-3.md) - Advanced exploit techniques (part 3): stack variable overlap / carry corruption OOB, 1-byte overflow via 8-
Referenced artifact was not completely inspected
- [advanced-exploits-3.md](advanced-exploits-3.md) - Advanced exploit techniques (part 3): stack variable overlap / carry corruption OOB, 1-byte overflow via 8-
Referenced artifact was not completely inspected
- [advanced-exploits-3.md](advanced-exploits-3.md) - Advanced exploit techniques (part 3): stack variable overlap / carry corruption OOB, 1-byte overflow via 8-