summaryrefslogtreecommitdiffstats
path: root/sploit/util.py
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-03-12 20:36:30 -0500
committerdusoleil <howcansocksbereal@gmail.com>2022-03-13 23:27:30 -0400
commit8897faa7387f8103df9dfdb54149d59bfde0e681 (patch)
treeded486bf0a92048c225575cc2fe155dde198da37 /sploit/util.py
parent509a8cfcadcca94d336fe08be897f62a721079d2 (diff)
downloadnsploit-8897faa7387f8103df9dfdb54149d59bfde0e681.tar.gz
nsploit-8897faa7387f8103df9dfdb54149d59bfde0e681.zip
sploit: lazy load libs for ELF
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'sploit/util.py')
-rw-r--r--sploit/util.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/sploit/util.py b/sploit/util.py
index b0572a0..610ab31 100644
--- a/sploit/util.py
+++ b/sploit/util.py
@@ -7,10 +7,8 @@ __RUN_CACHE__ = {}
def run_cmd_cached(cmd):
key = ''.join(cmd)
if key in __RUN_CACHE__:
- print('cache hit')
return __RUN_CACHE__[key]
else:
- print('cache miss')
result = run_cmd(cmd)
__RUN_CACHE__[key] = result
return result