capstone/bindings/powershell/README

29 lines
955 B
Plaintext
Raw Normal View History

2016-11-04 04:51:48 +08:00
Usage
2016-11-04 04:49:01 +08:00
Invoke-Capstone is ready for use, there are two options to access the capstone
library from PowerShell:
2016-11-04 04:29:37 +08:00
2016-11-04 04:49:01 +08:00
* Script dot sourcing:
2016-11-04 04:29:37 +08:00
2016-11-04 04:51:48 +08:00
PS C:\> . .\Invoke-Capstone.ps1
2016-11-04 04:29:37 +08:00
2016-11-04 04:49:01 +08:00
* 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
2016-11-04 04:29:37 +08:00
2016-11-04 04:51:48 +08:00
Notes
2016-11-04 04:29:37 +08:00
* 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