Skip to content

Instantly share code, notes, and snippets.

View envy's full-sized avatar
🦄

Nico Weichbrodt envy

🦄
View GitHub Profile
@envy
envy / unquarantine.py
Created January 2, 2020 13:11
Windows 10 Defender Python3 script to restore a file from quarentine
# Copyright (C) 2015 KillerInstinct, Optiv, Inc. (brad.spengler@optiv.com)
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
# Updated to Python 3 by envy
import os
import struct
import hashlib
from binascii import crc32
@envy
envy / test.c
Created December 16, 2018 14:58
knx ieee754 float test
// gcc -o test test.c -lm
#include <stdint.h>
#include <stdio.h>
#include <math.h>
static float data_to_4byte_float(uint8_t *data)
{
union {
float f;
@envy
envy / gist:91cb29370cbf8414c58402014ff4f8df
Created November 2, 2017 08:59
ipmitool sdr output for Dell servers
Output of a server with IDRAC 6:
Temp | disabled | ns
Temp | disabled | ns
Temp | disabled | ns
Ambient Temp | disabled | ns
Temp | disabled | ns
Ambient Temp | disabled | ns
Ambient Temp | 23 degrees C | ok
Planar Temp | disabled | ns
CMOS Battery | 0x00 | ok
@envy
envy / sgx_avail.c
Created August 14, 2015 13:39
Check SGX availability
#include <stdio.h>
/*
* This program checks SGX availability by checking CPUID
* Relevant spec sections: 1.7 (and 1.7.1 and 1.7.2)
* 2015-08-14 Nico Weichbrodt
*/
/*
* Helper function for CPUID querying
@envy
envy / Program.cs
Created July 2, 2012 22:39
cleans objs by removing degenerated triangles
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
namespace objCleaner
{
internal class Program
{
private static void Main(string[] args)