Skip to content

Instantly share code, notes, and snippets.

View jecsanb's full-sized avatar

JB jecsanb

  • Coming Soon
  • United States, TX
View GitHub Profile
@jecsanb
jecsanb / extract.py
Created October 2, 2019 03:51
Program used to extract data from pcap file
#! /usr/bin/env python2.7
# -#- coding: utf-8 -#-
# vim:fenc=utf-8
# read.py
# Copyright (C) 2019 Jecsan Blanco <[email protected]>
# Distributed under terms of the MIT license.
from scapy.all import *
def main():
packets = packets = rdpcap('Week5.pcap')
@jecsanb
jecsanb / attempt.py
Last active March 26, 2019 22:24
not crashing needs testing
import random
from collections import OrderedDict
# returns what hand wins against
def wins(hand):
return {"R": "S", "P": "R", "S": "P"}.get(hand)
# returns what wins against hand