Implement PutClass and DeleteClass for WMI
This PR adds two most wanted PutClass and DeleteClass functions to wmi.py (issue #1186, this Reddit link, wmiexec-Pro project, ...) which unlocks many new features for wmi in future. The PR also includes:
- Add
ObjectFlagsconstants referenced in MS-WMIO (2.2.6 ObjectFlags) towmi.pyfile. It helps to easy debugging and code maintenance. - Bug fix in
CLASS_AND_METHODS_PARTclass to handle empty class names.
@anadrianmanrique Some updates on this PR. Please check <3
Wow, this is awesome!!!!
@anadrianmanrique When you get a chance, please review this PR — I’m pretty excited about these changes, they should make a real difference on WMI! 💪
@NtAlexio2 thanks, yes, this PR has been already prioritized to be reviewed/tested in the context of 0.14-dev
@NtAlexio2 BTW, could you add the test case in https://github.com/fortra/impacket/blob/master/tests/SMB_RPC/test_wmi.py ?
Hi @NtAlexio2, as @XiaoliChan pointed out, would it be possible to add tests cases coverage?
sure, I'll fix that asap