Add files via upload

master
Costas K 6 years ago committed by GitHub
parent 3f5b274e6f
commit 1044c3032d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,14 @@
#TYPE System.Management.Automation.PSCustomObject
"ID","Key","Syb_Key","Lock_Count","AccessTime","Actual_Size","Reserved_Size","Type","Owner","Serial"
"3","uhttps://api.asm.skype.com/v1/objects/0-neu-d4-4768301b4c0bd774bdb01c4ea6f9c1d8",,"0","16 Jun 16 12:03:13 am","50839","50839","0","1","WW$CACHE/\\^CA29A099E60B8A322CF3F8E3044391913C271908518B901E63^pimgpsh_fullsize_distr.png image/png??aW"
"1","uhttps://api.asm.skype.com/v1/objects/0-neu-d4-4768301b4c0bd774bdb01c4ea6f9c1d8",,"0","16 Jun 16 12:03:02 am","6024","6024","0","1","\\$CACHE/\\^CA29A099E60B8A322CF3F8E3044391913C271908518B901E63^pimgpsh_thumbnail_win_distr.jpg
image/jpeg??aW"
"5","whttps://eus1-urlp.secure.skypeassets.com/img1/47d036d8-23b4-42f4-b0f7-407e88a576d4.png",,"0","16 Jun 16 12:05:39 am","3816","3816","1","2","LL$CACHE/\\^76DC0AFAAFEF455C70FC18C9E8F6DD50B30139E8248CC7E341^tfile_urlpv.png image/png"
"6","whttps://eus1-urlp.secure.skypeassets.com/img1/e0735c62-e9f8-4b6f-b1e5-a903d0b0476d.ico",,"0","16 Jun 16 12:05:39 am","1150","1150","1","2","HH$CACHE/\\^53796B1D4A593D9245615E1BA787DE0EF14D7FCCC48EE5D34E^tfile_urlpvimage/vnd.microsoft.icon"
"2","whttp://nextbridgeadvisors.com/manufacturing.php",,"0","16 Jun 16 12:02:57 am","0","0","0","2","@"
"4","whttps://community.skype.com/t5/Security-Privacy-Trust-and/Spoofed-message-from-contact/td-p/4026578",,"0","16 Jun 16 12:05:38 am","0","0","0","2","{""category"":""generic"",""content_type"":""text/html"",""description"":""I received a message earlier today from a friend on my contact list whom\nI don't normally have Skype conversations with. Content was (I've\nmodified the URL slightly)Hi! ht tp://goo.gl/8289Yj The link???"",""favicon"":""https://eus1-urlp.secure.skypeassets.com/img1/e0735c62-e9f8-4b6f-b1e5-a903d0b0476d.ico"",""favicon_meta"":{""height"":16,""width"":16},""site"":""community.skype.com"",""size"":""-1"",""status_code"":""200"",""thumbnail"":""https://eus1-urlp.secure.skypeassets.com/img1/47d036d8-23b4-42f4-b0f7-407e88a576d4.png"",""thumbnail_meta"":{""height"":168,""width"":320},""title"":""Spoofed message from contact - Skype Community"",""url"":""https://community.skype.com/t5/Security-Privacy-Trust-and/Spoofed-message-from-contact/td-p/4026578"",""user_pic"":""""}"
"7","whttp://www.cityservicepaving.com/league.php",,"0","16 Jun 16 12:25:59 am","0","0","0","2","@"
"8","whttp://www.myperfectcarpet.com/bake.php",,"0","16 Jun 16 12:26:52 am","0","0","0","2","@"
"9","whttp://goo.gl/Mvuh0r#7586=kacos2000",,"0","16 Jun 16 12:27:59 am","0","0","0","2","@"
"10","whttps://www.meridian-audio.com/support/streaming-support/control-15/",,"0","16 Jun 16 12:27:59 am","0","0","0","2","@"
Can't render this file because it has a wrong number of fields in line 2.

@ -0,0 +1,100 @@
#Check if SQLite exists
try{write-host "sqlite3.exe version => "-f Yellow -nonewline; sqlite3.exe -version }
catch {
write-host "It seems that you do not have sqlite3.exe in the system path"
write-host "Please read below`n" -f Yellow
write-host "Install SQLite On Windows:`n
Go to SQLite download page, and download precompiled binaries from Windows section.
Instructions: http://www.sqlitetutorial.net/download-install-sqlite/
Create a folder C:\sqlite and unzip above two zipped files in this folder which will give you sqlite3.def, sqlite3.dll and sqlite3.exe files.
Add C:\sqlite to the system PATH (https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/)" -f White
exit}
# Show an Open File Dialog
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.Title = 'Select Skype cache_db.db database to open'
$OpenFileDialog.initialDirectory = $initialDirectory
$OpenFileDialog.Filter = "cache_db.db (*.db)|cache_db.db"
$OpenFileDialog.ShowDialog() | Out-Null
$OpenFileDialog.ShowReadOnly = $true
$OpenFileDialog.filename
$OpenFileDialog.ShowHelp = $false
} #end function Get-FileName
$dBPath = $env:userprofile + "\desktop"
$File = Get-FileName -initialDirectory $dBPath
# Run SQLite query of the Selected dB
# The Query (between " " below)
# can also be copy/pasted and run on 'DB Browser for SQLite'
Try{(Get-Item $File).FullName}
Catch{Write-Host "(cache_db.ps1):" -f Yellow -nonewline; Write-Host " User Cancelled" -f White; exit}
$elapsedTime = [system.diagnostics.stopwatch]::StartNew()
$swn = [Diagnostics.Stopwatch]::StartNew()
# SQlite Query
$dbn = $File
$sql =
"
select
Assets.id as 'id',
Assets.key as 'key',
Assets.sub_key as 'sub_key',
assets.lock_count as 'lock_count',
datetime(assets.access_time /10000000, 'unixepoch', 'localtime') as 'AccessTime',
assets.actual_size as 'actual_size',
assets.reserved_size as 'reserved_size',
assets.type as 'type',
assets.owner as 'owner',
hex(assets.serialized_data) as 'serial'
from Assets
order by actual_size desc
"
1..1000 | %{write-progress -id 1 -activity "Running SQLite query" -status "$([string]::Format("Time Elapsed: {0:d2}:{1:d2}:{2:d2}", $elapsedTime.Elapsed.hours, $elapsedTime.Elapsed.minutes, $elapsedTime.Elapsed.seconds))" -percentcomplete ($_/100);}
#Run SQLite3.exe with the above query
$dbnresults = @(sqlite3.exe -readonly -separator '**' $dbn $sql |
ConvertFrom-String -Delimiter '\u002A\u002A' -PropertyNames Id, key, sub_key, lock_count, AccessTime, actual_size, reserved_size, type, owner, serial)
$dbncount=$dbnresults.count
$elapsedTime.stop()
#write-progress -id 1 -activity "Running SQLite query" -status "$dbncount Entries - Query Finished"
$rn=0
#Create Output
$output = @(foreach ($item in $dbnresults ){$rn++
Write-Progress -id 2 -Activity "Creating Output" -Status "$rn of $($dbnresults.count))" -PercentComplete (([double]$rn / $dbnresults.count)*100)
$s = $item.serial -replace '[\x00-\x22]'
[PSCustomObject]@{
ID = $item.ID
Key = $item.key
Syb_Key = $item.syb_key
Lock_Count = $item.lock_count
AccessTime = $item.accesstime
Actual_Size = $item.actual_size
Reserved_Size = $item.reserved_size
Type = $item.type
Owner = $item.owner
Serial = -join($s -split'(..)'|?{$_}|%{[char]+"0x$_"}) -replace "`0", ""
}
} )
#Stop Timer2
$swn.stop()
$Tn = $swn.Elapsed
$output|Out-GridView -PassThru -Title "There are ($dbncount) Notifications in : '$File' - QueryTime $Tn"
$output|Export-Csv -path "$($env:userprofile)\desktop\cache_db.csv" -Delimiter ","
Loading…
Cancel
Save