Skip to content

Instantly share code, notes, and snippets.

<?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" />
### 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:
@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]:
#!/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 / 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
@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 / nsStandardUrlParse.py
Created April 20, 2018 18:22
Script to parse the output of MOZ_LOG="nsStandardURL:5"
#!/usr/bin/env python
import re
import sys
class URL:
def __init__(self, ptr):
self.ptr = ptr
self.count = 0
self.url = ""
@tomrittervg
tomrittervg / mmseparate.py
Last active April 6, 2021 13:57
Message Manager Logging
#!/usr/bin/env python3
# First MOZ_LOG="MessageManager:5" ./mach run > mmlog.txt 2>&1
# Then ./mmseparate.py mmlog.txt
import os
import re
import sys
import time
import pathlib
@tomrittervg
tomrittervg / th-query.py
Created December 4, 2018 16:01
Treeherder Query - for programatically searching try pushes matching criteria
#!/usr/bin/env python
import os
import pdb
import json
import datetime
import requests
import argparse
COUNT=500
Normal situation
blabla.onion Tor Tor Browser
<user asks for blabla.onion>
<--- SOCKS CONNECT to blabla.onion ---
<Tor fetches descriptor>