Skip to content

Commit

Permalink
update widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jun 27, 2024
1 parent 8cb93c9 commit 65ddd61
Show file tree
Hide file tree
Showing 16 changed files with 105 additions and 33 deletions.
2 changes: 2 additions & 0 deletions cpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func LayoutCpu(fileName string) unison.Paneler {
//
//})

// return LayoutDisassemblyTable(fileName)

TopHSplit := widget.NewHSplit(
widget.NewTab("cpu with fast call", "todo fast call layout", true, LayoutDisassemblyTable(fileName)),
widget.NewTab("reg", "todo reg", true, unison.NewPanel()),
Expand Down
Binary file modified hyperdbg-cli.exe
Binary file not shown.
Binary file modified hyperhv.dll
Binary file not shown.
Binary file modified hyperkd.sys
Binary file not shown.
Binary file modified hyperlog.dll
Binary file not shown.
Binary file modified kdserial.dll
Binary file not shown.
70 changes: 45 additions & 25 deletions libhyperdbg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions sdk.gen/SDK/Headers/HardwareDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ typedef struct _HWDBG_INSTANCE_INFORMATION
UINT32 version; // Target version of HyperDbg (same as hwdbg)
UINT32 maximumNumberOfStages; // Number of stages that this instance of hwdbg supports (NumberOfSupportedStages == 0 means script engine is disabled)
UINT32 scriptVariableLength; // Maximum length of variables (and other script elements)
UINT32 numberOfSupportedLocalVariables; // Number of supported local variables
UINT32 numberOfSupportedGlobalVariables; // Number of supported global variables
UINT32 numberOfSupportedLocalAndGlobalVariables; // Number of supported local (and global) variables
UINT32 numberOfSupportedTemporaryVariables; // Number of supported temporary variables
UINT32 maximumNumberOfSupportedGetScriptOperators; // Maximum supported GET operators in a single func
UINT32 maximumNumberOfSupportedSetScriptOperators; // Maximum supported SET operators in a single func
Expand All @@ -116,6 +115,11 @@ typedef struct _HWDBG_INSTANCE_INFORMATION
// ANY ADDITION TO THIS MASK SHOULD BE ADDED TO HwdbgInterpreterShowScriptCapabilities
// and HwdbgInterpreterCheckScriptBufferWithScriptCapabilities as well Scala file
//
UINT64 assign_local_global_var : 1;
UINT64 assign_registers : 1;
UINT64 assign_pseudo_registers : 1;
UINT64 conditional_statements_and_comparison_operators : 1;

UINT64 func_or : 1;
UINT64 func_xor : 1;
UINT64 func_and : 1;
Expand Down
23 changes: 22 additions & 1 deletion sdk.gen/SDK/Imports/User/HyperDbgLibImports.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,35 @@ hyperdbg_u_check_multiline_command(CHAR * current_command, BOOLEAN reset);

//
// Connect to local or remote debugger
// Exoported functionality of the '.connect' command
// Exported functionality of the '.connect' command
//
IMPORT_EXPORT_LIBHYPERDBG VOID
hyperdbg_u_connect_local_debugger();

IMPORT_EXPORT_LIBHYPERDBG BOOLEAN
hyperdbg_u_connect_remote_debugger(const CHAR * ip, const CHAR * port);

//
// Continue debuggee
// Exported functionality of the 'g' command
//
IMPORT_EXPORT_LIBHYPERDBG VOID
hyperdbg_u_continue_debuggee();

//
// Pause debuggee
// Exported functionality of the 'pause' command or CTRL+C
//
IMPORT_EXPORT_LIBHYPERDBG VOID
hyperdbg_u_pause_debuggee();

//
// Set breakpoint
// Exported functionality of the 'bp' command
//
VOID
hyperdbg_u_set_breakpoint(UINT64 Address, UINT32 Pid, UINT32 Tid, UINT32 CoreNumer);

#ifdef __cplusplus
}
#endif
Binary file modified sdk.gen/SDK/Libraries/hyperhv.dll
Binary file not shown.
Binary file modified sdk.gen/SDK/Libraries/hyperlog.dll
Binary file not shown.
Binary file modified sdk.gen/SDK/Libraries/libhyperdbg.dll
Binary file not shown.
Binary file modified sdk.gen/SDK/Libraries/script-engine.dll
Binary file not shown.
Binary file modified sdk.gen/SDK/Libraries/symbol-parser.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions sdk.gen/bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func TestBindMacros(t *testing.T) {
mylog.Trace("number of macros", macros.Len())

var (
enumDebuggers = orderedmap.New[string, bool]()
enumIoctls = orderedmap.New[string, bool]()
enumDebuggers = orderedmap.New("", false)
enumIoctls = orderedmap.New("", false)
)

for _, p := range macros.List() {
Expand Down
31 changes: 28 additions & 3 deletions sdk.gen/merged_headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -2713,8 +2713,7 @@ typedef struct _HWDBG_INSTANCE_INFORMATION
UINT32 version; // Target version of HyperDbg (same as hwdbg)
UINT32 maximumNumberOfStages; // Number of stages that this instance of hwdbg supports (NumberOfSupportedStages == 0 means script engine is disabled)
UINT32 scriptVariableLength; // Maximum length of variables (and other script elements)
UINT32 numberOfSupportedLocalVariables; // Number of supported local variables
UINT32 numberOfSupportedGlobalVariables; // Number of supported global variables
UINT32 numberOfSupportedLocalAndGlobalVariables; // Number of supported local (and global) variables
UINT32 numberOfSupportedTemporaryVariables; // Number of supported temporary variables
UINT32 maximumNumberOfSupportedGetScriptOperators; // Maximum supported GET operators in a single func
UINT32 maximumNumberOfSupportedSetScriptOperators; // Maximum supported SET operators in a single func
Expand All @@ -2734,6 +2733,11 @@ typedef struct _HWDBG_INSTANCE_INFORMATION
// ANY ADDITION TO THIS MASK SHOULD BE ADDED TO HwdbgInterpreterShowScriptCapabilities
// and HwdbgInterpreterCheckScriptBufferWithScriptCapabilities as well Scala file
//
UINT64 assign_local_global_var : 1;
UINT64 assign_registers : 1;
UINT64 assign_pseudo_registers : 1;
UINT64 conditional_statements_and_comparison_operators : 1;

UINT64 func_or : 1;
UINT64 func_xor : 1;
UINT64 func_and : 1;
Expand Down Expand Up @@ -4420,14 +4424,35 @@ hyperdbg_u_check_multiline_command(CHAR * current_command, BOOLEAN reset);

//
// Connect to local or remote debugger
// Exoported functionality of the '.connect' command
// Exported functionality of the '.connect' command
//
IMPORT_EXPORT_LIBHYPERDBG VOID
hyperdbg_u_connect_local_debugger();

IMPORT_EXPORT_LIBHYPERDBG BOOLEAN
hyperdbg_u_connect_remote_debugger(const CHAR * ip, const CHAR * port);

//
// Continue debuggee
// Exported functionality of the 'g' command
//
IMPORT_EXPORT_LIBHYPERDBG VOID
hyperdbg_u_continue_debuggee();

//
// Pause debuggee
// Exported functionality of the 'pause' command or CTRL+C
//
IMPORT_EXPORT_LIBHYPERDBG VOID
hyperdbg_u_pause_debuggee();

//
// Set breakpoint
// Exported functionality of the 'bp' command
//
VOID
hyperdbg_u_set_breakpoint(UINT64 Address, UINT32 Pid, UINT32 Tid, UINT32 CoreNumer);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 65ddd61

Please sign in to comment.