mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
refactor: make nicer ui, web, log
This commit is contained in:
+1
-3
@@ -216,8 +216,6 @@ Trailing {sect_name} bytes:
|
||||
for ins in trampoline.split(';'):
|
||||
logger.info(f'\t{ins.strip()}')
|
||||
|
||||
logger.info('')
|
||||
|
||||
return (trampoline, addrOffset)
|
||||
|
||||
|
||||
@@ -245,7 +243,7 @@ Trailing {sect_name} bytes:
|
||||
self.compiledTrampoline = encoding
|
||||
self.compiledTrampolineCount = count
|
||||
|
||||
logger.info('Successfully backdoored entry point with jump/call to shellcode')
|
||||
logger.debug('Successfully backdoored entry point with jump/call to shellcode')
|
||||
return instr.address
|
||||
|
||||
return 0
|
||||
|
||||
@@ -178,8 +178,6 @@ class SuperPe():
|
||||
if self.arch == 'x64':
|
||||
imageBaseRelocType = SuperPe.IMAGE_REL_BASED_DIR64
|
||||
|
||||
logger.info('Adding new relocations to backdoored PE file...')
|
||||
|
||||
relocsSize = self.pe.OPTIONAL_HEADER.DATA_DIRECTORY[SuperPe.IMAGE_DIRECTORY_ENTRY_BASERELOC].Size
|
||||
relocsIndex = self.getSectionIndexByDataDir(SuperPe.IMAGE_DIRECTORY_ENTRY_BASERELOC)
|
||||
addr = self.pe.OPTIONAL_HEADER.DATA_DIRECTORY[SuperPe.IMAGE_DIRECTORY_ENTRY_BASERELOC].VirtualAddress
|
||||
|
||||
Reference in New Issue
Block a user