From 9eeee826995901295b5666b69d74710776c0764a Mon Sep 17 00:00:00 2001 From: XaFF-XaFF Date: Mon, 20 Dec 2021 09:34:46 +0100 Subject: [PATCH] Show registers value in real time --- Shellcodevv/Core/AssemblyHandler.cs | 12 ++++---- Shellcodevv/MainWindow.xaml | 15 +++++----- Shellcodevv/MainWindow.xaml.cs | 43 ++++++++++++++++++++++++++--- 3 files changed, 53 insertions(+), 17 deletions(-) diff --git a/Shellcodevv/Core/AssemblyHandler.cs b/Shellcodevv/Core/AssemblyHandler.cs index fa8c665..5e4c0dc 100644 --- a/Shellcodevv/Core/AssemblyHandler.cs +++ b/Shellcodevv/Core/AssemblyHandler.cs @@ -145,7 +145,7 @@ private void AppendRegisters(API.Registers registers) } string str = string.Join(" ", list); - main.registersBox.AppendText(str); + main.registersBox.Text = str; } private void AppendIndexes(API.Registers registers) @@ -164,7 +164,7 @@ private void AppendIndexes(API.Registers registers) } string str = string.Join(" ", list); - main.indexesBox.AppendText(str); + main.indexesBox.Text = str; } private void AppendPointers(API.Registers registers) @@ -183,7 +183,7 @@ private void AppendPointers(API.Registers registers) } string str = string.Join(" ", list); - main.pointersBox.AppendText(str); + main.pointersBox.Text = str; } private string Clear(string instruction) @@ -251,9 +251,9 @@ public unsafe void SetRegisters(string instruction, API.PROCESS_INFORMATION pi) MainWindow.registers = Configure(registers, MainWindow.registers, instruction); - //AppendRegisters(Main.registers); - //AppendIndexes(Main.registers); - //AppendPointers(Main.registers); + AppendRegisters(MainWindow.registers); + AppendIndexes(MainWindow.registers); + AppendPointers(MainWindow.registers); } #endregion } diff --git a/Shellcodevv/MainWindow.xaml b/Shellcodevv/MainWindow.xaml index a549a06..c9ec5cf 100644 --- a/Shellcodevv/MainWindow.xaml +++ b/Shellcodevv/MainWindow.xaml @@ -84,10 +84,10 @@ HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,39,0,0" Height="29" Width="59"/> - + />