Unverified Commit f32e08d3 by Marcin Bury Committed by GitHub

Fixing use command issue (#519)

parent de67d097
......@@ -84,6 +84,8 @@ def import_exploit(path):
return getattr(module, "Encoder")
elif hasattr(module, "Exploit"):
return getattr(module, "Exploit")
else:
raise ImportError("No module named '{}'".format(path))
except (ImportError, AttributeError, KeyError) as err:
raise RoutersploitException(
......
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