Commit cea89787 by fwkz

Validating exploit name.

parent a9087776
......@@ -447,6 +447,10 @@ def create_exploit(path): # TODO: cover with tests
parts = path.split(os.sep)
module_type, name = parts[0], parts[-1]
if not name:
print_error("Invalid exploit name. ;(")
return
if module_type not in ['creds', 'exploits', 'scanners']:
print_error("Invalid module type. ;(")
return
......
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