From 2c8177d5daff32b8b864dac08d093c3388c33241 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sat, 4 Sep 2021 21:54:29 -0400 Subject: 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 Signed-off-by: dusoleil --- tools/sploit/sploit/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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() -- cgit v1.2.3