Merge branch 'dev' of github.com:qilingframework/qiling into dev

This commit is contained in:
xwings
2020-05-10 21:42:20 +08:00
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class QlOsFreebsd(QlOsPosix):
except UcError:
if self.ql.output in (QL_OUTPUT.DEBUG, QL_OUTPUT.DUMP, QL_OUTPUT.DISASM):
self.ql.nprint("[+] PC = 0x%x\n" %(self.ql.reg.arch_pc))
self.ql.nprint("[+] PC = 0x%x" %(self.ql.reg.arch_pc))
self.ql.mem.show_mapinfo()
buf = self.ql.mem.read(self.ql.reg.arch_pc, 8)
self.ql.nprint("[+] %r" % ([hex(_) for _ in buf]))
+1 -1
View File
@@ -144,7 +144,7 @@ class QlOsLinux(QlOsPosix):
except:
if self.ql.output in (QL_OUTPUT.DEBUG, QL_OUTPUT.DUMP):
self.ql.nprint("[+] PC = 0x%x\n" %(self.ql.reg.arch_pc))
self.ql.nprint("[+] PC = 0x%x" %(self.ql.reg.arch_pc))
self.ql.mem.show_mapinfo()
buf = self.ql.mem.read(self.ql.reg.arch_pc, 8)
self.ql.nprint("[+] %r" % ([hex(_) for _ in buf]))
+1 -1
View File
@@ -107,7 +107,7 @@ class QlOsMacos(QlOsPosix):
self.ql.emu_start(self.ql.loader.entry_point, self.exit_point, self.ql.timeout, self.ql.count)
except UcError:
if self.ql.output in (QL_OUTPUT.DEBUG, QL_OUTPUT.DUMP):
self.ql.nprint("[+] PC= " + hex(self.ql.reg.arch_pc))
self.ql.nprint("[+] PC = 0x%x" %(self.ql.reg.arch_pc))
self.ql.mem.show_mapinfo()
try:
buf = self.ql.mem.read(self.ql.reg.arch_pc, 8)
+2 -2
View File
@@ -128,10 +128,10 @@ class QlMemoryManager:
perms_sym.append("-")
return "".join(perms_sym)
self.ql.nprint("[+] Start End Perm. Path\n")
self.ql.nprint("[+] Start End Perm. Path")
for s, e, p, info in self.map_info:
_p = _perms_mapping(p)
self.ql.nprint("[+] %08x - %08x - %s %s\n" % (s, e, _p, info))
self.ql.nprint("[+] %08x - %08x - %s %s" % (s, e, _p, info))
def get_lib_base(self, filename):
+1 -1
View File
@@ -132,7 +132,7 @@ class QlOsWindows(QlOs):
self.ql.emu_start(self.ql.loader.entry_point, self.exit_point, self.ql.timeout, self.ql.count)
except UcError:
if self.ql.output in (QL_OUTPUT.DEBUG, QL_OUTPUT.DUMP):
self.ql.nprint("[+] PC = 0x%x\n" % (self.ql.reg.arch_pc))
self.ql.nprint("[+] PC = 0x%x" % (self.ql.reg.arch_pc))
self.ql.mem.show_mapinfo()
buf = self.ql.mem.read(self.ql.reg.arch_pc, 8)
self.ql.nprint("[+] %r" % ([hex(_) for _ in buf]))