-
Notifications
You must be signed in to change notification settings - Fork 5
/
customqueries.json
43 lines (43 loc) · 1.65 KB
/
customqueries.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"queries": [
{
"name": "Show SamePassword clusters",
"category": "Hashcathelper",
"queryList": [
{
"final": true,
"query":"MATCH p=((a:User)-[r:SamePassword*1..2]-(b:User)) WHERE ALL(x in r WHERE STARTNODE(x).objectid > ENDNODE(x).objectid) AND a<>b RETURN p",
"allowCollapse": true
}
]
},
{
"name": "Show SamePassword cluster for specific user",
"category": "Hashcathelper",
"queryList": [
{
"final": false,
"title": "Select user...",
"query":
"MATCH (n:User) RETURN n.name ORDER BY n.name ASC"
},
{
"final": true,
"query":"MATCH p=((a:User {name: $result})-[r:SamePassword*1..2]-(b:User)) WHERE ALL(x in r WHERE STARTNODE(x).objectid > ENDNODE(x).objectid) AND a<>b RETURN p",
"allowCollapse": true
}
]
},
{
"name": "Show SamePassword clusters of admins (adjust the regex in the Raw Query - needs Query Debug Mode)",
"category": "Hashcathelper",
"queryList": [
{
"final": true,
"query":"MATCH p=((a:User)-[r:SamePassword*1..2]-(b:User)) WHERE ALL(x in r WHERE STARTNODE(x).objectid > ENDNODE(x).objectid) AND (a.admincount OR a.name =~ '(?i)adm_.*') return p",
"allowCollapse": true
}
]
}
]
}