Skip to content

Instantly share code, notes, and snippets.

View az1z1ally's full-sized avatar

Azizi Ally az1z1ally

  • forloop
  • Dar es Salaam, Tanzania
View GitHub Profile
@az1z1ally
az1z1ally / pingsweep.py
Created December 9, 2022 12:07 — forked from mgeeky/pingsweep.py
Quick Python Scapy-based ping-sweeper
#!/usr/bin/python
import sys
import netaddr
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import sr1, IP, ICMP
PING_TIMEOUT = 3
IFACE='eth0'