Skip to content

Commit

Permalink
Update Domain Users RDP Query for case sensitivity (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHinck authored Jan 16, 2024
1 parent 331c298 commit a8aa2e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/javascript/bh-shared-ui/src/commonSearches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ export const CommonSearches: CommonSearchType[] = [
},
{
description: 'Workstations where Domain Users can RDP',
cypher: `MATCH p=(m:Group)-[:CanRDP]->(c:Computer)\nWHERE m.objectid ENDS WITH "-513" AND NOT toUpper(c.operatingsystem) CONTAINS "Server"\nRETURN p`,
cypher: `MATCH p=(m:Group)-[:CanRDP]->(c:Computer)\nWHERE m.objectid ENDS WITH "-513" AND NOT toUpper(c.operatingsystem) CONTAINS "SERVER"\nRETURN p`,
},
{
description: 'Servers where Domain Users can RDP',
cypher: `MATCH p=(m:Group)-[:CanRDP]->(c:Computer)\nWHERE m.objectid ENDS WITH "-513" AND toUpper(c.operatingsystem) CONTAINS "Server"\nRETURN p`,
cypher: `MATCH p=(m:Group)-[:CanRDP]->(c:Computer)\nWHERE m.objectid ENDS WITH "-513" AND toUpper(c.operatingsystem) CONTAINS "SERVER"\nRETURN p`,
},
{
description: 'Dangerous privileges for Domain Users groups',
Expand Down

0 comments on commit a8aa2e5

Please sign in to comment.