Skip to content

Instantly share code, notes, and snippets.

@NSkelsey
NSkelsey / get_exit_relays.py
Last active February 14, 2017 16:42
Retrieves the list of exit relays from a local tor daemon. Requires twisted and txtorcon. Adapted from txtorsocks/examples/get_info.py
#!/usr/bin/env python
import sys
import io
from twisted.internet import reactor, defer
from txtorcon import TorInfo, build_local_tor_connection, Router
def error(x):
print "ERROR", x
#!/bin/bash
set -x
set -e
TT=`tty`
BASE='http://localhost:8082'
printf 'Logging into service %s\n\n' $BASE
@NSkelsey
NSkelsey / NASA-error-log-08-09-17.txt
Created August 16, 2017 21:29
A processed version of the error log the National Super Alliance published on Aug 9th 2017
08/03/2017 00:37:55,8erver,Jnknown,A self—generated certificate was successfully loaded for encryption.
08/03/2017 00:41:52, spid57,.nknown, Setting database option ANSI_ PADDING to OFF for database IEBC_ PRESIDENTIAL2017.
08/03/2017 04:00:52,5pid54,anknown,Setting database option MULTI_USER to UN for database IEBC_KITUI_COUNTY.
08/03/2017 04:02:19,5pid54,anknown,Setting database option COMPATIBILITY_LEVEL to 100 for database IEBC_NYERI_COUNTY.
08/03/2017 04:02:40,5pid54,snknown,Setting database option ANSI_NULLS to OFF for database IEBC_KIRINYAGA_COUNTY.
08/03/2017 04:02:58, spid54,snknown, Setting database option ANSI_ PADDING to OFF for database IEBC_ MURANGA_ COUNTY.
08/03/2017 04:07:16,5pid53,anknown,Setting database option DISABLE_BROKER to ON for database IEBC_NAROK_COUNTY.
08/03/2017 04:10:25,5pid53,snknown,Setting database option ARITHABORT to OFF for database IEBC_MIGORI_COUNTY.
08/03/2017 09:05:23,Logon,Unknown,Login failed for user 'msando'. Reason: The password of the account must be changed. [CL
@NSkelsey
NSkelsey / bitcoin.conf
Created October 10, 2014 20:57
supervisor bitcoin configuration
[program:bitcoin]
command = /usr/local/bin/bitcoind --datadir=/home/ubuntu/.bitcoin
user = ubuntu
directory = /home/ubuntu/
startsecs=20
autostart=true
autorestart=true
startretries=1
redirect_stderr=true
logfile_maxbytes = 50MB
@NSkelsey
NSkelsey / periodic_sender.go
Last active June 11, 2019 16:54
Periodic Pointcoin sender
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"github.com/PointCoin/btcnet"
"github.com/PointCoin/btcrpcclient"
@NSkelsey
NSkelsey / evil_user_agent.zeek
Created September 22, 2020 15:26
Simple zeek script
@load base/protocols/http
module EvilUserAgents;
export {
const evil_user_agents = /curl\/[0-9.]+/ &redef;
}
event HTTP::log_http(rec: HTTP::Info)
{