diff --git a/knowsmore/__meta__.py b/knowsmore/__meta__.py index 74c384e..0f29649 100644 --- a/knowsmore/__meta__.py +++ b/knowsmore/__meta__.py @@ -1,4 +1,4 @@ -__version__ = '0.1.28' +__version__ = '0.1.29' __title__ = "knowsmore" __description__ = "KnowsMore is a swiss army knife tool for pentesting Microsoft Active Directory (NTLM Hashes, BloodHound, NTDS and DCSync)." __url__ = "https://github.com/helviojunior/knowsmore" diff --git a/knowsmore/cmd/bloodhound.py b/knowsmore/cmd/bloodhound.py index f7cfc64..fc7ebd0 100644 --- a/knowsmore/cmd/bloodhound.py +++ b/knowsmore/cmd/bloodhound.py @@ -339,10 +339,10 @@ def bh_callback1(self, entry, thread_callback_data, **kwargs): def bh_callback2(self, entry, thread_callback_data, **kwargs): # Merge source and target object too - #insert_query = 'UNWIND $props AS prop MERGE (n:Base {{{0}: prop.source}}) ON MATCH SET n:{1} ON CREATE SET n:{1} MERGE (m:Base {{objectid: prop.target}}) ON MATCH SET m:{2} ON CREATE SET m:{2} MERGE (n)-[r:{3} {4}]->(m)' + insert_query = 'UNWIND $props AS prop MERGE (n:Base {{{0}: prop.source}}) ON MATCH SET n:{1} ON CREATE SET n:{1} MERGE (m:Base {{objectid: prop.target}}) ON MATCH SET m:{2} ON CREATE SET m:{2} MERGE (n)-[r:{3} {4}]->(m)' # Merge only the relationship from source and target - insert_query = 'UNWIND $props AS prop MATCH (n:Base {{{0}: prop.source}}) MATCH (m:Base {{objectid: prop.target}}) MERGE (n)-[r:{3} {4}]->(m)' + #insert_query = 'UNWIND $props AS prop MATCH (n:Base {{{0}: prop.source}}) MATCH (m:Base {{objectid: prop.target}}) MERGE (n)-[r:{3} {4}]->(m)' #Replace all tags insert_query = insert_query.format(entry['source_filter_type'],