diff options
author | Malfurious <m@lfurio.us> | 2024-01-12 14:28:26 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-05-19 17:52:10 -0400 |
commit | 29b9da475a5115ec0d453989ce545316cbc0a013 (patch) | |
tree | 5a7ddbe76d673b8dda7dd6663d537e0198a217d1 | |
parent | 45356ee7b633d5f589ef61ec8e4b81409d21f873 (diff) | |
download | sploit-29b9da475a5115ec0d453989ce545316cbc0a013.tar.gz sploit-29b9da475a5115ec0d453989ce545316cbc0a013.zip |
util: Promote from module to package
We would like to move additional modules under the namespace of "util"
to clean up the top-level "sploit" package. To start, the functions
from the previous util module are moved. Given the package is named
"util" the module is renamed to "cmd" to somewhat match the theme of the
contained functions.
Per the previous commits, these functions are now exposed via the util
package as well.
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r-- | sploit/rev/ldd.py | 2 | ||||
-rw-r--r-- | sploit/rev/r2.py | 2 | ||||
-rw-r--r-- | sploit/util/__init__.py | 1 | ||||
-rw-r--r-- | sploit/util/cmd.py (renamed from sploit/util.py) | 0 |
4 files changed, 3 insertions, 2 deletions
diff --git a/sploit/rev/ldd.py b/sploit/rev/ldd.py index 1a28c7c..b5bc564 100644 --- a/sploit/rev/ldd.py +++ b/sploit/rev/ldd.py @@ -1,4 +1,4 @@ -from sploit.util import run_cmd_cached +from sploit.util.cmd import run_cmd_cached from sploit.log import ilog import re diff --git a/sploit/rev/r2.py b/sploit/rev/r2.py index 1be731c..d9dbabd 100644 --- a/sploit/rev/r2.py +++ b/sploit/rev/r2.py @@ -2,7 +2,7 @@ from sploit.arch import arch from sploit.log import ilog from sploit.rev.gadget import Gadget from sploit.symtbl import Symtbl -from sploit.util import run_cmd_cached +from sploit.util.cmd import run_cmd_cached from collections import namedtuple as nt from functools import cache diff --git a/sploit/util/__init__.py b/sploit/util/__init__.py new file mode 100644 index 0000000..9103509 --- /dev/null +++ b/sploit/util/__init__.py @@ -0,0 +1 @@ +from .cmd import * diff --git a/sploit/util.py b/sploit/util/cmd.py index ac1d428..ac1d428 100644 --- a/sploit/util.py +++ b/sploit/util/cmd.py |