Skip to content

Instantly share code, notes, and snippets.

View D4stiny's full-sized avatar
🏠
Working from home

Bill Demirkapi D4stiny

🏠
Working from home
View GitHub Profile
@D4stiny
D4stiny / gist:c5309533b3b07cb5f6067757e449a759
Created January 25, 2021 00:01
Just a hash for later...
3C6F60C412CCB3AADBF09887C82D50A0B1DA250445EB8970D86087C086CDF48C
@D4stiny
D4stiny / Macro_Scrambler.py
Created September 16, 2020 07:08
Corrupts macro documents to prevent static analysis by anti-virus while still allowing for the document to be opened in Microsoft Word.
import sys
import zipfile
import random
def get_zip_file_header_offset(zip_filename, target_filename):
"""
Parse the file header offset for a target_filename.
:param zip_filename: The name of the zip file to read.
:param target_filename: The name of the file to find the header of.