Skip to content

Instantly share code, notes, and snippets.

Decidedly Gray decidedlygray

Block or report user

Report or block decidedlygray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@decidedlygray
decidedlygray / build_and_install_retdec_offline_kali.sh
Created Mar 1, 2019
Build and install script retdec (retargetable decompiler) on Kali Linux
View build_and_install_retdec_offline_kali.sh
#
# 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 Mar 1, 2019
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.
View integer_array_to_string.py
# 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 / ModifyAndBuildingBurpExtensions.md
Created Aug 10, 2017
Modifying and Building Burp Extensions Quick Reference
View ModifyAndBuildingBurpExtensions.md

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/ .
@decidedlygray
decidedlygray / kali_docker_install.sh
Created Sep 2, 2018
Docker install script for Kali Rolling
View kali_docker_install.sh
#!/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 Aug 1, 2018
Updated Katz.cs - Latest Mimikatz, I mean honestly it is 2018...
View katz.cs
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 / hmmm_dns_stuff_1m.py
Last active Jul 26, 2018
Check domains for records and stuff
View hmmm_dns_stuff_1m.py
#!/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 / install_letsencrypt_ca_certificates_for_jvm_windows.ps1
Last active Jun 26, 2018
Install LetsEncrypt CA Certs on Windows Host into Burp's Java TrustStore
View install_letsencrypt_ca_certificates_for_jvm_windows.ps1
# ###
# 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 Jun 9, 2018
BurpSuite Pro burp-rest-api Kali Rolling build script
View build_burp-rest-api.sh
#!/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 / crypto_challenge_20161101.py
Last active Jun 7, 2018
Short script to do automated cryptanalysis (really just finding best fit key) against substitution ciphers. Uses hill climbing algorithm to find best fit key.
View crypto_challenge_20161101.py
"""
Break Simple Substitution Cipher (automated cryptanalysis)
---
Use a hill climbing algo to maximize fitness score accross iterations of keys (mutate, check, rinse/repeat).
Fitness is determined by comparing quadgram statistics of decrypted text against the engilish quadgrams.
---
REQUIREMENTS
Install pycipher for easily applying key to ciphertext: pip install pycipher
Also need ngram_score module: http://practicalcryptography.com/media/cryptanalysis/files/ngram_score_1.py
As well as english_quadgrams: http://practicalcryptography.com/media/cryptanalysis/files/english_quadgrams.txt.zip
View Reversing Aruba Instant.md

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.

You can’t perform that action at this time.