Skip to content

Instantly share code, notes, and snippets.

View codyhanson's full-sized avatar
🍻
Cheers

Cody Hanson codyhanson

🍻
Cheers
View GitHub Profile
@codyhanson
codyhanson / FIN_scan.py
Created August 16, 2016 04:13 — forked from zypeh/FIN_scan.py
A simple snippets from [Infosec Institute]("http://resources.infosecinstitute.com/port-scanning-using-scapy/")
# !/usr/python
# The FIN scan utilizes the FIN flag inside the TCP packet,
# along with the port number to connect to on the server.
# If there is no response from the server, then the port is open.
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *