Skip to content

Commit

Permalink
+Get-CapstoneDisassembly
Browse files Browse the repository at this point in the history
Reworked according to the module in Keystone
  • Loading branch information
FuzzySecurity committed Nov 10, 2016
1 parent b9f38ed commit a75752b
Show file tree
Hide file tree
Showing 8 changed files with 248 additions and 144 deletions.
1 change: 1 addition & 0 deletions bindings/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ all:
cd python && $(MAKE) gen_const
cd java && $(MAKE) gen_const
cd ocaml && $(MAKE) gen_const
python const_generator.py powershell

tests: expected python java #oclma ruby

Expand Down
10 changes: 10 additions & 0 deletions bindings/const_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
include = [ 'arm.h', 'arm64.h', 'mips.h', 'x86.h', 'ppc.h', 'sparc.h', 'systemz.h', 'xcore.h' ]

template = {
'powershell': {
'header': "# For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [%s_h.cs]\n",
'footer': "",
'line_format': '%s = %s\n',
'out_file': './powershell/Capstone/Const/%s_h.cs',
# only capstone.h required, but it is not included above on line 8?
'capstone.h': 'capstone',
'comment_open': '///',
'comment_close': '',
},
'java': {
'header': "// For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT\npackage capstone;\n\npublic class %s_const {\n",
'footer': "}",
Expand Down
25 changes: 25 additions & 0 deletions bindings/powershell/Capstone/Capstone.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@{
# Script module or binary module file associated with this manifest.
ModuleToProcess = 'Capstone.psm1'

# Version number of this module.
ModuleVersion = '0.0.0.1'

# ID used to uniquely identify this module
GUID = 'd34db33f-9958-436d-a2d8-a77844a2bda5'

# Author of this module
Author = 'Ruben Boonen'

# Copyright statement for this module
Copyright = 'BSD 3-Clause'

# Description of the functionality provided by this module
Description = 'Capstone Engine Binding Module'

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '2.0'

# Functions to export from this module
FunctionsToExport = '*'
}
Loading

0 comments on commit a75752b

Please sign in to comment.