ADExplorerSnapshot.py icon indicating copy to clipboard operation
ADExplorerSnapshot.py copied to clipboard

error

Open mabangde opened this issue 2 years ago • 2 comments

python3 ADExplorerSnapshot.py result.dat -m Objects

[◓] Collecting data: dumped 6522/212428 objects Traceback (most recent call last): File "ADExplorerSnapshot.py", line 2, in <module> adexpsnapshot.main() File "/root/ADExplorerSnapshot.py/adexpsnapshot/__init__.py", line 779, in main ades.outputObjects() File "/root/ADExplorerSnapshot.py/adexpsnapshot/__init__.py", line 102, in outputObjects wq.put((dict(obj.attributes.data))) File "/root/ADExplorerSnapshot.py/adexpsnapshot/parser/classes.py", line 98, in data self._dico[prop.propName] = self.processAttribute(prop, entry.attrOffset, self.raw) File "/root/ADExplorerSnapshot.py/adexpsnapshot/parser/classes.py", line 189, in processAttribute if self.log: AttributeError: 'AttributeDict' object has no attribute 'log'

mabangde avatar Aug 03 '23 10:08 mabangde

looks like it is attempting to parse an ADSTYPE that isn't supported. Could you patch the following lines (189-190) to read "self.snap.log" instead?

I'm not sure/can't remember from the top of my head whether overall parsing will be successful if this happens.

https://github.com/c3c/ADExplorerSnapshot.py/blob/a98fa5c55897f4d057f0f9d0730cf565c8b08628/adexpsnapshot/parser/classes.py#L189

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: mabangde @.> Sent: Thursday, August 3, 2023 12:37:10 PM To: c3c/ADExplorerSnapshot.py @.> Cc: Subscribed @.***> Subject: [c3c/ADExplorerSnapshot.py] error (Issue #29)

python3 ADExplorerSnapshot.py result.dat -m Objects

[◓] Collecting data: dumped 6522/212428 objects Traceback (most recent call last): File "ADExplorerSnapshot.py", line 2, in adexpsnapshot.main() File "/root/ADExplorerSnapshot.py/adexpsnapshot/init.py", line 779, in main ades.outputObjects() File "/root/ADExplorerSnapshot.py/adexpsnapshot/init.py", line 102, in outputObjects wq.put((dict(obj.attributes.data))) File "/root/ADExplorerSnapshot.py/adexpsnapshot/parser/classes.py", line 98, in data self._dico[prop.propName] = self.processAttribute(prop, entry.attrOffset, self.raw) File "/root/ADExplorerSnapshot.py/adexpsnapshot/parser/classes.py", line 189, in processAttribute if self.log: AttributeError: 'AttributeDict' object has no attribute 'log'

— Reply to this email directly, view it on GitHubhttps://github.com/c3c/ADExplorerSnapshot.py/issues/29, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AARYDII5YVFAQYESB3PMTA3XTN5NNANCNFSM6AAAAAA3CSCQ4Q. You are receiving this because you are subscribed to this thread.Message ID: @.***>

c3c avatar Aug 03 '23 11:08 c3c

fix code:

image

mabangde avatar Aug 04 '23 12:08 mabangde