Skip to content

Instantly share code, notes, and snippets.

View azet's full-sized avatar
🔐
hacking audio devices, diving caves, breaking codes

Aaron Zauner azet

🔐
hacking audio devices, diving caves, breaking codes
View GitHub Profile
@azet
azet / chk_pgsql
Last active March 25, 2019 13:48
keepalived 'track_script' for PostgreSQL 'bgw_replstatus' Plugin
#!/usr/bin/env python
#
# keepalived 'track_script' for PostgreSQL 'bgw_replstatus' Plugin
#
# Author: Aaron Zauner <azet@azet.org>
# License: CC0 1.0 Public Domain (https://creativecommons.org/publicdomain/zero/1.0/)
#
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@azet
azet / QSickChill.sh
Last active February 8, 2019 00:35
QSickChill git without https (tlsv1 unsupported by GitHub, https checkout doesn't work on old QNAP Appliances) - howto provided in the comment section
#! /bin/sh
QPKG_NAME=QSickChill
QPKG_DIR=$(/sbin/getcfg $QPKG_NAME Install_Path -f /etc/config/qpkg.conf)
PID_FILE="$QPKG_DIR/config/sickchill.pid"
DAEMON_OPTS="SickBeard.py --datadir $QPKG_DIR/config --daemon --pidfile $PID_FILE --port 7073"
# Determin Arch
ver="none"
@azet
azet / opkg-upgrade-all-installed.sh
Created December 15, 2018 20:55
[OpenWRT] opkg upgrade all installed packages (alias)
alias 'opkg-upgrade'='for x in $(opkg list-upgradable | awk "{print $1}"); do opkg upgrade $x ; done'
Date: Tue, 5 Apr 2016 16:11:42 +0200
From: Aaron Zauner <azet@azet.org>
To: redacted <redacted@arm.co.uk>
Subject: Re: LinkedIn
Message-ID: <20160405160645.acd82bb63a@64bc86c3c218530>
References: <A3BC8318FB5EB6449FE735A962284AC30423B30C4DBB@V-ARM-MAIL1.arm1.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0"
Content-Disposition: inline
In-Reply-To: <A3BC8318FB5EB6449FE735A962284AC30423B30C4DBB@V-ARM-MAIL1.arm1.com>
@azet
azet / cros_crouton-chroots-azet
Last active November 1, 2018 12:27
standard crouton/chroot setup on my chromebook pixel (2015)
#!/usr/bin/env bash
set -e -o pipefail
# if you just want/need to update run this script with (.... -u)
#[[ -z ${1} ]] && 1=""
[[ ${USER} == "chronos" ]] || exit 1
cd ~/Downloads
curl -O https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton
@azet
azet / tattoo.tex
Last active August 18, 2017 02:55
LaTeX source for my "Fermat's little theorem"-Tattoo (yes, it ain't generalized - on purpose)
%% PoC* by: Karo Kawalle
%% PoC* URL: https://twitter.com/a_z_e_t/status/898274928515874816
%% Author: Aaron Zauner <azet@azet.org> [Theorem: Pierre de Fermat]
%% Date: 17.08.2017 [18.10.1640]
%% License: CC0 1.0 Universal [Public Domain Dedication]
%% Depends: `texlive-full latexmk` [on deb/apt based distros]
%% Build: `latexmk -pdf tattoo.tex`
%% * PoC = "Proof of Concept" (abbreviation) [i.e. implementation]
\documentclass[a4paper]{letter}
\usepackage{quattrocento, microtype, mathtools}
@azet
azet / random_part.c
Created August 6, 2017 13:13
Splevin ARX
static void fast_mix(struct fast_pool *f)
{
__u32 a = f->pool[0], b = f->pool[1];
__u32 c = f->pool[2], d = f->pool[3];
a += b; c += d;
b = rol32(b, 6); d = rol32(d, 27);
d ^= a; b ^= c;
a += b; c += d;
@azet
azet / ntopng_cheatsheet.md
Last active August 5, 2017 19:54
ntopng cheat sheet

ntopng Cheat Sheet

  • sudo ntopng -v2 -i any -n1 -w 8080 -ue
  • -e = daemon
  • -u = no promiscous mode
  • -i zc:eth0 = PF_RING zerocopy
  • -n1 = DNS: full name resolution, everywhere

/etc/ntopng/ntopng.conf

/etc/ntopng/ntopng.conf 
@azet
azet / SHA2017-SCAN.md
Last active August 6, 2017 19:31
IPv4-wide Scans @ SHA2017

IPv4-wide Scans @ SHA2017

What? -- Outline & General Information

We're setting up infrastructure to utilize the available bandwidth at the SHA2017 hacker camp in the Netherlands. Participation is more than welcome! This doesn't mean you have to be at the camp physically -- you may suggest scanning proposals/ideas (see below) & do your research remotely via ssh(1) or have someone implement and run your idea at the camp. There will be a workshop on internet-wide scanning - we'll present our results and teach willing participants what we know, have learned scanning the internet in the past, from others and during the camp. We will also let the participants run their own scans -- if we feel they're valuable, ethical and non-disruptive.

*Full attribution (professional, academic & otherwise) will go to the original authors of ideas and implementers of scans run d

@azet
azet / letter.tex
Last active June 30, 2017 12:05
letter LaTeX template
\documentclass[11pt, a4paper]{scrlttr2}
\usepackage{gentium}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[english]{babel}
\usepackage[english=usenglishmax]{hyphsubst}
\usepackage{mathtools}
\usepackage{cryptocode}
\usepackage{algorithmic}