InternetExplorer
Browsersv1
Author: Eric Zimmerman
description
Internet Explorer
paths
13 paths
› paths use Windows environment syntax
collection commands
# PowerShell Artifact Collection Script
# Target: InternetExplorer
# Run as Administrator
#Requires -RunAsAdministrator
$ErrorActionPreference = "SilentlyContinue"
$DestBase = "D:\Evidence"
# Function to handle artifact collection with robocopy
function Collect-Artifact {
param (
[string]$SourceDir,
[string]$FolderName,
[string]$FileMask = "*"
)
$FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
robocopy "$SourceDir" "$FullDest" "$FileMask" /E /COPY:DAT /R:0 /W:0 /NP /NFL /NDL /NJH /NJS | Out-Null
}
# 1. Index.dat History
$UserPath = Join-Path $env:USERPROFILE "Local Settings\History\History.IE5\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "index.dat" -FolderName "Index_dat_History"
# 2. Index.dat History subdirectory
$UserPath = Join-Path $env:USERPROFILE "Local Settings\History\History.IE5\*\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "index.dat" -FolderName "Index_dat_History_subdirectory"
# 3. Index.dat cookies
$UserPath = Join-Path $env:USERPROFILE "Cookies\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "index.dat" -FolderName "Index_dat_cookies"
# 4. Index.dat UserData
$UserPath = Join-Path $env:USERPROFILE "Application Data\Microsoft\Internet Explorer\UserData\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "index.dat" -FolderName "Index_dat_UserData"
# 5. Index.dat Office XP
$UserPath = Join-Path $env:USERPROFILE "Application Data\Microsoft\Office\Recent\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "index.dat" -FolderName "Index_dat_Office_XP"
# 6. Index.dat Office
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\Microsoft\Office\Recent\"
Collect-Artifact -SourceDir "$UserPath" -FileMask "index.dat" -FolderName "Index_dat_Office"
# 7. Local Internet Explorer folder
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Internet Explorer\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "Local_Internet_Explorer_folder"
# 8. Roaming Internet Explorer folder
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\Microsoft\Internet Explorer\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "Roaming_Internet_Explorer_folder"
# 9. IE 9/10 History
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\History\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "IE_9_10_History"
# 10. IE 9/10 Cookies
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\Cookies\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "IE_9_10_Cookies"
# 11. IE 9/10 Download History
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\IEDownloadHistory\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "IE_9_10_Download_History"
# 12. IE 11 Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\WebCache\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "IE_11_Metadata"
# 13. IE 11 Cookies
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\INetCookies\"
Collect-Artifact -SourceDir "$UserPath" -FolderName "IE_11_Cookies"
Write-Host "Collection complete!" -ForegroundColor Green› Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1
› cyberchef recipes
Open in CyberChef to decode values extracted from this artifact.