Skip to content

Instantly share code, notes, and snippets.

@RajChowdhury240
Created July 4, 2025 10:09
Show Gist options
  • Save RajChowdhury240/7e302d79434cee3feffee3bc4dc59aae to your computer and use it in GitHub Desktop.
Save RajChowdhury240/7e302d79434cee3feffee3bc4dc59aae to your computer and use it in GitHub Desktop.
MATCH (n:Base)
WHERE n.hasspn = true
AND ((
  n.supportedencryptiontypes <> ['Not defined']
  OR n.supportedencryptiontypes <> []
  OR NONE(type IN n.supportedencryptiontypes WHERE type CONTAINS 'AES128' OR type CONTAINS 'AES256')
)
OR (n.pwdlastset < 1204070400 // Password Last Set before Windows Server 2008
AND NOT n.pwdlastset IN [-1.0, 0.0]
))
RETURN n
LIMIT 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment