Commit 6b40a74d by fwkz

Fixing create_exploit() defect

parent 16a1de19
...@@ -540,7 +540,7 @@ def create_exploit(path): # TODO: cover with tests ...@@ -540,7 +540,7 @@ def create_exploit(path): # TODO: cover with tests
from .templates import exploit from .templates import exploit
parts = path.split(os.sep) parts = path.split(os.sep)
module_type, vendor, name = parts[0], [1], parts[-1] module_type, name = parts[0], parts[-1]
if len(parts) < 3: if len(parts) < 3:
print_error("Invalid format. " print_error("Invalid format. "
"Use following naming convention: module_type/vendor_name/exploit_name\n" "Use following naming convention: module_type/vendor_name/exploit_name\n"
......
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