summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-01-12 07:37:53 -0500
committerMalfurious <m@lfurio.us>2024-05-19 17:52:10 -0400
commit45356ee7b633d5f589ef61ec8e4b81409d21f873 (patch)
tree53ea9fdf1169f1ca931aa4a1117404e81993365f
parent8cb888a9f841792e2976e95e658a31f85979ea9d (diff)
downloadsploit-45356ee7b633d5f589ef61ec8e4b81409d21f873.tar.gz
sploit-45356ee7b633d5f589ef61ec8e4b81409d21f873.zip
builder: Rename package to payload and expose contents
This follows in the package contents export change. Additionally, the builder package is renamed to "payload". "payload" is actually the preferred name of this package. It was previously renamed due to the absurdity of importing "sploit.payload.payload.Payload()", and the fact that additional modules were being bundled together so a more broad name _seemed_ desirable. Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--sploit/__init__.py2
-rw-r--r--sploit/builder/__init__.py5
-rw-r--r--sploit/payload/__init__.py3
-rw-r--r--sploit/payload/gadhint.py (renamed from sploit/builder/gadhint.py)0
-rw-r--r--sploit/payload/payload.py (renamed from sploit/builder/payload.py)0
-rw-r--r--sploit/payload/rop.py (renamed from sploit/builder/rop.py)4
6 files changed, 6 insertions, 8 deletions
diff --git a/sploit/__init__.py b/sploit/__init__.py
index 1eb570c..f761ead 100644
--- a/sploit/__init__.py
+++ b/sploit/__init__.py
@@ -1,8 +1,8 @@
from sploit import (
arch,
- builder,
comm,
log,
+ payload,
rev,
symtbl,
until,
diff --git a/sploit/builder/__init__.py b/sploit/builder/__init__.py
deleted file mode 100644
index 758d511..0000000
--- a/sploit/builder/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-from . import (
- gadhint,
- payload,
- rop,
-)
diff --git a/sploit/payload/__init__.py b/sploit/payload/__init__.py
new file mode 100644
index 0000000..78769b4
--- /dev/null
+++ b/sploit/payload/__init__.py
@@ -0,0 +1,3 @@
+from .gadhint import *
+from .payload import *
+from .rop import *
diff --git a/sploit/builder/gadhint.py b/sploit/payload/gadhint.py
index 9b077fe..9b077fe 100644
--- a/sploit/builder/gadhint.py
+++ b/sploit/payload/gadhint.py
diff --git a/sploit/builder/payload.py b/sploit/payload/payload.py
index cf105c6..cf105c6 100644
--- a/sploit/builder/payload.py
+++ b/sploit/payload/payload.py
diff --git a/sploit/builder/rop.py b/sploit/payload/rop.py
index 7b58e0e..54226b4 100644
--- a/sploit/builder/rop.py
+++ b/sploit/payload/rop.py
@@ -25,8 +25,8 @@ supported.
from graphlib import TopologicalSorter
from sploit.arch import arch, btoi, itob
-from sploit.builder.gadhint import GadHint
-from sploit.builder.payload import Payload
+from sploit.payload.gadhint import GadHint
+from sploit.payload.payload import Payload
class ROP(Payload):
"""