File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -92,32 +92,32 @@ def find_containing_image(self, pc):
9292 return image
9393
9494 def emu_error (self ):
95- logging .info ("\n " )
95+ logging .error ("\n " )
9696
9797 for reg in self .ql .reg .register_mapping :
9898 if isinstance (reg , str ):
9999 REG_NAME = reg
100100 REG_VAL = self .ql .reg .read (reg )
101- logging .info ( "[-] %s\t :\t 0x%x" % (REG_NAME , REG_VAL ))
101+ logging .error ( " %s\t :\t 0x%x" % (REG_NAME , REG_VAL ))
102102
103- logging .info ("\n " )
104- logging .info ( "[+] PC = 0x%x" % (self .ql .reg .arch_pc ))
103+ logging .error ("\n " )
104+ logging .error ( " PC = 0x%x" % (self .ql .reg .arch_pc ))
105105 containing_image = self .find_containing_image (self .ql .reg .arch_pc )
106106 if containing_image :
107107 offset = self .ql .reg .arch_pc - containing_image .base
108- logging .info (" (%s+0x%x)" % (containing_image .path , offset ))
108+ logging .error (" (%s+0x%x)" % (containing_image .path , offset ))
109109 else :
110110 logging .info ("\n " )
111111 self .ql .mem .show_mapinfo ()
112112
113113 try :
114114 buf = self .ql .mem .read (self .ql .reg .arch_pc , 8 )
115- logging .info ( "[+] %r" % ([hex (_ ) for _ in buf ]))
115+ logging .error ( " %r" % ([hex (_ ) for _ in buf ]))
116116
117117 logging .info ("\n " )
118118 self .disassembler (self .ql , self .ql .reg .arch_pc , 64 )
119119 except :
120- logging .info ( "[!] Error: PC(0x%x) Unreachable" % self .ql .reg .arch_pc )
120+ logging .error ( " Error: PC(0x%x) Unreachable" % self .ql .reg .arch_pc )
121121
122122
123123 def _x86_set_args (self , args ):
You can’t perform that action at this time.
0 commit comments