Skip to content

Instantly share code, notes, and snippets.

View Elemecca's full-sized avatar

Sam Hanes Elemecca

  • BST Event Services
  • Reno, NV, USA
View GitHub Profile
@Elemecca
Elemecca / 00-README.md
Last active April 12, 2018 16:43
User script for the Discord web client that makes all embeds collapsible.

testing adding a readme

@Elemecca
Elemecca / theme.py
Created December 11, 2017 11:56
Dark theme for IDA Pro 7.0
import idaapi
from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QColor, QPalette
class theme_t(idaapi.plugin_t):
flags = idaapi.PLUGIN_FIX
help = ""
comment = ""
@Elemecca
Elemecca / keybase.md
Created March 22, 2015 05:07
Keybase.io Identity Proof

Keybase proof

I hereby claim:

  • I am elemecca on github.
  • I am elemecca (https://keybase.io/elemecca) on keybase.
  • I have a public key whose fingerprint is 7EB4 F2D2 C841 27D7 7822 4445 BE2E 6CB5 DC3F D519

To claim this, I am signing this object:

@Elemecca
Elemecca / 000_ca_certs.coffee
Created May 9, 2014 06:58
Hubot module which loads additional CA certificates into the Node trust store
# Description:
# 000_ca_certs monkey-patches the Node crypto module to load addtional
# CA certificates into the trust root so other modules can connect
# to sites with certs signed by a private CA
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_CA_CERTS
@Elemecca
Elemecca / hex_dump.lua
Created August 28, 2013 03:37
Lua function which creates a hex dump of a binary string.
function hex_dump (str)
local len = string.len( str )
local dump = ""
local hex = ""
local asc = ""
for i = 1, len do
if 1 == i % 8 then
dump = dump .. hex .. asc .. "\n"
hex = string.format( "%04x: ", i - 1 )
@Elemecca
Elemecca / burp_proxy_split.py
Created August 23, 2013 06:37
Splits Burp Proxy saved state files into individual files per request.
#!/usr/bin/python
import os
import sys
from xml.etree.ElementTree import iterparse
from datetime import datetime
import base64
if len( sys.argv ) != 2:
print 'usage: split <filename>\n'
@Elemecca
Elemecca / addlicense.sh
Created January 12, 2013 01:26
Prepends a license notice to a set of files.
#!/bin/bash
#
# addlicense.sh - prepends a license notice to a set of files
#
# Originally written by Sam Hanes <sam@maltera.com>.
# To the extent possible under law, the author has waived all copyright
# and related or neighboring rights in this work, which was originally
# published in the United States. Attribution is appreciated but not
# required. The complete legal text of the release is available at
# http://creativecommons.org/publicdomain/zero/1.0/
@Elemecca
Elemecca / pingterm.pl
Last active December 10, 2015 22:09
PingTerm - a remote shell for the Linksys RTP300 based on the ping tool exploit.
#!/usr/bin/env perl
#
# pingterm.pl - command-line interface to the ping hack on the RTP300
#
# Originally written by Sam Hanes <sam@maltera.com>.
# To the extent possible under law, the author has waived all copyright
# and related or neighboring rights in this work, which was originally
# published in the United States. Attribution is appreciated but not
# required. The complete legal text of the release is available at
# http://creativecommons.org/publicdomain/zero/1.0/
@Elemecca
Elemecca / email_export.pl
Created December 17, 2012 07:47
Exports mailbox configuration from the Webmasters.com control panel.
#!/usr/bin/env perl
use strict;
use warnings;
use POSIX qw(strftime);
use LWP::UserAgent ();
use LWP::ConnCache ();
use HTML::TreeBuilder ();
@Elemecca
Elemecca / update_license.pl
Created December 12, 2012 22:03
Simple Perl script to update license notices in source files.
#!/usr/bin/env perl
use strict;
use warnings;
use File::Temp qw( tempfile );
our $block_start = "--------- BEGIN LICENSE NOTICE ---------";
our $block_end = "---------- END LICENSE NOTICE ----------";
our @notice;