mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: decoy in shellcode
This commit is contained in:
+7
-1
@@ -1,7 +1,10 @@
|
||||
from typing import List, Dict
|
||||
import logging
|
||||
|
||||
from pe.r2helper import r2_disas
|
||||
|
||||
logger = logging.getLogger("Observer")
|
||||
|
||||
|
||||
class Observer():
|
||||
"""Central class to store all logs and files created during the build process"""
|
||||
@@ -53,7 +56,10 @@ class Observer():
|
||||
# Our log output
|
||||
with open(f"{working_dir}log-supermega.log", "w") as f:
|
||||
for line in observer.get_logs():
|
||||
f.write(line + "\n")
|
||||
try:
|
||||
f.write(line + "\n")
|
||||
except Exception as e:
|
||||
logger.warn("Error: {}".format(e))
|
||||
|
||||
# Stdout of executed commands
|
||||
with open(f"{working_dir}log-cmdoutput.log", "w") as f:
|
||||
|
||||
Reference in New Issue
Block a user