diff options
author | Malfurious <m@lfurio.us> | 2021-09-04 20:53:00 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2021-09-07 23:02:19 -0400 |
commit | 94829fc6a5ef9d8e36af8f65a165dd733d5a0f50 (patch) | |
tree | 5cedfdd01084963ec542395fb3b10873c9bf43dc /tools | |
parent | 2c8177d5daff32b8b864dac08d093c3388c33241 (diff) | |
download | lib-des-gnux-94829fc6a5ef9d8e36af8f65a165dd733d5a0f50.tar.gz lib-des-gnux-94829fc6a5ef9d8e36af8f65a165dd733d5a0f50.zip |
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 <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sploit/sploit/arch.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/sploit/sploit/arch.py b/tools/sploit/sploit/arch.py index d75bbda..ce88111 100644 --- a/tools/sploit/sploit/arch.py +++ b/tools/sploit/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 |