Skip to content

Instantly share code, notes, and snippets.

@Mcostart
Mcostart / mn-scanner.py
Created January 23, 2017 02:09
Automate network scanning tasks using the nmap and masscan tools.
#!/usr/bin/python
import xml.etree.ElementTree as ET
import subprocess
import time
import os
#http://xael.org/pages/python-nmap-en.html
import nmap
def parseMasscanReport(path):
hostsPorts = {}
@Mcostart
Mcostart / box-setup.sh
Last active January 23, 2017 02:02
Penetration testing box setup.
#!/bin/bash
#Update repositories
apt-get update
apt-get upgrade -y
#SSH config
#--------------------------
export username="pentester"
export password=""
export key=""
@Mcostart
Mcostart / password-generator.sh
Last active January 23, 2017 02:03
Random password generator.
#!/bin/bash
echo "[*] Password 1:"
openssl rand -base64 30
echo "[*] Password 2:"
gpg --gen-random -a 0 30
echo "[*] Password 3:"
dd if=/dev/urandom bs=1 count=30 2>/dev/null | base64