Skip to content

Instantly share code, notes, and snippets.

View brammittendorff's full-sized avatar
😸
Check the facts, expose those cats

Bram Mittendorff brammittendorff

😸
Check the facts, expose those cats
View GitHub Profile
@brammittendorff
brammittendorff / README.md
Created March 16, 2016 11:38 — forked from Potherca/debug-bash-scripts.md
Sometimes you want to be able to debug a bash script. This gist gives an example of how to do this. Feedback welcome!

Introduction

Sometimes you want to be able to debug a bash script. Usually the -x option will suffice but sometimes something more sophisticated is needed.

In such instances using the DEBUG trap is often a good choice.

Attached to this gist is a example script to demonstrate how such a thing would work.

@brammittendorff
brammittendorff / JSRat.ps1
Created January 24, 2016 20:08
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.
@brammittendorff
brammittendorff / whistle-encode.pl
Created January 4, 2016 12:16 — forked from windytan/whistle-encode.pl
whistle encoder
# windytan's pea whistle encoder
# http://www.windytan.com/2015/10/pea-whistle-steganography.html
use warnings;
use strict;
my $data = $ARGV[0] // "OHAI!";
my $outfile = "whistle.wav";
my $fs = 44100; # sample rate
my $fc = 2600; # whistle pitch