Skip to content

Instantly share code, notes, and snippets.

@mchow01
mchow01 / cyber_security_skills_shortage.md
Last active February 27, 2026 18:19
How long we have been playing this "cyber security skills shortage" game for?
#!/usr/bin/perl
### FooVirus.pl
### Author: Avi kak (kak@purdue.edu)
### Date: April 19, 2006
print "\nHELLO FROM FooVirus\n\n";
print "This is a demonstration of how easy it is to write\n";
print "a self-replicating program. This virus will infect\n";
@mchow01
mchow01 / alarm.py
Last active February 5, 2026 22:18
A working Scapy program that sniffs traffic on a live work or from a PCAP file. Goal is to expand this to identify basic vulnerabilities (e.g., credentials sent in plaintext)
#!/usr/bin/python3
from scapy.all import *
import argparse
def packetcallback(packet):
try:
# The following is an example of Scapy detecting HTTP traffic
# Please remove this case in your actual lab implementation so it doesn't pollute the alerts
if packet[TCP].dport == 80:
@mchow01
mchow01 / pwcount.py
Last active March 3, 2021 04:35
A tally program for password cracking competition
import glob, os
passwords =[]
results = {}
student_totals = {}
password_totals = {}
for filename in os.listdir("."):
if filename.endswith(".html"):
results[filename] = {}