This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2023 Mandiant, Inc. All Rights Reserved. | |
import sys | |
import struct | |
import logging | |
import argparse | |
import pefile | |
logger = logging.getLogger(__name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule: | |
meta: | |
name: embed dependencies as resources using Fody/Costura | |
namespace: executable/resource | |
authors: | |
- @mr-tz | |
scope: file | |
features: | |
- or: | |
- class: ProcessedByFody |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |