Skip to content

Instantly share code, notes, and snippets.

View mr-tz's full-sized avatar

Moritz mr-tz

View GitHub Profile
# Copyright (C) 2023 Mandiant, Inc. All Rights Reserved.
import sys
import struct
import logging
import argparse
import pefile
logger = logging.getLogger(__name__)
rule:
meta:
name: embed dependencies as resources using Fody/Costura
namespace: executable/resource
authors:
- @mr-tz
scope: file
features:
- or:
- class: ProcessedByFody
@mr-tz
mr-tz / append_anterior_cmt.py
Created January 29, 2021 11:57
add FLARE to your IDB file details
import idc
def append_file_details(cmt):
va0 = idc.next_head(0)
# get number of free line
n = 0
while idc.get_extra_cmt(va0, idc.E_PREV + n):
n += 1