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