From 0e9e49935a99016e6726f4cc21a4509df2385684 Mon Sep 17 00:00:00 2001 From: Liam Dalgarno Date: Sat, 28 Nov 2020 15:56:14 +0000 Subject: [PATCH] Add functions for writing 4 bytes and 4 nulls Co-authored-by: Chris Gora <34940205+ChrisGora@users.noreply.github.com> Co-authored-by: jack bond-preston --- .../ropgadget/ropchain/arch/ropmakerx86.py | 93 ++++++++++--------- 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/ROPgadget/ropgadget/ropchain/arch/ropmakerx86.py b/ROPgadget/ropgadget/ropchain/arch/ropmakerx86.py index e2779b6..368f728 100644 --- a/ROPgadget/ropgadget/ropchain/arch/ropmakerx86.py +++ b/ROPgadget/ropgadget/ropchain/arch/ropmakerx86.py @@ -83,6 +83,33 @@ class ROPMakerX86(object): return p + def __write4bytes(self, address, data, data_addr, popDst, popSrc, write4where): + p = pack(" [edx] - # write the exec path address to argv[0] - p += pack('