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
# Ignore self-certs | |
if (-not ([System.Management.Automation.PSTypeName]'ServerCertificateValidationCallback').Type) | |
{ | |
$certCallback = @" | |
using System; | |
using System.Net; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; | |
public class ServerCertificateValidationCallback | |
{ |
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
// Adapted from https://www.seanet.com/~bugbee/crypto/sosemanuk/ | |
public class Sosemanuk | |
{ | |
public Sosemanuk(byte[] key, byte[] iv) | |
{ | |
BuildAlphas(); | |
SetKey(key); | |
SetIV(iv); | |
} |
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 zlib, sys | |
def get_id(mac): | |
mac = int(mac, 16).to_bytes(6, 'big') | |
return checksum(mac, True) | |
def checksum(input, compression=False): | |
v3 = zlib.crc32(input, 0xDEADBEEF) | |
v4 = zlib.crc32(input, v3) |
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
using System.Collections.Generic; | |
using System.IO; | |
// https://github.com/snemes/aplib/blob/master/aplib.py | |
public class APLib | |
{ | |
protected uint Tag; | |
protected int BitCount; | |
protected uint GetBit(Stream source) |
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
@ECHO OFF | |
SETLOCAL EnableDelayedExpansion | |
FOR /F "tokens=1,2 delims=#" %%A IN ('"prompt #$H#$E# & ECHO ON & FOR %%B IN (1) DO REM"') DO SET "DEL=%%A" | |
:: Elevation does not work in XP | |
VER | FIND /I "XP" > NUL | |
IF ERRORLEVEL 1 CALL :CHECK-ELEVATE | |
:: Process arguments |
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 sys, struct, base64, argparse | |
def gen_id_from_guid(guid: str) -> str: | |
checksum = checksum_string(guid + '\0') | |
b64 = base64.b64encode(checksum.to_bytes(8, 'little'))[0:9] | |
return b64.decode('utf-8').replace('+', 'x').replace('/', 'i').replace('=', 'z') | |
def gen_checksum_from_bytes(blob: str) -> str: | |
blob = bytearray.fromhex(blob) | |
return checksum(blob, len(blob)) |
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
""" | |
Extract GlobeImposter 2.0 Ransomware Config | |
Author: @demonslay335 | |
""" | |
import os | |
import sys | |
import binascii | |
import re | |
import hashlib |
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 os | |
import sys | |
import time | |
import winappdbg | |
import traceback | |
class MyEventHandler(winappdbg.EventHandler): | |
last_alloc_memory = 0 |
OlderNewer