From 2d14b4f5cb7a10ead41cd6e956050a5ecef81a20 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 4 Sep 2021 20:53:00 -0400 Subject: sploit: Rename arch.nop to nopcode This was the name I had originally intended to use while factoring architecture details out to the global scope. It's not terribly different, but I feel the new context warrants some additional clarity. Signed-off-by: Malfurious Signed-off-by: dusoleil --- sploit/arch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sploit/arch.py b/sploit/arch.py index d75bbda..ce88111 100644 --- a/sploit/arch.py +++ b/sploit/arch.py @@ -5,24 +5,24 @@ def itob(i, signed=False): return i.to_bytes(arch.wordsize, arch.endianness, signed=signed) class Arch: - def __init__(self, wordsize, endianness, alignment, nop): + def __init__(self, wordsize, endianness, alignment, nopcode): self.wordsize = wordsize self.endianness = endianness self.alignment = alignment - self.nop = nop + self.nopcode = nopcode archx86 = Arch( wordsize = 4, endianness = "little", alignment = 16, - nop = b'\x90' + nopcode = b'\x90' ) archx86_64 = Arch( wordsize = 8, endianness = "little", alignment = 16, - nop = b'\x90' + nopcode = b'\x90' ) arch = archx86_64 -- cgit v1.2.3