Skip to content

Instantly share code, notes, and snippets.

View gdog2u's full-sized avatar

Bee Hudson gdog2u

View GitHub Profile
@gdog2u
gdog2u / xmas-packet
Last active September 22, 2023 16:28 — forked from thepacketgeek/08-xmas-tree-packet.py
Scapy - Creating a TCP Christmas Tree Packet
#!/usr/bin/python3
import sys
import warnings
from cryptography.utils import CryptographyDeprecationWarning
warnings.filterwarnings("ignore", category=CryptographyDeprecationWarning)
from scapy.all import IP,TCP,send
from random import randint
'''
X-mas Tree Packet Sender
#!/usr/bin/perl
use warnings;
use strict;
#####
# Solution works for demo, but not for input
#####
our @inputs = get_inputs();
/([jJ](anuary|u(ly|ne))|[mM]a(y|rch)|[fF]ebruary|[aA](pril|ugust)|(([nN]ov|[sS]ept|[dD]ec)em|[oO]cto)ber)/
^(?:[a-zA-Z0-9!#$%&'*+\-\/\=?^_`{|}~]|\.(?!\.)){1,64}@(?:(?:[a-zA-Z0-9\-]){1,63}\.(?!\.)){1,4}(?:[a-zA-Z0-9]{2,12})$
@gdog2u
gdog2u / gist:27ef7746ff643f9a748c08ab59f2759a
Last active July 14, 2021 18:51
US Phone Number Regex
^(?:[+]?\d[-\s]?)?(?:(?:[(][2-9][0-8][0-9][)]|[2-9][0-8][0-9])[-\s]?)?[2-9]\d{2}[-\s]?\d{4}$