Skip to content

Instantly share code, notes, and snippets.

View kf0jvt's full-sized avatar

Kevin Thompson kf0jvt

View GitHub Profile
@kf0jvt
kf0jvt / vcdb_quality_sample.py
Last active December 27, 2015 09:39
Takes a random sample from the VCDB dataset for quality checking.
import json
import os
from collections import defaultdict
from random import sample
population = defaultdict(list)
sample_size = 2
final_sample = defaultdict(list)
# i = getIncident('blahblahblah.json')
@kf0jvt
kf0jvt / assignment.md
Created November 13, 2013 14:43
pandoc and latex template to create an APA formatted term paper. Took me forever to make this since I had never played with latex before. Hopefully it isn't too awful. To make the finished paper you need to type the following pandoc --template=template.tex -o output.tex assignment.md xelatex output.tex biber output xelatex output.tex xelatex out…

title: 'Making shit work with markdown to pandoc to pdflatex to biber and back' author: 'Kevin Thompson' shorttitle: 'Making shit work' abstract: | don't forget to indent these paragraphs

if you don't it seem to get pissed about long sentences. ...

{
"actor_id": "41D3AF17-147D-4DCC-ABE6-684174325D66",
"country": [
{
"country": "CN",
"source": [
1,
2
]
},
@kf0jvt
kf0jvt / new-year-2014.md
Last active January 1, 2016 15:59
News years resolutions for 2014

New Years Resolutions for 2014 (work in progress)

Here are some things that I would like to accomplish in 2014. This list might be too long (as I keep adding to it) and might need to get sorted into minimum goals and stretch goals. Something else I might want to consider is how can I add a system to this, so that rather than setting a specific goal, I have a system that helps me achieve things I want.

Minimum Goals

  • Achieve 600 hours of instruction in Mandarin (380 hours on top of the 220 I have now).
    • Self study for one hour most days
    • Engage in at least one face-to-face conversation either in person or on the internet every week
    • The extra hours from conversation should make up for any missed days of self-study.
  • Read and complete the examples in The Art of R Programming and Machine Learning for Hackers.
  • spend at least 40 hours studying x86 assembly language.
@kf0jvt
kf0jvt / malware.md
Last active June 4, 2018 14:02
Recommended reading for malware analysis
  1. http://computer-forensics.sans.org/blog/2010/11/12/get-started-with-malware-analysis
  2. http://zeltser.com/malware-analysis-toolkit/
  3. http://zeltser.com/vmware-malware-analysis/
  4. http://computer-forensics.sans.org/blog/2010/10/11/3-phases-malware-analysis-behavioral-code-memory-forensics/
  5. BotMiner: Clustering Analysis of Network Traffic for Protocol- and Structure-Independent Botnet Detection https://www.usenix.org/legacy/event/sec08/tech/full_papers/gu/gu.pdf
  6. Mining the Network Behavior of Bots http://isg.rhul.ac.uk/sullivan/pubs/tr/2009-12.pdf
  7. Behavioral Clustering of HTTP-Based Malware and Signature Generation Using Malicious Network Traces https://www.usenix.org/legacy/event/nsdi10/tech/full_papers/perdisci.pdf
  8. From Throw-Away Traffic to Bots: Detecting the Rise of DGA-Based Malware https://www.usenix.org/system/files/conference/usenixsecurity12/sec12-final127.pdf
  9. Obfuscation of executable code to improve resistance to static disassembly http://www.cs.arizona.edu/~debray/Pub
@kf0jvt
kf0jvt / sample strings.txt
Last active January 2, 2016 01:39
just fucking around
http://www.utphysicians.com/21756/uthealth-informs-patients-incident-related-patient-information/ (20130830),http://healthitsecurity.com/2013/08/29/ut-physicians-informs-patients-of-data-breach/ (20130830)
https://oag.ca.gov/system/files/Final%20version%20of%20breach%20notification%20in%20PDF%20format%20%2800751822%29_0.PDF http://www.phiprivacy.net/burglar-snatches-laptop-with-patient-medical-records-from-san-jose-internists-office/
http://doj.nh.gov/consumer/security-breaches/documents/waste-management-20070403.pdf
@kf0jvt
kf0jvt / dontforget.md
Created January 9, 2014 04:29
stuff I don't want to forget
def aggregateIndustry(inArray):
returnArray = [{'_id':'31-33','friendly_name':'Manufacturing','count':0},
{'_id':'44-45','friendly_name':'Retail','count':0},
{'_id':'48-49','friendly_name':'Transportation','count':0}]
for eachIndustry in inArray:
if eachIndustry['_id'] in ['31','32','33']:
returnArray[0]['count'] += eachIndustry['count']
continue
if eachIndustry['_id'] in ['44','45']:
returnArray[1]['count'] += eachIndustry['count']
@kf0jvt
kf0jvt / simple_bar.R
Last active August 29, 2015 13:56
Simple bar chart of vcdb data using Jay's veris package
library(verisr)
library(ggplot2)
# Load the data
vcdb.dir <- "../vcdb/data/json"
vcdb <- json2veris(vcdb.dir)
# Filter out the Unknowns
filt <- !getfilter(vcdb, list("action.hacking.variety"="Unknown"))
#!/usr/bin/env python
import json
vDict=json.loads(open('verisc-enum.json').read())
def dict_walker(inCollection, pre=None):
pre = pre[:] if pre else []
#print(pre)
if isinstance(inCollection, dict):