capstone/bindings/powershell/README

29 lines
955 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Usage
Invoke-Capstone is ready for use, there are two options to access the capstone
library from PowerShell:
* Script dot sourcing:
PS C:\> . .\Invoke-Capstone.ps1
* Adding the script to one of the PowerShell module directories:
# Global PSModulePath path
%Windir%\System32\WindowsPowerShell\v1.0\Modules
# User PSModulePath path
%UserProfile%\Documents\WindowsPowerShell\Modules
Notes
* Invoke-Capstone drops the Capstone DLL, x32/64 respectively, to the user's
temporary folder the first time it runs. Further runs will use this cached DLL.
* The "Out-UnmanagedDll" script can be used to generate a compressed DLL which
allows for easy integration with Invoke-Capstone. This script is based on
@mattifestations post here
http://www.exploit-monday.com/2012/12/in-memory-dll-loading.html.
# Redirect script output to file
PS C:\> Out-UnmanagedDll -FilePath C:\Some\Path\capstone.dll