diff options
author | Malfurious <m@lfurio.us> | 2021-09-04 21:54:29 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2021-09-05 05:59:50 -0400 |
commit | 2c8177d5daff32b8b864dac08d093c3388c33241 (patch) | |
tree | eae41aed88df0a79d9625aa0b686e12749554371 /tools | |
parent | 0f73c14e0837978abf29f2e6a84c67e5f2e11795 (diff) | |
download | lib-des-gnux-2c8177d5daff32b8b864dac08d093c3388c33241.tar.gz lib-des-gnux-2c8177d5daff32b8b864dac08d093c3388c33241.zip |
sploit: Rename Comm instance to 'io'
If the user's script contains
from sploit import *
then the exported 'comm' communication object is clobbered by the 'comm'
source module. Switching the name to 'io' avoids this issue, is more
to the point, and is even fewer characters to type.
Signed-off-by: Malfurious <m@lfurio.us>
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sploit/sploit/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sploit/sploit/main.py b/tools/sploit/sploit/main.py index 4697715..6404786 100644 --- a/tools/sploit/sploit/main.py +++ b/tools/sploit/sploit/main.py @@ -54,6 +54,6 @@ def target(script, target): def runscript(script, comm): print("Running Script...") code = compile(open(script).read(), script, 'exec') - exec(code, {'comm': comm}) + exec(code, {'io': comm}) print("Script Finished!") comm.readall() |