mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
ui: better prinit of capabilities
This commit is contained in:
@@ -121,17 +121,18 @@ class ExeCapabilities():
|
||||
|
||||
def has_all(self):
|
||||
needs = [ 'GetEnvironmentVariableW', 'VirtualAlloc']
|
||||
|
||||
for need in needs:
|
||||
if not need in self.capabilities:
|
||||
return False
|
||||
if self.capabilities[need].addr == 0:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
||||
def print(self):
|
||||
logger.info("--( Capabilities: ")
|
||||
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