mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Merge branch 'dev' of github.com:qilingframework/qiling into dev
This commit is contained in:
@@ -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]))
|
||||
|
||||
@@ -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]))
|
||||
|
||||
@@ -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
@@ -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):
|
||||
|
||||
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user