feature: decoy in shellcode

This commit is contained in:
Dobin
2024-05-20 08:36:16 +01:00
parent 9bb8afb6c0
commit 87cb4bfe5b
4 changed files with 26 additions and 7 deletions
+7 -1
View File
@@ -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: