Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
♥️Ⓐλ😼

David Stainton david415

💭
♥️Ⓐλ😼
View GitHub Profile
View rebuttal of befuddled privacy technologist
Rebuttal of "[36C3] The ecosystem is moving"
============================================
abstract
--------
Moxie is wrong about a lot of things in this talk. Here I'll discuss
@david415
david415 / analytics.go
Created December 17, 2019 05:13
analytics.go
View analytics.go
package main
import (
"bufio"
"flag"
"fmt"
"io"
"os"
"sort"
"strconv"
@david415
david415 / q1strings.go
Created December 17, 2019 01:03
Q1 Strings
View q1strings.go
package main
import (
"bytes"
"fmt"
)
func isAlmost(x, y []byte) bool {
skipped := false
View catshadow testnet
[UpstreamProxy]
Type = "socks5"
Network = "tcp"
Address = "127.0.0.1:9050"
[Logging]
Disable = false
Level = "DEBUG"
File = "/home/user/catshadow_testnet/bob/catshadow.log"
@david415
david415 / gist:bb9918f199c009dabdd9e64ce889a63d
Created April 5, 2019 01:44
rust hyperlocal attempt at low level server unix socket listener.. fail not working
View gist:bb9918f199c009dabdd9e64ce889a63d
extern crate hyper;
extern crate hyperlocal;
use std::os::unix::net::UnixListener;
use hyper::{Response, rt::{Future, Stream}, service::service_fn};
use hyperlocal::server::{Http, Incoming};
fn main () {
if let Err(err) = std::fs::remove_file("hyperlocal_test_echo_server_2.sock") {
@david415
david415 / gist:e3966d18db55c193c418059bca71af5e
Created April 5, 2019 01:41
rust server listen on unix domain socket
View gist:e3966d18db55c193c418059bca71af5e
use std::thread;
use std::os::unix::net::{UnixStream, UnixListener};
fn handle_client(stream: UnixStream) {
// ...
}
View packet switching network reading list
Congestion Control
[E2ECONGESTION] Floyd, S., Fall, K.,
"Promoting the Use of End-to-End Congestion Control in the Internet",
IEEE/ACM Transactions on Networking, May 1999,
<https://www.icir.org/floyd/papers/collapse.may99.pdf>.
[RFC896] Nagle, J., "Congestion Control in IP/TCP Internetworks",
@david415
david415 / detect_tor_network_partitions
Last active September 22, 2017 01:52
how to scan the tor network for partitions
View detect_tor_network_partitions
how to scan the tor network for partitions
------------------------------------------
1. setup a machine running Tor and expose its control port as either a tcp port or unix domain socket
with no authentication
*edit* /etc/tor/torrc
blah blah easy rtfm
@david415
david415 / mixnet_graph.dot
Last active February 18, 2017 22:01
mixnet logo
View mixnet_graph.dot
# dot mixnet_graph.dot -Tpng -o rgb_mix.png -Tpng -o rgb_mix.png
digraph rgb_mixnet {
ratio = fill;
size="3,3";
rank = min;
nodesep=1.4;
subgraph cluster0 {
#rankdir = RL;
node [shape = doublecircle, fillcolor=black, style="filled", width=1,height=1]; e;
node [shape = circle, fillcolor="black", width=1, height=1];
@david415
david415 / gist:e541d4f1d70a7e06161128490f52462b
Created December 14, 2016 06:11
rust lioness error handling?
View gist:e541d4f1d70a7e06161128490f52462b
extern crate crypto;
use std::error::Error;
use std::fmt;
use crypto::mac::Mac;
use crypto::blake2b::Blake2b;
const LIONESS_KEY_SIZE: u32 = 208;