fix
This commit is contained in:
2
gui.py
2
gui.py
@@ -13,7 +13,6 @@ TODO :
|
|||||||
- Good entropy
|
- Good entropy
|
||||||
- Good Section sizes
|
- Good Section sizes
|
||||||
- Add resources
|
- Add resources
|
||||||
- Code signing
|
|
||||||
- Change PE metadata (company, description, etc...)
|
- Change PE metadata (company, description, etc...)
|
||||||
- Random Windows API calls (help)
|
- Random Windows API calls (help)
|
||||||
|
|
||||||
@@ -21,6 +20,7 @@ Done :
|
|||||||
- RunPE
|
- RunPE
|
||||||
- Junk code
|
- Junk code
|
||||||
- Control flow
|
- Control flow
|
||||||
|
- Code signing
|
||||||
- IAT obfuscation (adding "normal" imports in addition to the others)
|
- IAT obfuscation (adding "normal" imports in addition to the others)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
5
sign.py
5
sign.py
@@ -56,8 +56,7 @@ def sign(filename) :
|
|||||||
certificate_data = cert_file.read()
|
certificate_data = cert_file.read()
|
||||||
|
|
||||||
# Load the .exe file to be signed
|
# Load the .exe file to be signed
|
||||||
exe_to_sign = 'sample_out.exe'
|
with open(filename, 'rb') as exe_file:
|
||||||
with open(exe_to_sign, 'rb') as exe_file:
|
|
||||||
exe_data = exe_file.read()
|
exe_data = exe_file.read()
|
||||||
|
|
||||||
# Compute the SHA-256 hash of the .exe file
|
# Compute the SHA-256 hash of the .exe file
|
||||||
@@ -78,7 +77,7 @@ def sign(filename) :
|
|||||||
with open(signed_exe_filename, 'wb') as signed_exe_file:
|
with open(signed_exe_filename, 'wb') as signed_exe_file:
|
||||||
signed_exe_file.write(signed_exe)
|
signed_exe_file.write(signed_exe)
|
||||||
|
|
||||||
print(f"Successfully signed {exe_to_sign}.")
|
print(f"Successfully signed {filename}.")
|
||||||
|
|
||||||
os.remove("selfsigned.crt")
|
os.remove("selfsigned.crt")
|
||||||
os.remove("private.key")
|
os.remove("private.key")
|
||||||
|
|||||||
Reference in New Issue
Block a user