ly4k / Certipy

Tool for Active Directory Certificate Services enumeration and abuse
MIT License
2.23k stars 302 forks source link

Template Names can contain / 's in the name, breaking the ability to save to disk #213

Open evolve-rstroup opened 1 month ago

evolve-rstroup commented 1 month ago

Since backups of templates are saved as their template name, it can break the ability to save if the template has a / in the name.

I personally worked around this by setting outfile to a hardcoded value, but it would likely make sense to specify the filename with an argument. Sorry i don't know python or I'd add a pull request.

template.py out_file = "%s.json" % old_configuration.get("cn")