Skip to content

Instantly share code, notes, and snippets.

@RoganDawes
RoganDawes / masscan_bin2list
Created October 14, 2018 13:27
Convert Masscan bin files to a series of nmap invocations
#!/bin/sh
# Typical invocation would be:
# masscan_bin2list masscan.bin | parallel
#
# Example output from masscan_bin2list:
# nmap -sV -Pn -vv -n -p 443,80 -oA 10.0.0.1_V 10.0.0.1
# nmap -sV -Pn -vv -n -p 135,139,445 -oA 10.0.0.2_V 10.0.0.2
masscan --readscan $1 -oL - | \
@RoganDawes
RoganDawes / read_serial.py
Created March 3, 2016 15:50
Simple python script to read two serial ports at the same time. Good for snooping on bidirectional comms!
#!/usr/bin/python3
import serial, time, sys, threading
from colorama import Fore, Style, init as colorama_init
colorama_init()
# lock to serialize console output
lock = threading.Lock()