From 93202f358c2aab4672a06a5dc11ac0f67bf5ff0d 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 --- sploit/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sploit/main.py') diff --git a/sploit/main.py b/sploit/main.py index 4697715..6404786 100644 --- a/sploit/main.py +++ b/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