This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
remote_ip="$1" | |
: ${remote_user:=root} | |
: ${key_type:=aes-ctr} | |
: ${key_len:=$((288*2/8))} | |
: ${spi_cache_dir:=$HOME/.cache/spi} | |
test -n "$remote_ip" || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
test -n "$SSH_CONNECTION" || { | |
echo "No SSH_CONNECTION defined." >&2 | |
echo "Example usage: ssh host dumpcap -P -i eth0 -f '\"not \$(${0##*/})\"' -w - | wireshark -k -i -" >&2 | |
exit 1 | |
} | |
read h1 p1 h2 p2 <<EOF | |
$SSH_CONNECTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import socket, os, select, struct | |
import errno | |
import logging | |
from logging import info, warn, error | |
logging.root.setLevel(logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from bottle import Bottle, response, request, HTTPResponse | |
import subprocess | |
import os | |
import json | |
import sys | |
ADB=os.environ.get("ADB", "adb") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# License: Public Domain | |
import os, sys | |
import re, struct, json, random, datetime, logging | |
import subprocess, signal | |
import socket, ssl, select | |
import cStringIO as StringIO | |
import warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from zipfile import ZipFile | |
import sys | |
import getopt | |
import os | |
import shutil | |
import getpass | |
default_enclist=["cp932", "utf8"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import psycopg2, os, sys | |
import json | |
import pprint | |
whois_table=os.environ.get("WHOIS_TABLE", "whois") | |
dsn=os.environ.get("WHOIS_DSN", "") | |
check_table_sql="select 1 from %s where 1=0"%(whois_table,) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"os/signal" | |
"log" | |
"github.com/flashmob/go-guerrilla/mail" | |
"strings" | |
"github.com/flashmob/go-maildir" | |
"fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"crypto/sha1" | |
"crypto/tls" | |
"crypto/x509" | |
"flag" | |
"io" | |
"io/ioutil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import apt | |
import sys | |
import os | |
def print_deb_deps(name, recurse=1, prep="", _processed=None): | |
if _processed is None: _processed={} | |
print "%s%s:"%(prep, name), | |
sys.stdout.flush() |