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 | 2d14b4f5cb7a10ead41cd6e956050a5ecef81a20 (patch) | |
tree | d7e9479758278f3ed5b0e67afe92a1707620436c | |
parent | 93202f358c2aab4672a06a5dc11ac0f67bf5ff0d (diff) | |
download | sploit-2d14b4f5cb7a10ead41cd6e956050a5ecef81a20.tar.gz sploit-2d14b4f5cb7a10ead41cd6e956050a5ecef81a20.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>
-rw-r--r-- | sploit/arch.py | 8 |
1 files 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 |