Research Update Enhanced src/binary-exploitation/stack-overf...#2119
Merged
carlospolop merged 1 commit intomasterfrom Apr 11, 2026
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: Content Categories: Based on the analysis, this content was categorized under "Research". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Research Update for src/binary-exploitation/stack-overflow/ret2win/ret2win-arm64.md
This PR contains automated research updates including:
Generated by: HackTricks Research Agent
Timestamp: 2026-04-11 13:17:02 UTC
Tool usage
This update was ...
🔧 Technical Details
Research update for HackTricks content
🤖 Agent Actions
Reading the current ARM64
ret2winpage first, then I’ll map nearby HackTricks content and do source-backed research before editing the file.The target page already covers the basic lab, PAC/BTI disablement, offset calculation, off-by-2 partial overwrite, PIE, and a macOS section. Next I’m checking adjacent HackTricks ARM64 pages so new material stays specific to
ret2wininstead of duplicating generic ARM64 overflow content.I found that the page already has a later section on modern AArch64 hardening, so I’m reading the bottom of the file before deciding what is actually missing. That should keep the update focused on practical gaps instead of repeating PAC/BTI basics twice.
The strongest gap so far is not “what is ret2win,” but “how to reason about modern toolchains and partial overwrites on real AArch64 builds.” I’m doing broader research now across Arm, LLVM/GCC, and recent exploitation writeups to validate what changed in the last few years and what is worth adding.
I have enough source coverage to edit now. The additions will stay narrow: practical notes for partial overwrites on little-endian AArch64, a better modern branch-protection explanation, and one debugging tip that matters when practicing ARM64 from x86 hosts.
I’m editing the target page now. The changes are limited to three high-signal improvements: a precise explanation of when 1- or 2-byte overwrites work on AArch64 PIE, an updated branch-protection note grounded in current compiler behavior, and one debugging quality-of-life fix for cross-arch practice.
Updated ret2win-arm64.md.
The changes are focused and technical:
p8()/p16()only work when the savedx30andwin()differ in those low bytes.Off-by-2section with a concrete debugger sanity-check example showing when a 2-byte overwrite is valid and when it will fail.-mbranch-protection=standard,pac-retmostly affecting non-leaf functions, and a quickreadelfcheck for GNU property notes.gdb-multiarcharchitecture selection and the shared-library symbol path hint for dynamic AArch64 binaries.I kept the page scoped to ARM64
ret2winand did not duplicate generic ret2lib, shellcode, or broader ARM64 exploitation material already covered elsewhere.Research URLs used:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.