diff options
author | Malfurious <m@lfurio.us> | 2023-02-22 15:01:22 -0500 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2023-02-24 03:39:04 -0500 |
commit | a4543a9ffcc52f205a8c2aaa56909acda4e9d0b1 (patch) | |
tree | edf8490858215dc6ef9d0375ac8b4ab783924ec5 | |
parent | f8cabdb49cbbc993790efd0d9844cde3d4617347 (diff) | |
download | sploit-a4543a9ffcc52f205a8c2aaa56909acda4e9d0b1.tar.gz sploit-a4543a9ffcc52f205a8c2aaa56909acda4e9d0b1.zip |
symtbl: Rename file to match class name
I assume that the preferred style is to leave one major class each to a
file. In this case, synchronize the names of the Symtbl class and its
containing module. Per PEP8, the module is lowercase, and the class
remains Pascal case.
If other memory-oriented utilities are introduced in the future, we may
wish to move them, as well as Symtbl, back into a subpackage named
'mem'.
Signed-off-by: Malfurious <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
-rw-r--r-- | sploit/__init__.py | 2 | ||||
-rw-r--r-- | sploit/payload.py | 2 | ||||
-rw-r--r-- | sploit/rev/r2.py | 4 | ||||
-rw-r--r-- | sploit/symtbl.py (renamed from sploit/mem.py) | 0 |
4 files changed, 4 insertions, 4 deletions
diff --git a/sploit/__init__.py b/sploit/__init__.py index 5bac38f..9a38a78 100644 --- a/sploit/__init__.py +++ b/sploit/__init__.py @@ -2,8 +2,8 @@ from sploit import ( arch, comm, log, - mem, payload, + symtbl, until, util, rev, diff --git a/sploit/payload.py b/sploit/payload.py index c916514..1110e76 100644 --- a/sploit/payload.py +++ b/sploit/payload.py @@ -1,5 +1,5 @@ from sploit.arch import arch, itob -from sploit.mem import Symtbl +from sploit.symtbl import Symtbl class Payload: MAGIC = b'\xef' diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py index 6dfd499..5f7632a 100644 --- a/sploit/rev/r2.py +++ b/sploit/rev/r2.py @@ -1,7 +1,7 @@ -from sploit.mem import Symtbl from sploit.arch import arch -from sploit.util import run_cmd_cached from sploit.log import ilog +from sploit.symtbl import Symtbl +from sploit.util import run_cmd_cached import re from collections import namedtuple as nt diff --git a/sploit/mem.py b/sploit/symtbl.py index 3a3e697..3a3e697 100644 --- a/sploit/mem.py +++ b/sploit/symtbl.py |