Skip to content

Instantly share code, notes, and snippets.

@EllieJellyBean
EllieJellyBean / alarm.py
Created October 11, 2021 02:13 — forked from mchow01/alarm.py
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:

Session 2 Practice Tasks

The assignments listed here should take you approximately 55 total minutes.

CAREFULLY READ ALL THE INSTRUCTIONS BEFORE STARTING THESE EXERCISES!

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
@EllieJellyBean
EllieJellyBean / mod_0_session_2_readings.md
Last active January 7, 2021 22:04 — forked from damwhit/mod_0_session_2_readings.md
Mod 0 Session 2 Readings

Session 2 Readings and Responses

The readings and responses listed here should take you approximately 65 minutes total.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of this document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Session 1 Practice Tasks

The assignments listed here should take you approximately 60 minutes.

CAREFULLY READ ALL THE INSTRUCTIONS BEFORE STARTING THESE EXERCISES!

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
@EllieJellyBean
EllieJellyBean / mod_0_session_1_readings.md
Last active January 7, 2021 22:51 — forked from damwhit/mod_0_session_1_readings.md
Mod 0 Session 1 Readings

Session 1 Readings and Responses

The readings and responses listed here should take you approximately 25 minutes.

To start this assignment, click the button in the upper right-hand corner that says Fork. This is now your copy of this document. Click the Edit button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

I was (pleasantly) surprised to hear that programmers regularly use Google. Many courses in academia push for memorization which isn't realistic or helpful, so hearing that Google is an essential for a programmer's toolkit was a huge relief. This point was especially clear when Mansoor mentioned that he used Google 23 times for 255 lines of code; that's almost 10% of his project! Ho