Skip to content

Instantly share code, notes, and snippets.

View JburkeRSAC's full-sized avatar

Jesse V. Burke JburkeRSAC

View GitHub Profile
@JburkeRSAC
JburkeRSAC / bitcoin_decode.py
Created November 1, 2016 22:17
decode bitcoin OP_RETURN
import sys
import pycurl
import struct
from binascii import unhexlify, crc32
import urllib2
transaction = str(sys.argv[1])
data = urllib2.urlopen("https://blockchain.info/tx/"+transaction+"?show_adv=true")
dataout = b''
atoutput = False
for line in data:
@JburkeRSAC
JburkeRSAC / hexdump.php
Created September 14, 2016 19:51
php implementation of hexdump on $argv[1] supplied file
<?php
function hex_dump($data, $newline="\n"){
static $from = '';
static $to = '';
static $width = 16; # number of bytes per line
static $pad = '.'; # padding for non-visible characters
if($from===''){
for($i=0; $i<=0xFF; $i++){
$from .= chr($i);
$to .= ($i >= 0x20 && $i <= 0x7E) ? chr($i) : $pad;
#!/bin/bash
sudo echo 'deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main' > /etc/apt/sources.list.d/ubuntuzilla.list
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
sudo apt-get update
sudo apt-get remove iceweasel icedove
sudo apt-get install firefox thunderbird
alignment top_right
background yes
border_width 1
cpu_avg_samples 2
default_color 2dff24
color0 0077FF
default_outline_color 0077FF
default_shade_color 0077FF
double_buffer yes
draw_borders no
@JburkeRSAC
JburkeRSAC / sweepscan.sh
Created June 13, 2016 15:00
$sweepscan.sh <subnet> > uplist.txt && nmap -iL uplist.txt > services.txt
#!/bin/bash
nmap $1 -n -sP | grep report | awk '{print $5}'
<?php
$URL = "http://bdpuqvsqmphctrcs.onion.link/json.txt";
$json = file_get_contents($URL);
$json = json_decode($json);
foreach($json AS $a){
foreach($a AS $thisone){
echo "ONION LINK : ".$thisone[1]."\n";
echo "DESCRIPTION : ".$thisone[2]."\n";
echo "SOURCE : ".$thisone[3]."\n";
echo "FIRST SEEN : ".$thisone[4]."\n";
#!/bin/bash
# By jburke@wapacklabs.com
# This can be used to multi-thread search
time find $1 -name "*.txt" -print0 | xargs -0 -n1 -P24 grep -H "$2" > $2.txt
@JburkeRSAC
JburkeRSAC / detect_arabic.php
Created May 5, 2016 18:21
detect if a string contains 60% or more arabic
function uniord($u) {
// I just copied this function fron the php.net comments, but it works fine!
$k = mb_convert_encoding($u, 'UCS-2LE', 'UTF-8');
$k1 = ord(substr($k, 0, 1));
$k2 = ord(substr($k, 1, 1));
return $k2 * 256 + $k1;
}
//returns true or false if string contains 60% or more arabic characters
function is_arabic($str){
if(mb_detect_encoding($str) !== 'UTF-8') {
#!/bin/bash
# Install FUCKING GENTOO Live CD Maker
# by jburke@wapacklabs.com
# https://www.youtube.com/watch?v=tAb7OID5lt8
#
# Requirements: Name USB Untitled because I'm too lazy to variable or name it
#
cd /Volumes/Untitled/ && wget http://distfiles.gentoo.org/releases/amd64/autobuilds/20160317/install-amd64-minimal-20160317.iso
hdiutil convert -format UDRW -o /Volumes/Untitled/install-amd64-minimal-20160317.iso /Volumes/Untitled/install-amd64-minimal-20160317.iso
cd /Volumes/Untitled/ && mv install-amd64-minimal-20160317.iso.dmg install-amd64-minimal-20160317.iso && cp install-amd64-minimal-20160317.iso ~/Desktop && cd ~/Desktop
@JburkeRSAC
JburkeRSAC / kippo_install.sh
Created November 17, 2015 23:39
kippo honeypot ftw!
#!/bin/bash
apt-get install openssh-server lxde tmux vim python-dev openssl python-openssl python-pyasn1 python-twisted subversion authbind -y
apt-get update -y && apt-get upgrade -y
sed -i '5s/22/8925/' /etc/ssh/sshd_config
reload ssh
useradd -d /home/kippo -s /bin/bash -m kippo -g sudo
touch /etc/authbind/byport/22
chmod 777 /etc/authbind/byport/22
su kippo<<'EOF'
cd