Commit e949a544 by Joshua Abraham

Handling errors if telnet isn't running

parent 8371e39f
......@@ -30,6 +30,7 @@ class Exploit(exploits.Exploit):
port = exploits.Option(23, 'Target port') # default port
def run(self):
try:
if self.check():
print_success("Target appears to be vulnerable...")
......@@ -65,6 +66,8 @@ class Exploit(exploits.Exploit):
print_error("Failed to log into backdoor.")
else:
print_error("Exploit failed. Target does not appear vulnerable")
except Exception as err:
print_error("{}".format(err))
@mute
def check(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment