Skip to content

Instantly share code, notes, and snippets.

@ssherei
ssherei / keybase.md
Created May 26, 2015 19:44
keybase.md

Keybase proof

I hereby claim:

  • I am ssherei on github.
  • I am saif (https://keybase.io/saif) on keybase.
  • I have a public key whose fingerprint is 452C 0202 B7C6 798B D09A F0CB 087B 6CFB E8ED 9486

To claim this, I am signing this object:

function Invoke-MS16-032 {
<#
.SYNOPSIS
PowerShell implementation of MS16-032. The exploit targets all vulnerable
operating systems that support PowerShell v2+. Credit for the discovery of
the bug and the logic to exploit it go to James Forshaw (@tiraniddo).
Targets:
var http = require('http');
var readline = require('readline');
var fs = require('fs');
var command = 'Nocmd';
const PORT=8000;
var count = 0;
var filebuf;
const split = 20;
var remainder;
var repeat;