Skip to content

Instantly share code, notes, and snippets.

View tuxuser's full-sized avatar
🎯
Focusing

tuxuser tuxuser

🎯
Focusing
View GitHub Profile
#include <stdio.h>
#include <windows.h>
#include <bcrypt.h>
#define NT_SUCCESS(x) (x == 0)
#define STATUS_SUCCESS ((NTSTATUS)0)
#define STATUS_ERROR ((NTSTATUS)1)
NTSTATUS SaveFile(PUCHAR dataBlob, ULONG dataSz, LPCWSTR filePath)
{
@tuxuser
tuxuser / symchk.py
Last active May 24, 2018 13:02
PDB and PE download
#!/usr/bin/env python
"""
Based on pdb_downloader.py v0.1 by Steeve Barbeau
"""
import sys
import argparse
import requests
import pefile
import struct
@tuxuser
tuxuser / ms_cv.py
Last active May 8, 2017 22:00
MS Correlation Vector (MS-CV)
'''
Microsoft Correlation Vector, used for telemetry purposes by Microsoft Web APIs
Source: https://github.com/Microsoft/Telemetry-Client-for-Android/blob/master/AndroidCll/src/main/java/com/microsoft/cll/android/CorrelationVector.java
'''
import re
import math
import random
class MsCorrelationVector(object):
MAX_CORRELATION_VECTOR_LENGTH = 20