Add .formats command

This commit is contained in:
SinaKarvandi 2020-04-28 06:41:33 -07:00
parent 8fa7645f89
commit dba06cdb0d
16 changed files with 3225 additions and 2680 deletions

View file

@ -37,7 +37,23 @@ string SeparateTo64BitValue(UINT64 Value) {
temp.insert(8, 1, '`');
return temp;
}
void PrintBits(size_t const size, void const* const ptr)
{
unsigned char* b = (unsigned char*)ptr;
unsigned char byte;
int i, j;
for (i = size - 1; i >= 0; i--)
{
for (j = 7; j >= 0; j--)
{
byte = (b[i] >> j) & 1;
ShowMessages("%u", byte);
}
ShowMessages(" ", byte);
}
}
/**
* @brief Read memory and disassembler
*
@ -303,8 +319,14 @@ bool ValidateIP(string ip) {
return true;
}
/* ==============================================================================================
*/
void CommandClearScreen() { system("cls"); }
/* ==============================================================================================
*/
void CommandHiddenHook(vector<string> SplittedCommand) {
//
@ -339,6 +361,9 @@ void CommandHiddenHook(vector<string> SplittedCommand) {
}
}
/* ==============================================================================================
*/
void CommandReadMemoryHelp() {
ShowMessages("u !u & db dc dd dq !db !dc !dd !dq : read the memory different "
"shapes (hex) and disassembler\n");
@ -514,6 +539,9 @@ void CommandReadMemoryAndDisassembler(vector<string> SplittedCommand) {
}
}
/* ==============================================================================================
*/
void CommandConnectHelp() {
ShowMessages(".connect : connects to a remote or local machine to start "
"debugging.\n\n");
@ -572,6 +600,9 @@ void CommandConnect(vector<string> SplittedCommand) {
}
}
/* ==============================================================================================
*/
void CommandDisconnectHelp() {
ShowMessages(".disconnect : disconnect from a debugging session (it won't "
"unload the modules).\n\n");
@ -596,6 +627,9 @@ void CommandDisconnect(vector<string> SplittedCommand) {
ShowMessages("successfully disconnected\n");
}
/* ==============================================================================================
*/
void CommandLoadHelp() {
ShowMessages("load : installs the driver and load the kernel modules.\n\n");
ShowMessages("syntax : \tload\n");
@ -630,6 +664,9 @@ void CommandLoad(vector<string> SplittedCommand) {
g_IsDebuggerModulesLoaded = true;
}
/* ==============================================================================================
*/
void CommandUnloadHelp() {
ShowMessages(
"unload : unloads the kernel modules and uninstalls the drivers.\n\n");
@ -662,6 +699,9 @@ void CommandUnload(vector<string> SplittedCommand) {
}
}
/* ==============================================================================================
*/
void CommandCpuHelp() {
ShowMessages("cpu : collects a report from cpu features.\n\n");
ShowMessages("syntax : \tcpu\n");
@ -676,6 +716,9 @@ void CommandCpu(vector<string> SplittedCommand) {
ReadCpuDetails();
}
/* ==============================================================================================
*/
void CommandExitHelp() {
ShowMessages(
"exit : unload and uninstalls the drivers and closes the debugger.\n\n");
@ -706,6 +749,79 @@ void CommandExit(vector<string> SplittedCommand) {
exit(0);
}
/* ==============================================================================================
*/
void CommandFormatsHelp() {
ShowMessages(".formats : Show a value or register in different formats.\n\n");
ShowMessages("syntax : \t.formats [hex value | register]\n");
}
void CommandFormats(vector<string> SplittedCommand) {
UINT64 u64Value;
time_t t;
struct tm* tmp;
char MY_TIME[50];
char Character;
if (SplittedCommand.size() != 2) {
ShowMessages("incorrect use of '.formats'\n\n");
CommandFormatsHelp();
return;
}
if (!ConvertStringToUInt64(SplittedCommand.at(1).c_str(), &u64Value)) {
ShowMessages("incorrect use of '.formats'\n\n");
CommandFormatsHelp();
return;
}
time(&t);
//
// localtime() uses the time pointed by t ,
// to fill a tm structure with the values that
// represent the corresponding local time.
//
tmp = localtime(&t);
//
// using strftime to display time
//
strftime(MY_TIME, sizeof(MY_TIME), "%x - %I:%M%p", tmp);
ShowMessages("Evaluate expression:\n");
ShowMessages("Hex : %s\n", SeparateTo64BitValue(u64Value).c_str());
ShowMessages("Decimal : %d\n", u64Value);
ShowMessages("Octal : %o\n", u64Value);
ShowMessages("Binary : ");
PrintBits(sizeof(UINT64), &u64Value);
ShowMessages("\nChar : ");
//
// iterate through 8, 8 bits (8*6)
//
for (size_t j = 0; j < 8; j++) {
Character = (char)(((char*) &u64Value)[j]);
if (isprint(Character)) {
ShowMessages("%c", Character);
}
else {
ShowMessages(".");
}
}
ShowMessages("\nTime : %s\n", MY_TIME);
ShowMessages("Float : %4.2f %+.0e %E\n", u64Value, u64Value, u64Value);
ShowMessages("Double : %.*e\n", DECIMAL_DIG, u64Value);
}
/* ============================================================================================== */
/**
* @brief Interpret commands
*
@ -756,6 +872,8 @@ int _cdecl HyperdbgInterpreter(const char *Command) {
CommandUnload(SplittedCommand);
} else if (!FirstCommand.compare("cpu")) {
CommandCpu(SplittedCommand);
} else if (!FirstCommand.compare(".formats")) {
CommandFormats(SplittedCommand);
} else if (!FirstCommand.compare("lm")) {
CommandLm(SplittedCommand);
} else if (!FirstCommand.compare("db") || !FirstCommand.compare("dc") ||

View file

@ -47,13 +47,13 @@ int main()
//
// Put to ease the test, it will be removed
//
if (HyperdbgInstallDriver()) {
/*if (HyperdbgInstallDriver()) {
return 1;
}
if (HyperdbgLoad()) {
return 1;
}
}*/
// ---------------------------------------------------------

View file

@ -0,0 +1,134 @@
namespace hyperdbg_gui
{
partial class DisassmblerWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
this.toolStripLabel3 = new System.Windows.Forms.ToolStripLabel();
this.toolStripComboBox2 = new System.Windows.Forms.ToolStripComboBox();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.BackgroundColor = System.Drawing.Color.White;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 82;
this.dataGridView1.RowTemplate.Height = 33;
this.dataGridView1.Size = new System.Drawing.Size(1197, 774);
this.dataGridView1.TabIndex = 0;
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.toolStripTextBox1,
this.toolStripLabel2,
this.toolStripComboBox1,
this.toolStripLabel3,
this.toolStripComboBox2});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1197, 40);
this.toolStrip1.TabIndex = 1;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripComboBox1
//
this.toolStripComboBox1.Name = "toolStripComboBox1";
this.toolStripComboBox1.Size = new System.Drawing.Size(121, 40);
//
// toolStripTextBox1
//
this.toolStripTextBox1.Font = new System.Drawing.Font("Segoe UI", 9F);
this.toolStripTextBox1.Name = "toolStripTextBox1";
this.toolStripTextBox1.Size = new System.Drawing.Size(300, 40);
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(111, 34);
this.toolStripLabel1.Text = "Address :";
//
// toolStripLabel2
//
this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(175, 34);
this.toolStripLabel2.Text = "Memory Type :";
//
// toolStripLabel3
//
this.toolStripLabel3.Name = "toolStripLabel3";
this.toolStripLabel3.Size = new System.Drawing.Size(96, 34);
this.toolStripLabel3.Text = "Syntax :";
//
// toolStripComboBox2
//
this.toolStripComboBox2.Name = "toolStripComboBox2";
this.toolStripComboBox2.Size = new System.Drawing.Size(121, 40);
//
// Disassmbler
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1197, 774);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.dataGridView1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.Name = "Disassmbler";
this.Text = "Disassmbler";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripComboBox toolStripComboBox1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripTextBox toolStripTextBox1;
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
private System.Windows.Forms.ToolStripLabel toolStripLabel3;
private System.Windows.Forms.ToolStripComboBox toolStripComboBox2;
}
}

View file

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace hyperdbg_gui
{
public partial class DisassmblerWindow : Form
{
public DisassmblerWindow()
{
InitializeComponent();
}
}
}

View file

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View file

@ -38,7 +38,6 @@
this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addNewMenuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.commandWindowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.disassemblyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -46,9 +45,6 @@
this.memoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.stackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.callStackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
this.showHideLeftPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.showHideUPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.debugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.stepIntoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pauseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -112,6 +108,7 @@
this.toolStripButton9 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton22 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton16 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton17 = new System.Windows.Forms.ToolStripButton();
this.toolStripButton18 = new System.Windows.Forms.ToolStripButton();
@ -122,14 +119,14 @@
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.toolStripButton6 = new System.Windows.Forms.ToolStripButton();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel1 = new System.Windows.Forms.Panel();
this.commandSection1 = new hyperdbg_gui.CommandSection();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.menuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.toolStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// menuStrip1
@ -146,7 +143,7 @@
this.helpToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(1760, 40);
this.menuStrip1.Size = new System.Drawing.Size(1760, 42);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
@ -160,7 +157,7 @@
this.toolStripMenuItem6,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(72, 36);
this.fileToolStripMenuItem.Size = new System.Drawing.Size(72, 38);
this.fileToolStripMenuItem.Text = "File";
//
// test1ToolStripMenuItem
@ -203,88 +200,61 @@
// viewToolStripMenuItem
//
this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addNewMenuToolStripMenuItem,
this.commandWindowsToolStripMenuItem,
this.toolStripMenuItem3,
this.disassemblyToolStripMenuItem,
this.registersToolStripMenuItem,
this.memoryToolStripMenuItem,
this.stackToolStripMenuItem,
this.callStackToolStripMenuItem,
this.toolStripMenuItem5,
this.showHideLeftPanelToolStripMenuItem,
this.showHideUPanelToolStripMenuItem});
this.callStackToolStripMenuItem});
this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
this.viewToolStripMenuItem.Size = new System.Drawing.Size(86, 36);
this.viewToolStripMenuItem.Size = new System.Drawing.Size(86, 38);
this.viewToolStripMenuItem.Text = "View";
//
// addNewMenuToolStripMenuItem
//
this.addNewMenuToolStripMenuItem.Name = "addNewMenuToolStripMenuItem";
this.addNewMenuToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.addNewMenuToolStripMenuItem.Text = "Add New Menu";
this.addNewMenuToolStripMenuItem.Click += new System.EventHandler(this.addNewMenuToolStripMenuItem_Click);
//
// commandWindowsToolStripMenuItem
//
this.commandWindowsToolStripMenuItem.Name = "commandWindowsToolStripMenuItem";
this.commandWindowsToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.commandWindowsToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.commandWindowsToolStripMenuItem.Text = "Command Window";
this.commandWindowsToolStripMenuItem.Click += new System.EventHandler(this.commandWindowsToolStripMenuItem_Click);
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(396, 6);
this.toolStripMenuItem3.Size = new System.Drawing.Size(356, 6);
//
// disassemblyToolStripMenuItem
//
this.disassemblyToolStripMenuItem.Name = "disassemblyToolStripMenuItem";
this.disassemblyToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.disassemblyToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.disassemblyToolStripMenuItem.Text = "Disassembly";
//
// registersToolStripMenuItem
//
this.registersToolStripMenuItem.Name = "registersToolStripMenuItem";
this.registersToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.registersToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.registersToolStripMenuItem.Text = "Registers";
this.registersToolStripMenuItem.Click += new System.EventHandler(this.registersToolStripMenuItem_Click);
//
// memoryToolStripMenuItem
//
this.memoryToolStripMenuItem.Name = "memoryToolStripMenuItem";
this.memoryToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.memoryToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.memoryToolStripMenuItem.Text = "Memory";
this.memoryToolStripMenuItem.Click += new System.EventHandler(this.memoryToolStripMenuItem_Click);
//
// stackToolStripMenuItem
//
this.stackToolStripMenuItem.Name = "stackToolStripMenuItem";
this.stackToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.stackToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.stackToolStripMenuItem.Text = "Stack";
//
// callStackToolStripMenuItem
//
this.callStackToolStripMenuItem.Name = "callStackToolStripMenuItem";
this.callStackToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.callStackToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.callStackToolStripMenuItem.Text = "Call Stack";
//
// toolStripMenuItem5
//
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
this.toolStripMenuItem5.Size = new System.Drawing.Size(396, 6);
//
// showHideLeftPanelToolStripMenuItem
//
this.showHideLeftPanelToolStripMenuItem.Name = "showHideLeftPanelToolStripMenuItem";
this.showHideLeftPanelToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.showHideLeftPanelToolStripMenuItem.Text = "Show/Hide Left Toolbar";
//
// showHideUPanelToolStripMenuItem
//
this.showHideUPanelToolStripMenuItem.Name = "showHideUPanelToolStripMenuItem";
this.showHideUPanelToolStripMenuItem.Size = new System.Drawing.Size(399, 44);
this.showHideUPanelToolStripMenuItem.Text = "Show/Hide Up Toolbar";
//
// debugToolStripMenuItem
//
this.debugToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -298,60 +268,60 @@
this.stepOutToolStripMenuItem,
this.toolStripMenuItem8});
this.debugToolStripMenuItem.Name = "debugToolStripMenuItem";
this.debugToolStripMenuItem.Size = new System.Drawing.Size(107, 36);
this.debugToolStripMenuItem.Size = new System.Drawing.Size(107, 38);
this.debugToolStripMenuItem.Text = "Debug";
//
// stepIntoToolStripMenuItem
//
this.stepIntoToolStripMenuItem.Name = "stepIntoToolStripMenuItem";
this.stepIntoToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.stepIntoToolStripMenuItem.Size = new System.Drawing.Size(250, 44);
this.stepIntoToolStripMenuItem.Text = "Run";
//
// pauseToolStripMenuItem
//
this.pauseToolStripMenuItem.Name = "pauseToolStripMenuItem";
this.pauseToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.pauseToolStripMenuItem.Size = new System.Drawing.Size(250, 44);
this.pauseToolStripMenuItem.Text = "Pause";
//
// restartToolStripMenuItem
//
this.restartToolStripMenuItem.Name = "restartToolStripMenuItem";
this.restartToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.restartToolStripMenuItem.Size = new System.Drawing.Size(250, 44);
this.restartToolStripMenuItem.Text = "Restart";
//
// closeToolStripMenuItem
//
this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
this.closeToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.closeToolStripMenuItem.Size = new System.Drawing.Size(250, 44);
this.closeToolStripMenuItem.Text = "Close";
//
// toolStripMenuItem7
//
this.toolStripMenuItem7.Name = "toolStripMenuItem7";
this.toolStripMenuItem7.Size = new System.Drawing.Size(356, 6);
this.toolStripMenuItem7.Size = new System.Drawing.Size(247, 6);
//
// stepOverToolStripMenuItem
//
this.stepOverToolStripMenuItem.Name = "stepOverToolStripMenuItem";
this.stepOverToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.stepOverToolStripMenuItem.Size = new System.Drawing.Size(250, 44);
this.stepOverToolStripMenuItem.Text = "Step over";
//
// stepIntoToolStripMenuItem1
//
this.stepIntoToolStripMenuItem1.Name = "stepIntoToolStripMenuItem1";
this.stepIntoToolStripMenuItem1.Size = new System.Drawing.Size(359, 44);
this.stepIntoToolStripMenuItem1.Size = new System.Drawing.Size(250, 44);
this.stepIntoToolStripMenuItem1.Text = "Step Into";
//
// stepOutToolStripMenuItem
//
this.stepOutToolStripMenuItem.Name = "stepOutToolStripMenuItem";
this.stepOutToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.stepOutToolStripMenuItem.Size = new System.Drawing.Size(250, 44);
this.stepOutToolStripMenuItem.Text = "Step Out";
//
// toolStripMenuItem8
//
this.toolStripMenuItem8.Name = "toolStripMenuItem8";
this.toolStripMenuItem8.Size = new System.Drawing.Size(356, 6);
this.toolStripMenuItem8.Size = new System.Drawing.Size(247, 6);
//
// toolStripMenuItem1
//
@ -361,7 +331,7 @@
this.toolStripMenuItem4,
this.functionTracerToolStripMenuItem});
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(125, 36);
this.toolStripMenuItem1.Size = new System.Drawing.Size(125, 38);
this.toolStripMenuItem1.Text = "Features";
//
// rWHiddenHooksToolStripMenuItem
@ -372,7 +342,7 @@
this.hiddenBreakpointExecutionHookToolStripMenuItem});
this.rWHiddenHooksToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("rWHiddenHooksToolStripMenuItem.Image")));
this.rWHiddenHooksToolStripMenuItem.Name = "rWHiddenHooksToolStripMenuItem";
this.rWHiddenHooksToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.rWHiddenHooksToolStripMenuItem.Size = new System.Drawing.Size(312, 44);
this.rWHiddenHooksToolStripMenuItem.Text = "Hidden Hooks";
//
// whatsThisToolStripMenuItem
@ -446,7 +416,7 @@
this.howToUseToolStripMenuItem1});
this.syscallHookToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("syscallHookToolStripMenuItem.Image")));
this.syscallHookToolStripMenuItem.Name = "syscallHookToolStripMenuItem";
this.syscallHookToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.syscallHookToolStripMenuItem.Size = new System.Drawing.Size(312, 44);
this.syscallHookToolStripMenuItem.Text = "Syscall Hook";
//
// whatsThisToolStripMenuItem1
@ -494,20 +464,20 @@
// toolStripMenuItem4
//
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(356, 6);
this.toolStripMenuItem4.Size = new System.Drawing.Size(309, 6);
//
// functionTracerToolStripMenuItem
//
this.functionTracerToolStripMenuItem.Enabled = false;
this.functionTracerToolStripMenuItem.Name = "functionTracerToolStripMenuItem";
this.functionTracerToolStripMenuItem.Size = new System.Drawing.Size(359, 44);
this.functionTracerToolStripMenuItem.Size = new System.Drawing.Size(312, 44);
this.functionTracerToolStripMenuItem.Text = "Function Tracer";
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Enabled = false;
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(112, 36);
this.toolStripMenuItem2.Size = new System.Drawing.Size(112, 38);
this.toolStripMenuItem2.Text = "Plugins";
this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
//
@ -517,7 +487,7 @@
this.preferencesToolStripMenuItem,
this.appearancesToolStripMenuItem});
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(119, 36);
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(119, 38);
this.optionsToolStripMenuItem.Text = "Options";
//
// preferencesToolStripMenuItem
@ -540,7 +510,7 @@
this.helpToolStripMenuItem1,
this.aboutToolStripMenuItem});
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
this.helpToolStripMenuItem.Size = new System.Drawing.Size(85, 36);
this.helpToolStripMenuItem.Size = new System.Drawing.Size(85, 38);
this.helpToolStripMenuItem.Text = "Help";
//
// encounterAnAntihyperdbgMethodToolStripMenuItem
@ -633,6 +603,7 @@
this.toolStripButton9,
this.toolStripButton1,
this.toolStripSeparator5,
this.toolStripButton22,
this.toolStripButton16,
this.toolStripButton17,
this.toolStripButton18,
@ -643,7 +614,7 @@
this.toolStripTextBox1,
this.toolStripLabel1,
this.toolStripButton6});
this.toolStrip1.Location = new System.Drawing.Point(0, 46);
this.toolStrip1.Location = new System.Drawing.Point(0, 48);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Padding = new System.Windows.Forms.Padding(0);
this.toolStrip1.Size = new System.Drawing.Size(1760, 58);
@ -824,6 +795,18 @@
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 58);
//
// toolStripButton22
//
this.toolStripButton22.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButton22.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton22.Image")));
this.toolStripButton22.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton22.Name = "toolStripButton22";
this.toolStripButton22.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.toolStripButton22.Size = new System.Drawing.Size(46, 52);
this.toolStripButton22.Text = "toolStripButton16";
this.toolStripButton22.ToolTipText = "Command";
this.toolStripButton22.Click += new System.EventHandler(this.toolStripButton22_Click);
//
// toolStripButton16
//
this.toolStripButton16.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
@ -834,6 +817,7 @@
this.toolStripButton16.Size = new System.Drawing.Size(46, 52);
this.toolStripButton16.Text = "toolStripButton16";
this.toolStripButton16.ToolTipText = "Command";
this.toolStripButton16.Click += new System.EventHandler(this.toolStripButton16_Click);
//
// toolStripButton17
//
@ -845,6 +829,7 @@
this.toolStripButton17.Size = new System.Drawing.Size(46, 52);
this.toolStripButton17.Text = "toolStripButton17";
this.toolStripButton17.ToolTipText = "Registers";
this.toolStripButton17.Click += new System.EventHandler(this.toolStripButton17_Click);
//
// toolStripButton18
//
@ -923,18 +908,6 @@
this.toolStripButton6.Text = "Info";
this.toolStripButton6.Click += new System.EventHandler(this.toolStripButton6_Click);
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 40);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(1760, 6);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 8;
this.pictureBox1.TabStop = false;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
@ -957,6 +930,18 @@
this.commandSection1.Size = new System.Drawing.Size(1760, 42);
this.commandSection1.TabIndex = 11;
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 42);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(1760, 6);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 8;
this.pictureBox1.TabStop = false;
//
// MainPanel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
@ -983,8 +968,8 @@
this.statusStrip1.PerformLayout();
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -1006,7 +991,6 @@
private System.Windows.Forms.ToolStripButton toolStripButton3;
private System.Windows.Forms.ToolStripButton toolStripButton4;
private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem addNewMenuToolStripMenuItem;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.ToolStripButton toolStripButton8;
private System.Windows.Forms.ToolStripButton toolStripButton10;
@ -1047,9 +1031,6 @@
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem memoryToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem stackToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem5;
private System.Windows.Forms.ToolStripMenuItem showHideLeftPanelToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem showHideUPanelToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem callStackToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem disassemblyToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem4;
@ -1088,6 +1069,7 @@
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem9;
private System.Windows.Forms.ToolStripMenuItem recentSessionsToolStripMenuItem;
private System.Windows.Forms.ToolStripButton toolStripButton22;
}
}

View file

@ -9,11 +9,7 @@ namespace hyperdbg_gui
public partial class MainPanel : Form
{
public MainPanel()
{
InitializeComponent();
}
public MainPanel() { InitializeComponent(); }
public void commandText_KeyDown(object sender, KeyEventArgs e)
{
@ -23,63 +19,46 @@ namespace hyperdbg_gui
string CommandWithoutSpace = Command.Replace(" ", "");
// check if it's a .cls
if (CommandWithoutSpace == ".cls" || CommandWithoutSpace == "cls" || CommandWithoutSpace == "clear")
if (CommandWithoutSpace == ".cls" || CommandWithoutSpace == "cls" ||
CommandWithoutSpace == "clear")
{
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1.Clear();
commandSection1.commandText.Text = string.Empty;
return;
}
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1.AppendText("\n" + commandSection1.richTextBox2.Text.Remove(0,1) + Command + "\n");
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1
.AppendText("\n" + commandSection1.richTextBox2.Text.Remove(0, 1) +
Command + "\n");
KernelmodeRequests.KernelRequests.HyperdbgCommandInterpreter(Command);
commandSection1.commandText.Text = string.Empty;
}
}
private void Form1_Load(object sender, EventArgs e)
{
this.Text = "hyperdbg debugger (" + hyperdbg_gui.Details.HyperdbgInformation.HyperdbgVersion + ") x86-64";
this.Text = "hyperdbg debugger (" +
hyperdbg_gui.Details.HyperdbgInformation.HyperdbgVersion +
") x86-64";
ControlMoverOrResizer.Init(panel1);
ControlMoverOrResizer.WorkType = ControlMoverOrResizer.MoveOrResize.Resize;
commandSection1.commandText.KeyDown += new System.Windows.Forms.KeyEventHandler(commandText_KeyDown);
commandSection1.commandText.KeyDown +=
new System.Windows.Forms.KeyEventHandler(commandText_KeyDown);
}
private void addNewMenuToolStripMenuItem_Click(object sender, EventArgs e)
{
//Create a new instance of the MDI child template form
child chForm = new child();
private void richTextBox1_Enter(object sender, EventArgs e) { }
//Set parent form for the child window
chForm.MdiParent = this;
private void richTextBox1_Leave(object sender, EventArgs e) { }
//Display the child window
chForm.Show();
}
private void commandWindowsToolStripMenuItem_Click(object sender,
EventArgs e)
{ }
private void richTextBox1_Enter(object sender, EventArgs e)
{
}
private void richTextBox1_Leave(object sender, EventArgs e)
{
}
private void commandWindowsToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void toolStripButton11_Click(object sender, EventArgs e)
{
bool IsDark = !hyperdbg_gui.Details.GlobalVariables.IsInDarkMode;
hyperdbg_gui.Details.GlobalVariables.IsInDarkMode = !hyperdbg_gui.Details.GlobalVariables.IsInDarkMode;
hyperdbg_gui.Details.GlobalVariables.IsInDarkMode =
!hyperdbg_gui.Details.GlobalVariables.IsInDarkMode;
foreach (Control c in this.Controls)
{
@ -106,13 +85,13 @@ namespace hyperdbg_gui
private void registersToolStripMenuItem_Click(object sender, EventArgs e)
{
//Create a new instance of the MDI child template form
// Create a new instance of the MDI child template form
RegsWindow chForm = new RegsWindow();
//Set parent form for the child window
// Set parent form for the child window
chForm.MdiParent = this;
//Display the child window
// Display the child window
chForm.Show();
}
@ -129,64 +108,74 @@ namespace hyperdbg_gui
private void toolStripMenuItem2_Click(object sender, EventArgs e)
{
MessageBox.Show("Not yet supported, support will be available in the future versions");
MessageBox.Show(
"Not yet supported, support will be available in the future versions");
}
private int ReceivedMessagesHandler(string Text)
{
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1.Invoke(new Action(() => {
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1.AppendText(Text);
}));
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1.Invoke(
new Action(() =>
{
hyperdbg_gui.Details.GlobalVariables.CommandWindow.richTextBox1
.AppendText(Text);
}));
return 0;
}
public void LoadDriver()
{
hyperdbg_gui.KernelAffairs.CtrlNativeCallbacks.SetCallback(ReceivedMessagesHandler);
hyperdbg_gui.KernelAffairs.CtrlNativeCallbacks.SetCallback(
ReceivedMessagesHandler);
if (hyperdbg_gui.KernelmodeRequests.KernelRequests.HyperdbgDriverInstaller() != 0)
if (hyperdbg_gui.KernelmodeRequests.KernelRequests
.HyperdbgDriverInstaller() != 0)
{
MessageBox.Show("There was an error installing the driver", "Error"
, MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show("There was an error installing the driver", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (hyperdbg_gui.KernelmodeRequests.KernelRequests.HyperdbgLoader() != 0)
{
MessageBox.Show("Failed to load hyperdbg's hypervisor driver, see logs for more information"
, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show(
"Failed to load hyperdbg's hypervisor driver, see logs for more information",
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
hyperdbg_gui.Details.GlobalVariables.IsDriverLoaded = true;
toolStripButton21.Image = hyperdbg_gui.Properties.Resources.GreenCircle;
}
public void UnloadDriver()
{
hyperdbg_gui.KernelmodeRequests.KernelRequests.HyperdbgUnloader();
if (hyperdbg_gui.KernelmodeRequests.KernelRequests.HyperdbgDriverUninstaller() != 0)
if (hyperdbg_gui.KernelmodeRequests.KernelRequests
.HyperdbgDriverUninstaller() != 0)
{
MessageBox.Show("There was an error unloading the driver", "Error"
, MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show("There was an error unloading the driver", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
hyperdbg_gui.Details.GlobalVariables.IsDriverLoaded = false;
}
private void toolStripButton21_Click(object sender, EventArgs e)
{
if (!hyperdbg_gui.Details.GlobalVariables.IsDriverLoaded)
{
if (true)
{
WindowManager.AddWindow.CreateCommandWindow(this);
// Make it globally available
hyperdbg_gui.Details.GlobalVariables.CommandWindow =
new CommandWindow();
// Show command View
hyperdbg_gui.Details.GlobalVariables.CommandWindow.MdiParent = this;
hyperdbg_gui.Details.GlobalVariables.CommandWindow.Show();
Details.GlobalVariables.VmxInitThread = new Thread(LoadDriver);
Details.GlobalVariables.VmxInitThread.Start();
}
}
@ -195,7 +184,6 @@ namespace hyperdbg_gui
UnloadDriver();
toolStripButton21.Image = hyperdbg_gui.Properties.Resources.RedCircle;
}
}
private void toolStripButton6_Click(object sender, EventArgs e)
@ -210,11 +198,51 @@ namespace hyperdbg_gui
attach.ShowDialog();
}
private void recentSessionsToolStripMenuItem_Click(object sender, EventArgs e)
private void recentSessionsToolStripMenuItem_Click(object sender,
EventArgs e)
{
RecentSessions r = new RecentSessions();
r.ShowDialog();
}
private void toolStripButton16_Click(object sender, EventArgs e)
{
DisassmblerWindow disassmbler = new DisassmblerWindow();
// Set parent form for the child window
disassmbler.MdiParent = this;
// Display the child window
disassmbler.Show();
}
private void toolStripButton17_Click(object sender, EventArgs e)
{
RegsWindow regs = new RegsWindow();
// Set parent form for the child window
regs.MdiParent = this;
// Display the child window
regs.Show();
}
private void toolStripButton22_Click(object sender, EventArgs e)
{
// Make it globally available
hyperdbg_gui.Details.GlobalVariables.CommandWindow = new CommandWindow();
// Show command View
hyperdbg_gui.Details.GlobalVariables.CommandWindow.MdiParent = this;
hyperdbg_gui.Details.GlobalVariables.CommandWindow.Show();
}
private void memoryToolStripMenuItem_Click(object sender, EventArgs e)
{
MemoryWindow memoryWindow = new MemoryWindow();
memoryWindow.MdiParent = this;
memoryWindow.Show();
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,83 @@
namespace hyperdbg_gui
{
partial class MemoryWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
this.toolStrip1.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripLabel1,
this.toolStripComboBox1});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(703, 40);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(102, 34);
this.toolStripLabel1.Text = "Format :";
//
// toolStripComboBox1
//
this.toolStripComboBox1.Name = "toolStripComboBox1";
this.toolStripComboBox1.Size = new System.Drawing.Size(121, 40);
//
// MemoryWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(703, 606);
this.Controls.Add(this.toolStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.Name = "MemoryWindow";
this.Text = "MemoryWindow";
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripComboBox toolStripComboBox1;
}
}

View file

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace hyperdbg_gui
{
public partial class MemoryWindow : Form
{
public MemoryWindow()
{
InitializeComponent();
}
}
}

View file

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View file

@ -1,20 +0,0 @@
using System.Windows.Forms;
namespace hyperdbg_gui.WindowManager
{
class AddWindow
{
// return is an id which describes the control
public static void CreateCommandWindow(Form MdiParrent)
{
// Make it globally available
hyperdbg_gui.Details.GlobalVariables.CommandWindow = new CommandWindow();
// Show command View
hyperdbg_gui.Details.GlobalVariables.CommandWindow.MdiParent = MdiParrent;
hyperdbg_gui.Details.GlobalVariables.CommandWindow.Show();
}
}
}

View file

@ -1,62 +0,0 @@
namespace hyperdbg_gui
{
partial class child
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(241, 157);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(318, 63);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// child
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.Name = "child";
this.Text = "child";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button1;
}
}

View file

@ -1,18 +0,0 @@
using System;
using System.Windows.Forms;
namespace hyperdbg_gui
{
public partial class child : Form
{
public child()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Test");
}
}
}

View file

@ -104,12 +104,6 @@
<Compile Include="AttachWindow.Designer.cs">
<DependentUpon>AttachWindow.cs</DependentUpon>
</Compile>
<Compile Include="child.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="child.Designer.cs">
<DependentUpon>child.cs</DependentUpon>
</Compile>
<Compile Include="CommandWindow.cs">
<SubType>Form</SubType>
</Compile>
@ -125,6 +119,12 @@
<Compile Include="ControlMoverOrResizer.cs" />
<Compile Include="Details\GlobalVariables.cs" />
<Compile Include="Details\Information.cs" />
<Compile Include="DisassmblerWindow.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="DisassmblerWindow.Designer.cs">
<DependentUpon>DisassmblerWindow.cs</DependentUpon>
</Compile>
<Compile Include="KernelAffairs\CtrlNativeCallbacks.cs" />
<Compile Include="KernelAffairs\KernelRequests.cs" />
<Compile Include="MainPanel.cs">
@ -133,6 +133,12 @@
<Compile Include="MainPanel.Designer.cs">
<DependentUpon>MainPanel.cs</DependentUpon>
</Compile>
<Compile Include="MemoryWindow.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MemoryWindow.Designer.cs">
<DependentUpon>MemoryWindow.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
@ -152,25 +158,27 @@
<Compile Include="RegsWindow.Designer.cs">
<DependentUpon>RegsWindow.cs</DependentUpon>
</Compile>
<Compile Include="WindowManager\AddWindow.cs" />
<EmbeddedResource Include="AboutWindow.resx">
<DependentUpon>AboutWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="AttachWindow.resx">
<DependentUpon>AttachWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="child.resx">
<DependentUpon>child.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="CommandWindow.resx">
<DependentUpon>CommandWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Components\CommandSection.resx">
<DependentUpon>CommandSection.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="DisassmblerWindow.resx">
<DependentUpon>DisassmblerWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainPanel.resx">
<DependentUpon>MainPanel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MemoryWindow.resx">
<DependentUpon>MemoryWindow.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>

View file

@ -39,8 +39,8 @@ Global
{FBCBBBAD-4EAE-469E-827F-F59FE9E7375B}.Debug|x64.Build.0 = Debug|x64
{FBCBBBAD-4EAE-469E-827F-F59FE9E7375B}.Release|x64.ActiveCfg = Release|x64
{FBCBBBAD-4EAE-469E-827F-F59FE9E7375B}.Release|x64.Build.0 = Release|x64
{84380C1B-3AFD-4557-B187-2E2DEC806CAD}.Debug|x64.ActiveCfg = Debug|x64
{84380C1B-3AFD-4557-B187-2E2DEC806CAD}.Debug|x64.Build.0 = Debug|x64
{84380C1B-3AFD-4557-B187-2E2DEC806CAD}.Debug|x64.ActiveCfg = Debug|Any CPU
{84380C1B-3AFD-4557-B187-2E2DEC806CAD}.Debug|x64.Build.0 = Debug|Any CPU
{84380C1B-3AFD-4557-B187-2E2DEC806CAD}.Release|x64.ActiveCfg = Release|x64
{84380C1B-3AFD-4557-B187-2E2DEC806CAD}.Release|x64.Build.0 = Release|x64
{809C3AD5-3211-4992-A472-9D81D124C5FA}.Debug|x64.ActiveCfg = Debug|x64