summaryrefslogtreecommitdiffstats
path: root/sploit/rev/ldd.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/ldd.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/ldd.py')
-rw-r--r--sploit/rev/ldd.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/sploit/rev/ldd.py b/sploit/rev/ldd.py
deleted file mode 100644
index b773abf..0000000
--- a/sploit/rev/ldd.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from sploit.util.cmd import run_cmd_cached
-from sploit.util.log import ilog
-
-import re
-from collections import namedtuple as nt
-
-def get_libraries(elf):
- ilog(f'Retrieving linked libraries of {elf} with ldd...')
- out = run_cmd_cached(['ldd',elf])
- out = [re.split(r'\s+',lib)[1:] for lib in out]
- Lib = nt("Lib", "name path addr")
- out = {l[0]:Lib(l[0],l[0] if l[0][0]=='/' else l[2] if l[1]=='=>' else None,l[-1]) for l in out}
- return out