This file contains 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
#include <Windows.h> | |
#include <ImageHlp.h> | |
#include <strsafe.h> | |
#include "loaded_psp_drivers.h" | |
#include <set> | |
#include <string> | |
#include <algorithm> | |
#pragma comment(lib, "crypt32.lib") |
This file contains 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 pefile, struct, sys | |
if len(sys.argv) != 2: | |
print(f"Strip your personal compile info from Exe Files by aaaddress1@chroot.org") | |
print(f"Usage: {sys.argv[0]} [path/to/exe]") | |
sys.exit(-1) | |
# Rewrite from pefile: https://github.com/erocarrera/pefile/blob/593d094e35198dad92aaf040bef17eb800c8a373/pefile.py#L3402 | |
def mask_myRichHdr(in_pefile): | |
DANS = 0x536E6144 # 'DanS' as dword |
This file contains 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
function Scan-LOLDrivers { | |
param( | |
[Parameter(Mandatory = $true)] | |
[string]$path | |
) | |
Add-Type -TypeDefinition @" | |
using System; | |
using System.Security.Cryptography; | |
using System.Security.Cryptography.X509Certificates; |
This file contains 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) 2022 Evan McBroom | |
// If you are using Visual Studio, you will need to disable the "Edit and Continue" feature. | |
// Prng based off of Parker Miller's | |
// "Multiplicative Linear Congruential Generator" | |
// https://en.wikipedia.org/wiki/Lehmer_random_number_generator | |
namespace mlcg { | |
constexpr uint32_t modulus() { | |
return 0x7fffffff; | |
} |