This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
##### | |
# Solution works for demo, but not for input | |
##### | |
our @inputs = get_inputs(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/([jJ](anuary|u(ly|ne))|[mM]a(y|rch)|[fF]ebruary|[aA](pril|ugust)|(([nN]ov|[sS]ept|[dD]ec)em|[oO]cto)ber)/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^(?:[a-zA-Z0-9!#$%&'*+\-\/\=?^_`{|}~]|\.(?!\.)){1,64}@(?:(?:[a-zA-Z0-9\-]){1,63}\.(?!\.)){1,4}(?:[a-zA-Z0-9]{2,12})$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^(?:[+]?\d[-\s]?)?(?:(?:[(][2-9][0-8][0-9][)]|[2-9][0-8][0-9])[-\s]?)?[2-9]\d{2}[-\s]?\d{4}$ |