Skip to content

Instantly share code, notes, and snippets.

antitree

Block or report user

Report or block antitree

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@antitree
antitree / authy.js
Last active Feb 4, 2019
Authy iterations
View authy.js
function(t, e, n) {
var r, o;
r = [n(34), n(35)], o = function(t, e) {
var n;
return n = function() {
function n() {}
return n.prototype.changePhone = function(n, r, o, i) {
var s, a;
a = e.get().userId, s = "/json/users/" + a + "/change_phone/request", t.postAuth(s, {
View graph.R
library(ggplot2)
load_trace <- function(filename, nickname, proto, n) {
x <- read.csv(filename)
x$ts <- x$ts - min(x$ts)
x$sz <- x$size * ifelse(x$dir=="up", 1, -1)
data.frame(x, nickname=nickname, proto=proto, n=n)
}
# derive nickname, proto, and n columns from the filename.
@antitree
antitree / com.google.android.apps.maps
Created Dec 11, 2016
List of Android maps (real) permissions
View com.google.android.apps.maps
Packages:
Package [com.google.android.apps.maps] (b364692):
userId=10077
sharedUser=SharedUserSetting{40bb50d com.google.android.apps.maps/10077}
pkg=Package{3cd2ad3 com.google.android.apps.maps}
codePath=/data/app/com.google.android.apps.maps-2
resourcePath=/data/app/com.google.android.apps.maps-2
legacyNativeLibraryDir=/data/app/com.google.android.apps.maps-2/lib
primaryCpuAbi=arm64-v8a
secondaryCpuAbi=null
View gist:5f0c2dec75173d3fd382
Nov 23, 2015 21:29:38:984 (freenet.keys.FreenetURI, Datastore checker(11), MINOR): Created from components (USK): USK@JWTT8rDSrYNQkv73wSww6fhYC9Z6AzUREzDO8xJCluI,Lpt8uGZy~y2UtMwMOwTjsdQHbAbjduxFBFFqZI5TGfI,AQACAAE/CENO-signaler/1
Nov 23, 2015 21:29:38:984 (freenet.client.async.ClientRequestScheduler, Datastore checker(11), MINOR): finishRegister for freenet.client.async.USKFetcher$DBRFetcher@7ceceac3 for freenet.client.async.USKFetcher@37c9d2fe for freenet.keys.USK@26ad91e3:USK@JWTT8rDSrYNQkv73wSww6fhYC9Z6AzUREzDO8xJCluI,Lpt8uGZy~y2UtMwMOwTjsdQHbAbjduxFBFFqZI5TGfI,AQACAAE/CENO-signaler/1 anyValid=true persistent=false
Nov 23, 2015 21:29:38:984 (freenet.keys.FreenetURI, Datastore checker(11), MINOR): Created from components (USK): USK@JWTT8rDSrYNQkv73wSww6fhYC9Z6AzUREzDO8xJCluI,Lpt8uGZy~y2UtMwMOwTjsdQHbAbjduxFBFFqZI5TGfI,AQACAAE/CENO-signaler/1
Nov 23, 2015 21:29:38:984 (freenet.keys.FreenetURI, Datastore checker(11), MINOR): Created from components (USK): USK@JWTT8rDSrYNQkv73wSww6fhYC9Z6AzUREzDO8xJCluI,Lpt8uG
@antitree
antitree / Winning v1
Last active Aug 29, 2015
First attempt at the script
View Winning v1
import requests
import time
import sys
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0',
'Referer': 'http://www.interlockroc.org'
}
#for i in range(1000000):
print("Starting Winning v1")
@antitree
antitree / gist:768e1beb1f2d7d9ee9eb
Last active Aug 29, 2015
Simple example of a Tor script that leaks DNS
View gist:768e1beb1f2d7d9ee9eb
import requesocks
import BeautifulSoup as bs
base_url = 'http://treebind.antitree.com:8000'
test_url = base_url + '/test'
session = requesocks.session()
session.proxies = {'http': 'socks5://127.0.0.1:9050'}
print("Getting: %s" % test_url)
r = session.get(test_url)
s = bs.BeautifulSoup(r.text)
View keybase.md

Keybase proof

I hereby claim:

  • I am antitree on github.
  • I am antitree (https://keybase.io/antitree) on keybase.
  • I have a public key whose fingerprint is 0B2C 9595 A8E0 3683 A81F E3EE 68B1 A274 584F 01E8

To claim this, I am signing this object:

@antitree
antitree / Halloween_Brain0.1.pde
Last active Sep 7, 2018
Example Arduino code to run a neopixel for my Halloween brain
View Halloween_Brain0.1.pde
#include <Adafruit_NeoPixel.h>
//Hacked from the original Adafruit library demo
#define PIN 6 //my control pin
// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
@antitree
antitree / gist:5905486
Created Jul 1, 2013
Longify without making a direct connection
View gist:5905486
import requests
def longify(url):
try:
r = requests.get(url, allow_redirects=False)
if r.status_code = 301:
lurl = r.headers['location']
return lurl
return url
except:
@antitree
antitree / Tweetcollect.py
Created Jun 22, 2013
Example of using the 1.1 twitter API to collect tweets for a user since they shut down the 1.0 API.
View Tweetcollect.py
#!/usr/bin/python
#
# Author: Antitree
# Description: Example of using the new Twitter 1.1 API to
# collect all the tweets from a user.
#
# Derived from tsileo
# https://gist.github.com/tsileo/4637864/raw/9ea056ffbe5bb88705e95b786332ae4c0fd7554c/mytweets.py
#
You can’t perform that action at this time.