Skip to content

Commit

Permalink
BugFix syncing edges
Browse files Browse the repository at this point in the history
  • Loading branch information
helviojunior committed Jan 18, 2023
1 parent b7a2487 commit 7f5dd97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion knowsmore/__meta__.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions knowsmore/cmd/bloodhound.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 7f5dd97

Please sign in to comment.