summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-09-04 21:54:29 -0400
committerMalfurious <m@lfurio.us>2021-09-05 05:59:50 -0400
commit93202f358c2aab4672a06a5dc11ac0f67bf5ff0d (patch)
treeea08ff0f4d391274ba6ae2d574bd05f169e8c3d6
parentef286602a48977eefe73bbdb3568282244db1aca (diff)
downloadsploit-93202f358c2aab4672a06a5dc11ac0f67bf5ff0d.tar.gz
sploit-93202f358c2aab4672a06a5dc11ac0f67bf5ff0d.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>
-rw-r--r--sploit/main.py2
1 files changed, 1 insertions, 1 deletions
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()