Skip to content

Instantly share code, notes, and snippets.

View decidedlygray's full-sized avatar

Decidedly Gray decidedlygray

View GitHub Profile
@decidedlygray
decidedlygray / build_and_install_retdec_offline_kali.sh
Created March 1, 2019 16:48
Build and install script retdec (retargetable decompiler) on Kali Linux
#
# Project Homepage: https://github.com/avast-tl/retdec#linux
# This file is based on the Dockerfile from the repo above
#
apt update -y
apt install -y build-essential cmake git perl python3 doxygen graphviz upx flex bison zlib1g-dev libtinfo-dev autoconf automake pkg-config m4 libtool
cd /opt
git clone https://github.com/avast-tl/retdec
cd retdec && mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/retdec-install
@decidedlygray
decidedlygray / integer_array_to_string.py
Last active March 1, 2019 16:45
Snippet for when you decompile an Android APK in JD-GUI and some of the strings are integer arrays instead of strings. This will convert the array to a string and print it.
# For when you decompile an Android APK and some of the strings are static integer arrays instead of strings,
# this snippet will print them out as strings. I've re-written this a few times so I figured I'd just
# post it here so I can find it when I need it.
strArray = []
# Drop your "private static final short[] a = { 65, 66, 67, 68, 69, 70, 71, 72, 73 ... }"" here, but replace [] w/ {}
strArray.append(
[65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57]
@decidedlygray
decidedlygray / kali_docker_install.sh
Created September 2, 2018 20:30
Docker install script for Kali Rolling
#!/bin/bash
#
# Kali Docker Setup Script
# @decidedlygray 20180902
# LICENSE: MIT
#
# Steps taken from: https://docs.docker.com/install/linux/docker-ce/debian/
# And: https://medium.com/@airman604/installing-docker-in-kali-linux-2017-1-fbaa4d1447fe
# Install uses the repository, so we can get updates in the future
@decidedlygray
decidedlygray / katz.cs
Created August 1, 2018 22:17
Updated Katz.cs - Latest Mimikatz, I mean honestly it is 2018...
This file has been truncated, but you can view the full file.
using System;
using System.IO;
using System.Text;
using System.IO.Compression;
using System.EnterpriseServices;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
@decidedlygray
decidedlygray / install_letsencrypt_ca_certificates_for_jvm_windows.ps1
Last active June 26, 2018 13:57
Install LetsEncrypt CA Certs on Windows Host into Burp's Java TrustStore
# ###
# install_letsencrypt_ca_certificates_for_jvm_windows.ps1
# Based on the linux script here: https://www.nuharborsecurity.com/creating-a-private-burp-collaborator-in-amazon-aws-with-a-letsencrypt-wildcard-certificate/
# Written by @decidedlygray, 20180626
#
# NOTE: Not working at the moment. Comments welcome.
# ###
# BurpSuitePro Install Location
$BurpInstallLocation="C:\Program Files\BurpSuitePro\"
@decidedlygray
decidedlygray / build_burp-rest-api.sh
Last active May 20, 2020 15:08
BurpSuite Pro burp-rest-api Kali Rolling build script
#!/bin/bash
##############################################################################
# burp-rest-api Kali build script
# Builds: https://github.com/vmware/burp-rest-api
#
# Currently Kali ships using java 9 as its default version of Java. This
# causes building https://github.com/vmware/burp-rest-api to fail. This
# script is meant to help fix that and get the tool to build properly
#
@decidedlygray
decidedlygray / Reversing Aruba Instant.md
Created May 15, 2018 16:06
Reversing Aruba Instant Firmware

Aruba produces two different software loads for their Access Point hardware. The first is called ArubaOS and the second is called Aruba Instant. With ArubaOS, the AP requires a Mobility Controller (hardware) to be installed in the network. With the Aruba Instant it is possible to run AP’s independently (standalone mode) or in a cluster, with no Mobility Controller in the network.

@decidedlygray
decidedlygray / hmmm_dns_stuff_1m.py
Last active July 26, 2018 16:20
Check domains for records and stuff
#!/usr/bin/env python
# The py2 code below is an abomination that was slapped together in a matter of
# minutes to see if the internet was behaving as expected. It is utter garbage
# and should not be used by anyone. - @decidedlygray
import socket
import urllib2
import zipfile
import csv
@decidedlygray
decidedlygray / py_b64unicode_decode.py
Created December 14, 2017 15:26
Python2 snippet for taking a base64-encoded unicode string, and decoding it properly so there aren't trailing null bytes on ASCII characters
#!/usr/bin/env python
"""
Python2 snippet for taking a base64-encoded unicode string, decoding it
properly so there aren't trailing null bytes for ASCII characters
Leaving this here so I don't have to look it up again
@decidedlygray
"""
@decidedlygray
decidedlygray / ModifyAndBuildingBurpExtensions.md
Created August 10, 2017 00:58
Modifying and Building Burp Extensions Quick Reference

Quick Reference

This section is a boiled down version of everything above. It should serve as an easy reference. These steps assume you've identified and installed the correct JDK.

Modify and Re-Jar Extension

  1. Locate the jar file: Extender > Extensions > Select extension > Details. bapps\ directory is located at C:\Users\yourusername\AppData\Roaming\BurpSuite\bapps
  2. Backup the original jar file to a different folder, outside of bapps.
  3. Change extension from .jar to .zip, extract contents, delete .zip file
  4. Make your modifications
  5. Re-jar: jar cvf yourJarName.jar -C extractedContentsDirectory/ .