Added a convience feature for jumping quickly to exact memory segments

This commit is contained in:
Jeremiah Orians 2017-02-15 23:46:32 -05:00
parent 27e30e8908
commit c0cf2428fc
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
2 changed files with 16 additions and 3 deletions

View File

@ -65,6 +65,11 @@ class StringGenerator(object):
UI.Current_Page = 0
return UI.returnPage()
@cherrypy.expose
def WINDOW(self, Window=0):
UI.Current_Page = int(Window, 16)
return UI.returnPage()
@cherrypy.expose
def SPEEDBREAKPOINT(self):
UI.Step_lilith()

View File

@ -36,7 +36,7 @@ def Set_Register(register, value):
return
def returnPage():
return get_header() + (vm.get_memory(Current_Page)).decode('utf-8') + get_spacer1() + get_registers(0) + get_registers(8) + get_spacer2() + get_disassembled() + get_footer()
return get_header() + (vm.get_memory(Current_Page)).decode('utf-8') + get_spacer1() + get_registers(0) + get_registers(8) + get_spacer2() + get_Window_shortcut() + get_disassembled() + get_footer()
hexlookup = { 0 : '0', 1 : '1', 2 : '2', 3 : '3', 4 : '4', 5 : '5', 6 : '6', 7 : '7', 8 : '8', 9 : '9', 10 : 'A', 11 : 'B', 12 : 'C', 13 : 'D', 14 : 'E', 15 : 'F' }
@ -141,12 +141,20 @@ def get_spacer2():
return """
</div>
</div>
<div style="position:absolute; left:10px; top:280px; overflow-y: scroll; height:200px; width:60%;"> """
"""
def get_Window_shortcut():
return """
<form action="WINDOW" style="position:absolute; left:10px; top:260px;">
<input type="submit" value="Window Fast Move"> <input type="text" name="Window">
</form>
"""
def get_disassembled():
f = open('z_disassembled', "r")
temp = """<table class="Debug"><tbody>"""
temp = """ <div style="position:absolute; left:10px; top:280px; overflow-y: scroll; height:200px; width:60%;">
<table class="Debug"><tbody>"""
i = 0
for line in f:
pieces = re.split(r'\t+', line)