summaryrefslogtreecommitdiffstats
path: root/sploit/rev/gadget.py
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2025-01-04 23:57:16 -0500
committerMalfurious <m@lfurio.us>2025-01-04 23:57:16 -0500
commit23c750d2edc712c4a37e0774049a1a0f9a966009 (patch)
treee16b9f6495776dccc2c8e39d29b66d28d94b3448 /sploit/rev/gadget.py
parent640726aa11369d328c1cdfe00b4344b6a925729c (diff)
parent831fd7402cd357a79b76007471722a243ec60c8d (diff)
downloadnsploit-23c750d2edc712c4a37e0774049a1a0f9a966009.tar.gz
nsploit-23c750d2edc712c4a37e0774049a1a0f9a966009.zip
Merge branch 'nsploit'
Rename fork to nsploit and touch up project files. We switch from automatically obtaining version via git-describe to a static definition in pyproject.toml, to support more install use-cases. * nsploit: Update pyproject file for nsploit Don't rely on git for version information main: Update ASCII banner for nsploit Rename sploit package to nsploit
Diffstat (limited to 'sploit/rev/gadget.py')
-rw-r--r--sploit/rev/gadget.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/sploit/rev/gadget.py b/sploit/rev/gadget.py
deleted file mode 100644
index cc69723..0000000
--- a/sploit/rev/gadget.py
+++ /dev/null
@@ -1,25 +0,0 @@
-from dataclasses import dataclass, field
-from sploit.types.index_entry import IndexEntry
-
-@dataclass
-class Gadget(IndexEntry):
- """
- Basic gadget description object
-
- base (int): The location this gadget is found at. What `base` is relative
- to depends on context.
-
- asm (list[re.Match]): A list of assembly instructions matched by the gadget
- search query.
- """
-
- base: int = 0
- asm: list = field(default_factory=list)
-
- def __repr__(self):
- """Return human-readable Gadget."""
- s = hex(self.base)
- if len(self.asm) > 0:
- asm = "; ".join([ m.string for m in self.asm ])
- s += f", '{asm}'"
- return f"Gadget({s})"