Skip to content

Instantly share code, notes, and snippets.

@krmaxwell
krmaxwell / list.md
Last active April 9, 2020 00:58
Destructive malware
  • Chernobyl Virus

Main list

  • Sony Wiper: Trojan.NukeSped.A
  • CryptoLocker: Cryptolocker
    • BankLocker: Trojan:W32/Ransom
    • CTB-Locker: CTBLocker
    • TorLocker: Gen:Variant.Kazy
  • DarkSeoul Wiper: Trojan.Agent.AZHM, Trojan.KillMBR.U, Trojan.Generic.KDV.925961
  • Distrack (Shamoon): Gen:Trojan.Heur.8u0@ILmUdSm
@krmaxwell
krmaxwell / script.js
Created April 29, 2015 04:05
Paper Rock Scissors exercise from Codecademy
var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
computerChoice = "rock";
} else if(computerChoice <= 0.67) {
computerChoice = "paper";
} else {
computerChoice = "scissors";
} console.log("Computer: " + computerChoice);
@krmaxwell
krmaxwell / pep8.txt
Last active August 29, 2015 14:20
reviewing virtualenv
kmaxwell@newton:~/src/virtualenv(develop)$ pep8 virtualenv.py
virtualenv.py:79:21: E128 continuation line under-indented for visual indent
virtualenv.py:301:1: E302 expected 2 blank lines, found 1
virtualenv.py:310:27: E226 missing whitespace around arithmetic operator
virtualenv.py:310:41: E226 missing whitespace around arithmetic operator
virtualenv.py:325:5: E301 expected 1 blank line, found 0
virtualenv.py:327:5: E301 expected 1 blank line, found 0
virtualenv.py:329:5: E301 expected 1 blank line, found 0
virtualenv.py:331:5: E301 expected 1 blank line, found 0
virtualenv.py:333:5: E301 expected 1 blank line, found 0
try:
# Note that this request does NOT go through proxies
logging.debug("Domain submission: {url}|{data}".format(url=url, data=domain_data))
domain_response = requests.post(url, headers=headers, data=domain_data)
# pylint says "Instance of LookupDict has no 'ok' member"
if domain_response.status_code == requests.codes.ok:
domain_response_data = domain_response.json()
if domain_response_data['return_code'] == 0:
inserted_domain = True
else:
@krmaxwell
krmaxwell / gist:3b7e85c34b573cd93cb8
Created March 23, 2015 03:47
Error updating Chrome
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: The following signatures were invalid: BADSIG A040830F7FAC5991 Google, Inc. Linux Package Signing Key <linux-packages-keymaster@google.com>
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release:
W: Some index files failed to download. They have been ignored, or old ones used instead.

If you were to give recommendations to your "little brother/sister" on things that they need to do to become a data scientist, what would those things be?

I think the "Data Science Venn Diagram" (http://drewconway.com/zia/2013/3/26/the-data-science-venn-diagram) is a great place to start. You need three things to be a good data scientist:

  • Statistical knowledge
  • Programming/hacking skills
  • Domain expertise

Statistical knowledge

In a free society like ours, people get to have and express all sorts of different opinions. We all have friends and family members of every stripe, and we love them as they are even when we disagree with them. Disagreements not only force us to sharpen our own understanding, occasionally they help us to see when we're wrong.

People are entitled to express their opinions, of course. But certain types of opinions have no place in political disagreements, nor indeed in our society. Among these is racism, and Rafal Los spews racism. While he keeps his @Wh1t3Rabbit more or less confined to professional issues (with some political stances creeping in now and again), his personal @RafalLos is filled with sickening racist trash.

Examples:

https://twitter.com/RafalLos/status/569935402670403585:

TIL: There are some ass-clowns out there whose job it seriously is to be a “diversity consultant”… wow.

@krmaxwell
krmaxwell / lenovo.html
Created February 25, 2015 21:29
Lenovo hack
<html>
<head>
<title>@LizardCircle</title>
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<meta name="description" content="The new and improved rebranded Lenovo website featuring Ryan King and Rory Andrew Godfrey">
<style>body{background-color:black;color:white;font-family:'Roboto',sans-serif;}a{color:cyan;}#slides{display:none;}.container{width:100%;height:100%;}.slidesjs-navigation{display:none;}iframe{display:none}</style>
</head>
<body>

Keybase proof

I hereby claim:

  • I am krmaxwell on github.
  • I am kylemaxwell (https://keybase.io/kylemaxwell) on keybase.
  • I have a public key whose fingerprint is E605 7BFB 6D86 EC40 F4FD 7905 4C8F A2D4 E91E 5064

To claim this, I am signing this object:

@krmaxwell
krmaxwell / conference-planning-2015.md
Last active August 29, 2015 14:15
2015 conference planning

Already attended

Planning to attend

  • SANS DFIR Summit (speaker)
  • Black Hat USA (will submit)
  • DEF CON (submitted)
  • ArchC0n (will submit)