Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create calculating_offsets.md #250

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Create calculating_offsets.md #250

merged 1 commit into from
Dec 11, 2024

Conversation

santosomar
Copy link
Contributor

This pull request includes a detailed guide on calculating offsets for buffer overflows and explains why more data than the buffer size is often required in such exploits. The guide provides a step-by-step process and highlights key considerations for successful exploitation.

Key additions:

  • buffer_overflow_example/calculating_offsets.md: Added a comprehensive guide on calculating offsets for buffer overflows, including steps like identifying vulnerable input points, pattern generation, causing program crashes, identifying offsets in crash data, and refining payloads based on offsets.
  • Explained the necessity of sending more data than the buffer size to overwrite adjacent memory, reach control data, account for structure padding and alignment, and include NOP-sleds and shellcode.

@santosomar santosomar merged commit 4dfda1f into master Dec 11, 2024
2 checks passed
@santosomar santosomar deleted the santosomar-patch-17 branch December 11, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant