trustedsec / CS-Situational-Awareness-BOF

Situational Awareness commands implemented using Beacon Object Files
GNU General Public License v2.0
1.26k stars 218 forks source link

Update wmi.c #108

Closed Tycx2ry closed 1 year ago

Tycx2ry commented 1 year ago

COM might have already been initialized in the beacon and not closed. Since we are not dealing with UI operations, there's no need to consider the threading model. Therefore, we can use the already initialized COM. Hence, if an RPC_E_CHANGED_MODE error occurs, we can continue executing.

Tycx2ry commented 1 year ago

dir command Chinese characters are not displayed