aniqfakhrul / powerview.py

Just another Powerview alternative
MIT License
427 stars 47 forks source link

Add a regex to verify if the value to set is a DN #58

Closed BlWasp closed 1 year ago

BlWasp commented 1 year ago

Hi guy, just a PR to modify the Set-DomainObject function. I have added a regex in the main function and in the ini_to_dict() helper to verify if the value to set is a Distinguished Name. If yes, it will set the value without building a list, which avoid to split the DN with its ','.

Not sure that is the best solution, but at least it works :smile:

aniqfakhrul commented 1 year ago

Thanks! appreciate the contribution. Have reviewed it and it works fine on my end.