forked from Gallopsled/pwntools-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95c6f34
commit c003c59
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Basic Buffer Overflow | ||
|
||
This directory is the most basic, classic, stack-based buffer overflow. | ||
|
||
The stack is executable, and the binary is not randomized. | ||
|
||
A few things are demonstrated in this example: | ||
|
||
- `process` tube | ||
- `gdb.attach` for debugging processes | ||
- `ELF` for searching for assembly instructions | ||
- `cyclic` and `cyclic_find` for calculating offsets | ||
- `pack` for packing integers into byte strings | ||
- `asm` for assembling shellcode | ||
- `shellcraft` for providing a shellcode library | ||
- `tube.interactive` for enjoying your shell | ||
|
||
Feel free to modify the example, and try some other shellcode snippet! | ||
|
||
You can easily list the available shellcode from the command-line: | ||
|
||
``` | ||
$ shellcraft | grep i386 | ||
... | ||
i386.linux.execve | ||
... | ||
``` |