mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-12-22 17:15:06 +01:00
fixed markOwnedNodesInNeo4j to have it compatible with 3.x neo4j databases
This commit is contained in:
parent
a72a572a83
commit
d74d7306fb
@ -47,8 +47,9 @@ def markNodes(tx, nodes):
|
||||
|
||||
for i in range(len(nodes)):
|
||||
n = nodes[i]
|
||||
query += 'MATCH (n {name: "' + n + '"}) SET n.owned = TRUE '
|
||||
if i < len(nodes) - 1: query += 'UNION '
|
||||
query += 'MATCH (n {name: "' + n + '"}) SET n.owned=TRUE RETURN 1'
|
||||
if i < len(nodes) - 1: query += ' UNION'
|
||||
query += '\n'
|
||||
|
||||
tx.run(query)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user