remove more null bytes
This commit is contained in:
parent
ea9a78d8b9
commit
b61a844605
@ -132,6 +132,9 @@ class ROPMakerX86(object):
|
||||
if dataAddr % 2 == 0:
|
||||
dataAddr += 1
|
||||
|
||||
dataAddrStr = f"{dataAddr:08x}".replace("00", "01")
|
||||
dataAddr = int(dataAddrStr, 16)
|
||||
|
||||
print(f"dataAddr = 0x{dataAddr:08x}")
|
||||
|
||||
# prepend padding
|
||||
|
@ -113,3 +113,4 @@ if run:
|
||||
print()
|
||||
print(f"[ Run Program : ./{exec_file} {rop_file} ]")
|
||||
os.execv(exec_file, [exec_file, rop_file])
|
||||
|
@ -1,2 +1,2 @@
|
||||
null-data-addr: null-data-addr.c
|
||||
gcc -fno-stack-protector -m32 -static $^ -o $@ -Tdata 0x080d9100
|
||||
gcc -fno-stack-protector -m32 -static $^ -o $@ -Tdata 0x080f0000
|
||||
|
Loading…
Reference in New Issue
Block a user