minor logging output

master
JoYo 2019-02-24 07:50:51 +00:00
parent a3ba591077
commit a628370365
1 changed files with 5 additions and 3 deletions

View File

@ -99,9 +99,11 @@ def sins():
lineage += 1 lineage += 1
continue continue
logger.debug(f'result: {result}, {len(scrap)}')
opcodes = objdump(scrap) opcodes = objdump(scrap)
ops_count = opcodes.count('\n')
logger.debug({'result': result, 'ops': ops_count})
scrap = growth(shellcode=scrap, objdump=opcodes) scrap = growth(shellcode=scrap, objdump=opcodes)
parent = ScrapNode(child=scrap, parent_id=parent.id) parent = ScrapNode(child=scrap, parent_id=parent.id)
@ -109,5 +111,5 @@ def sins():
session.add(parent) session.add(parent)
session.commit() session.commit()
logger.info(f'scrap:\n{parent}') logger.info(parent)
lineage = 0 lineage = 0