We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a104e24 commit d3ac2e2Copy full SHA for d3ac2e2
jexboss.py
@@ -146,7 +146,11 @@ def shell_http(url, type):
146
print RED+ " * Error contacting the commando shell. Try again later..."
147
conn.close()
148
continue
149
- stdout = resp.read().split("pre>")[1]
+ stdout = ""
150
+ try:
151
+ stdout = resp.read().split("pre>")[1]
152
+ except:
153
+ print RED+ " * Error contacting the commando shell. Try again later..."
154
if stdout.count("An exception occurred processing JSP page") == 1:
155
print RED + " * Error executing command \"%s\". " %cmd.split("=")[1] + ENDC
156
else: print stdout,
0 commit comments