From 4cece8dbed674ab6d361cdb7a440981c90ed4de5 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Thu, 2 Sep 2021 00:03:59 -0400 Subject: Add arch config module Add Arch class which specifies wordsize, endianness, alignment, and a nop code for an architecture. Add a couple predefined architectures for x86 and x86_64 Add a "configured" architecture which is set to x86_64 by default. Added btoi and itob functions which will convert to and from bytes and ints based on the current architecture config Signed-off-by: dusoleil --- sploit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sploit/__init__.py') diff --git a/sploit/__init__.py b/sploit/__init__.py index c90b980..d9ea6b0 100644 --- a/sploit/__init__.py +++ b/sploit/__init__.py @@ -1 +1 @@ -__all__ = ["log","comm","until"] +__all__ = ["log","comm","until","arch"] -- cgit v1.2.3