generated from Vector35/sample_plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
294 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
from binaryninja import PluginCommand | ||
from .golang_parser import rename_functions, create_types, parse_go_file | ||
from .golang_parser import rename_functions, create_types, parse_go_file, print_files, comment_functions | ||
|
||
PluginCommand.register( | ||
"golang\\auto-rename functions (gopclntab)", | ||
"Automatically rename go functions based on information from gopclntab", | ||
rename_functions) | ||
|
||
PluginCommand.register( | ||
"golang\\Comment functions with filename (gopclntab)", | ||
"Comment the functions adding the filename where the function was defined", | ||
comment_functions) | ||
|
||
PluginCommand.register( | ||
"golang\\Apply types", | ||
"Automatically apply type information", | ||
create_types) | ||
|
||
PluginCommand.register( | ||
"golang\\Print file list", | ||
"Print on the console the list of files in the GoLang binary", | ||
print_files) | ||
|
||
PluginCommand.register( | ||
"golang\\Parse GoLang executable", | ||
"Automatically apply all the transformation in the right order", | ||
parse_go_file) | ||
parse_go_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,5 @@ | |
int64_t gcData; | ||
int32_t nameoff; | ||
int32_t typeoff; | ||
int64_t name; | ||
int64_t mhdr; | ||
}; | ||
""") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.