Skip to content

Instantly share code, notes, and snippets.

View david415's full-sized avatar
💭
♥️Ⓐλ😼

David Stainton david415

💭
♥️Ⓐλ😼
View GitHub Profile
@david415
david415 / gist:cbd6342db0894ba98f94
Last active August 29, 2015 14:05
Tahoe-LAFS APT mirror
cat <<EOT>mirror.list
set base_path /home/amnesia/apt-mirror
set defaultarch amd64
set nthreads 20
set _tilde 0
deb http://deb.mempo.org/debian wheezy main
clean http://deb.mempo.org/debian
EOT
sudo apt-get update
sudo apt-get install apt-mirror
@david415
david415 / gist:7673228b18df08cf2f1b
Last active August 29, 2015 14:05
tails tahoe demo info
friends_shared URI:DIR2-RO:4hnsmpmtt6bsvaringrr64jykm:3bardkdce373o7qhlmqqk7qllboxztsvmfggesyo2fnnjidnnbtq
http://zy2w6qd4jhqfi7eh.onion/uri/URI%3ADIR2-RO%3A4hnsmpmtt6bsvaringrr64jykm%3A3bardkdce373o7qhlmqqk7qllboxztsvmfggesyo2fnnjidnnbtq/
URI:DIR2:rav6x72e35vnzdhvdnre62v5xy:3bardkdce373o7qhlmqqk7qllboxztsvmfggesyo2fnnjidnnbtq
@david415
david415 / gist:f04280cbb155b7c01411
Created September 4, 2014 16:04
old tails ferm.conf
# -*- mode: conf[space] -*-
#
# Configuration file for ferm(1).
#
# IPv4
domain ip {
table filter {
chain INPUT {
policy DROP;
@david415
david415 / gist:7eca8611853caec30467
Last active August 29, 2015 14:08
tahoe-lafs onion grid client config
[node]
nickname = client
web.reveal_storage_furls = true
# use this addr/port in your webrowser to interact with your local tahoe-lafs gateway
web.port = tcp:7657:interface=127.0.0.1
web.static = public_html
tub.location = client.fakelocation:1
[client]
introducer.furl = pb://ifwpslh5f4jx2s3tzkkj4cyymrcxcunz@bvkb2rnvjbep4sjz.onion:58086/introducer
@david415
david415 / gist:bfd03354219f1ad317b6
Created December 10, 2014 00:39
mount/umount encrypted usb
cryptsetup luksOpen /dev/sdb1 secretStash
mount /dev/mapper/secretStash /mnt
# and umount
umount /mnt
cryptsetup luksClose secretStash
@david415
david415 / gist:2a579ad456c3502e8aed
Created March 26, 2015 19:23
arch-arm-TBB-PKGBUILD
# Maintainer: cypherpunks
# Contributor: David Stainton <dstainton415@gmail.com>
pkgname='tor-browser-en'
pkgver='4.0.5'
pkgrel=1
pkgdesc='Tor Browser Bundle: Anonymous browsing using firefox and tor'
url='https://www.torproject.org/projects/torbrowser.html.en'
sha1sums=()
license=('GPL')
source=('git+https://git.torproject.org/tor-browser.git#revision=fc034df7fb9c9cab6f726e1b5b4cecd1db9c991e')
@david415
david415 / gist:d38936fd3e93168ae221
Created June 10, 2015 23:53
FreeBSD Golang sniffer using BPF
package main
import (
"encoding/hex"
"fmt"
"syscall"
)
func main() {
enable := 1
@david415
david415 / gist:a3a5b5adde8bba7d6be5
Created June 28, 2015 00:31
leekspin make me an onion
diff --git a/leekspin/crypto.py b/leekspin/crypto.py
index c759b2b..262a30f 100644
--- a/leekspin/crypto.py
+++ b/leekspin/crypto.py
@@ -280,6 +280,22 @@ def generateOnionKey():
return (secretOnionKey, publicOnionKey, onionKeyLine)
+def fufu():
+ from Crypto.Util.asn1 import DerSequence
@david415
david415 / gist:120f157f62d20b11e39f
Last active November 14, 2015 19:29
secret onion git http repo! fuck github. no masters. no sys admins. only the secret police know how cool i am.
virtualenv virtenv-txtorcon
. ./virtenv-txtorcon/bin/activate
pip install txtorcon
export project=myproject
export secret=`pwgen 64`
mkdir -p public_html/$secret
cp -a $project public_html/$secret
touch public_html/index.html
@david415
david415 / scapy tcp header fu
Created September 30, 2013 04:58
hiding messages in tcp header using scapy; retrieving messages from iptables LOG...
#!/usr/bin/env python
import binascii
from scapy.all import TCP, IP
ip = IP(dst="192.155.82.5")
tcp = TCP(dport = 6200,
flags = 'S',
seq = 32456,
ack = 32456,
window = 32456,