mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 09:37:11 +00:00
ui: better prinit of capabilities
This commit is contained in:
@@ -121,17 +121,18 @@ class ExeCapabilities():
|
|||||||
|
|
||||||
def has_all(self):
|
def has_all(self):
|
||||||
needs = [ 'GetEnvironmentVariableW', 'VirtualAlloc']
|
needs = [ 'GetEnvironmentVariableW', 'VirtualAlloc']
|
||||||
|
|
||||||
for need in needs:
|
for need in needs:
|
||||||
if not need in self.capabilities:
|
if not need in self.capabilities:
|
||||||
return False
|
return False
|
||||||
if self.capabilities[need].addr == 0:
|
if self.capabilities[need].addr == 0:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def print(self):
|
def print(self):
|
||||||
logger.info("--( Capabilities: ")
|
logger.info("--( Capabilities: ")
|
||||||
for _, cap in self.capabilities.items():
|
for _, cap in self.capabilities.items():
|
||||||
logger.info(" " + str(cap))
|
if cap.addr == 0:
|
||||||
|
logger.info(" {:28} {}".format(cap.name, "N/A"))
|
||||||
|
else:
|
||||||
|
logger.info(" {:28} 0x{:x}".format(cap.name, cap.addr))
|
||||||
|
|||||||
Reference in New Issue
Block a user