Skip to content

Instantly share code, notes, and snippets.

@enginefeeder101
enginefeeder101 / testports.sh
Created November 17, 2015 21:20
Test outgoing open ports
#!/bin/bash
task(){
LC_ALL=C nc -vzw5 portquiz.net $1 2>&1 | grep -v 'Connection timed out'
}
N=50 # Specify number of ports to check at once
(
for port in {1..65535}; do # Specify port range to check here
((i=i%N)); ((i++==0)) && wait
@jorgegarciamule
jorgegarciamule / security-group-cleanup.py
Last active February 15, 2021 14:43 — forked from miketheman/security-group-cleanup.py
AWS EC2 Unused Security Group cleanup
#!/usr/bin/env python
import sys
import boto
import pprint
del_flag = ''
if len(sys.argv) > 1:
del_flag = sys.argv[1]