Skip to content

Instantly share code, notes, and snippets.

@aguytech
Last active June 14, 2022 10:05
Show Gist options
  • Save aguytech/0cf6eb079ff45e54892e3fb7c6dad99c to your computer and use it in GitHub Desktop.
Save aguytech/0cf6eb079ff45e54892e3fb7c6dad99c to your computer and use it in GitHub Desktop.
[sqlite3] sqlite to analyse windows notification #bash #malware #forensic #tips

sqlitebrowser

file=/vol6/Users/Angela/AppData/Local/Microsoft/Windows/Notifications/wpndatabase.db
sqlitebrowser ${file}

query

SELECT datetime((ArrivalTime/10000000)-11644473600, 'unixepoch') AS ArrivalTime,
datetime((ExpiryTime/10000000)-11644473600, 'unixepoch') AS ExpiryTime,
Type, HandlerId, Notification.Id, Payload, Tag, 'Group', 'Order', PrimaryId, HandlerType, WNFEventName, CreatedTime as HandlerCreatedTime, ModifiedTime as HandlerModifiedTime
FROM Notification LEFT JOIN NotificationHandler ON Notification.HandlerId = NotificationHandler.RecordId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment