Skip to content

Instantly share code, notes, and snippets.

@johnjohnsp1
johnjohnsp1 / pshell.cs
Last active August 29, 2015 14:26
Invoke Interactive PowerShell and Run Local Scripts Inside InstallUtil
using System;
using System.IO;
using System.Diagnostics;
using System.Reflection;
using System.Configuration.Install;
using System.Runtime.InteropServices;
//Add For PowerShell Invocation
using System.Collections.ObjectModel;
using System.Management.Automation;
@johnjohnsp1
johnjohnsp1 / athena_http_decode.py
Last active August 29, 2015 14:27 — forked from guelfoweb/athena_http_decode.py
A little code to decode Athena HTTP POST request
'''
Athena HTTP - Decode HTTP POST request
Gianni 'guelfoweb' Amato
'''
import urllib
import base64
import itertools
from string import maketrans
@johnjohnsp1
johnjohnsp1 / PELoader.cs
Last active August 29, 2015 14:28
Reflective PE Injection Mimikatz - Via InstallUtil.exe
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Runtime.InteropServices;
/*
// LowerUINT_TO_FP_i64 - 64-bit unsigned integer to double expansion.
SDValue X86TargetLowering::LowerUINT_TO_FP_i64(SDValue Op,
SelectionDAG &DAG) const {
// This algorithm is not obvious. Here it is what we're trying to output:
/*
movq %rax, %xmm0
punpckldq (c0), %xmm0 // c0: (uint4){ 0x43300000U, 0x45300000U, 0U, 0U }
subpd (c1), %xmm0 // c1: (double2){ 0x1.0p52, 0x1.0p52 * 0x1.0p32 }
#ifdef __SSE3__
haddpd %xmm0, %xmm0
@johnjohnsp1
johnjohnsp1 / Rubber ducky italian script
Last active August 26, 2015 17:42 — forked from DiegoCaridei/Rubber ducky italian script
Rubber ducky italian script
#!/bin/bash
#1) donwnload the file wget https://simple-ducky-payload-generator.googlecode.com/files/installer_v1.1.1_debian.sh
#2) Install script
#3) download italian file config https://www.dropbox.com/s/5cfmwfth91z794q/it.properties?dl=0
#4) go at this folder /usr/share/simple-ducky and reply the script simple-ducky.sh with this script
#5) add in the resources folder the file it.properties
@johnjohnsp1
johnjohnsp1 / gist:656db41ec0709df2c05c
Last active August 28, 2015 01:38 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

@johnjohnsp1
johnjohnsp1 / tsws
Last active September 6, 2015 19:40 — forked from dfletcher/tsws
Totally simple web server using Bash and netcat (nc)
#!/bin/bash
# --------------------------------
# Totally Simple Web Server (TSWS)
# --------------------------------
#
# (c) 2015 Dave Fletcher
# All Rights Reserved
#
# This is free and unencumbered software released into the public domain.
@johnjohnsp1
johnjohnsp1 / gist:ae5aa32bdd79d17ca310
Last active September 7, 2015 15:04 — forked from ProgrammingWithHandGrenades/gist:0a9b13e36b5176e18c85
September Scripting Games puzzle solution. One line, no semicolons, no curly braces.
Import-Csv .\input.csv | Add-Member -MemberType ScriptProperty -Name 'OSVersion' -Value $([scriptblock]::create('(Get-WmiObject Win32_OperatingSystem -ComputerName $this.MachineName).caption' )) -PassThru | Export-Csv output.csv -NoTypeInformation
@johnjohnsp1
johnjohnsp1 / cve2015_3113.as
Last active September 11, 2015 04:03 — forked from mak/cve2015_3113.as
CVE-2015-3113 from 205a625ebc3b0a9b286dc8f065845433
package
{
import flash.display.MovieClip;
import flash.utils.ByteArray;
import flash.net.URLLoader;
import flash.utils.Timer;
import flash.media.Video;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
using System;
using System.IO;
using System.Net;
using System.Text;
using System.IO.Compression;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Runtime.InteropServices;