This Project simply gives you a quicker way of getting the Import Hash (IAT) hash & the Export Hash (EAT) Hash from your PowerShell Instance.
-
Download the impexp.txt file.
-
Open PowerShell with elevated permissions.
-
Execute the following: Set-ExecutionPolicy RemoteSigned, Yes-to-all
-
Execute the following: Test-Path $PROFILE , If the output is "True", skip step 5. If output is "False", implement step 5.
-
New-Item -Path $PROFILE -ItemType File -Force (This will create a file called Microsoft.PowerShell_profile.ps1 in Documents folder)
-
Execute the following: notepad $PROFILE
-
Paste the code in the impexp Text File.
-
Save, Close.
-
Congratulations.
-
Get-ImpHash <file_path> -algorithm -ShowTable -delimiter 'delimiter'
Get-ImpHash c:\windows\system32\svchost.exe -a sha256 -ShowTable -d ' | '
-
Get-ImpHash * -algorithm
Get-ImpHash * -algorithm sha256
-
Get-ImpHash <file_path> -ShowTable
Print the IAT Table as strings. (Default print is seperated by spaces, add Delimiter '-d' to print the list the way you like)
-
Get-ImpHash --help
-
Supported Algorithms: SHA1, SHA256, SHA512, MD5. (Default => MD5)
-
Get-ExpHash <file_path> -algorithm -ShowTable -delimiter 'delimiter'
Get-ExpHash c:\windows\system32\kernel32.dll -a sha256 -ShowTable -d ' | '
-
Get-ExpHash * -algorithm
Get-ExpHash * -algorithm sha256
-
Get-ImpHash <file_path> -ShowTable
Print the EAT Table as strings. (Default print is seperated by spaces, add Delimiter '-d' to print the list the way you like)
-
Get-ExpHash --help
-
Supported Algorithms: SHA1, SHA256, SHA512, MD5. (Default => SHA256)