Skip to content

Instantly share code, notes, and snippets.

@tomrittervg
tomrittervg / dwarf_constants.py
Last active May 22, 2018 13:32
Really rough and ugly code to parse a PE File and DWARF Information. Doesn't support a ton of stuff, only supports enough to do the one thing I needed it to do.
#!/usr/bin/env python
DW_CHILDREN_no = 0x00
DW_CHILDREN_yes = 0x01
DW_LANGs = {}
DW_LANGs[0x0004] = 'DW_LANG_C_plus_plus'
@tomrittervg
tomrittervg / download_tc_logs.py
Last active November 2, 2021 17:10
Script to download all the logs for all the tasks in a given TaskCluster Group ID
#!/usr/bin/env python3
import os
import json
import requests
import argparse
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
#!/usr/bin/env bash
#
# american fuzzy lop - corpus minimization tool
# ---------------------------------------------
#
# Written and maintained by Michal Zalewski <lcamtuf@google.com>
#
# Copyright 2014, 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@tomrittervg
tomrittervg / gist:582dde1fb41bda2649fd
Created October 16, 2014 03:06
Tor Consensus Sim
#!/usr/bin/env python
class DirAuth:
def __init__(self, nickname):
self._nickname = nickname
self._trustedDirAuths = []
self._collectedVotes = set()
def setTrustedDirAuths(self, trustedDirAuths):
self._trustedDirAuths = trustedDirAuths
if self._nickname in [str(n) for n in self._trustedDirAuths]:
### Keybase proof
I hereby claim:
* I am tomrittervg on github.
* I am tomritter (https://keybase.io/tomritter) on keybase.
* I have a public key whose fingerprint is 8ACD 146E A94C EB12 E4EA 6915 66A1 0918 9B79 658F
To claim this, I am signing this object:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="420000" android:versionName="4.2" package="com.android.email"
xmlns:android="http://schemas.android.com/apk/res/android">
<original-package android:name="com.android.email" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_OWNER_DATA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />