Skip to content

Commit ab23659

Browse files
fix(wcc): reduce spammy output for wcc (will fix this in a better way later); closes Pennyw0rth#232
1 parent 4264201 commit ab23659

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,8 @@ def wmi(self, wmi_query=None, namespace=None):
11261126
record = wmi_results.getProperties()
11271127
records.append(record)
11281128
for k, v in record.items():
1129-
self.logger.highlight(f"{k} => {v['value']}")
1129+
if k != "TimeGenerated": # from the wcc module, but this is a small hack to get it to stop spamming - TODO: add in method to disable output for this function
1130+
self.logger.highlight(f"{k} => {v['value']}")
11301131
except Exception as e:
11311132
if str(e).find("S_FALSE") < 0:
11321133
raise e

0 commit comments

Comments
 (0)