Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Writing gnarly code!

Max von Hippel maxvonhippel

💭
Writing gnarly code!
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am maxvonhippel on github.
  • I am maxvonhippel (https://keybase.io/maxvonhippel) on keybase.
  • I have a public key whose fingerprint is 8413 793D 1212 D4F3 3AD5 9DA6 FAC8 AB26 5F3E 8A21

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am maxvonhippel on github.
  • I am maxvonhippel (https://keybase.io/maxvonhippel) on keybase.
  • I have a public key whose fingerprint is C838 65C8 0ED2 4086 139B A9FA F27D 6C17 D2DD F2CA

To claim this, I am signing this object:

View read_rally.py
# -*- coding: utf-8 -*-
import urllib
import json
from pprint import pprint
# get the web page
url = 'https://www.rally-maps.com/Rallye-Monte-Carlo-2017/Agnières-en-Dévoluy-Le-Motty#ElevationChart'
f = urllib.urlopen(url)
# find the relevant line
for line in f:
if 'elevationData:' in line:
@maxvonhippel
maxvonhippel / runmamadroid.sh
Created Apr 27, 2018
Getting started with MaMaDroid on Mac OS
View runmamadroid.sh
# Clone MamaDroid
git clone https://bitbucket.org/gianluca_students/mamadroid_code.git mamadroid
# Get some malware to look at
git clone https://github.com/ashishb/android-malware.git malware
# Export variables
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/
export JRE_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/bin
export PATH=$JAVA_HOME:$JRE_HOME:$PATH
# Base dir variable for convenience
basedir=$(echo $(pwd)/mamadroid)
@maxvonhippel
maxvonhippel / makemamadroidfigure.py
Last active Apr 28, 2018
The purpose of this script is to make a `.png` figure of the Markov Chain output by MAMADROID for a malware sample
View makemamadroidfigure.py
#!/usr/bin/python
# The purpose of this script is to turn a MAMADROID model into a cool visual figure
import matplotlib
matplotlib.use('Agg')
import networkx as nx
import ast
import matplotlib.pyplot as plt
from networkx.drawing.nx_agraph import graphviz_layout
# Begin the magic
G = nx.Graph()
@maxvonhippel
maxvonhippel / IntroPython.md
Last active Apr 30, 2020
A brief tutorial on having fun with Python.
View IntroPython.md

This is intended to be a brief tutorial on having fun with Python.

Getting started.

Open the Terminal application on your Mac or Linux computer.
Open Sublime Text.
Type command n to create a new document. Type command s to save this document. When it asks for a path and file name, put it on your desktop, and save it as banana.py. Now, in your new file, write the following:

View stepThroughModel.py
import sys
import signal
import os
from ptyprocess import PtyProcessUnicode
# The purpose of this script is to serve as a wrapper around SPIN,
# providing functionality in interactive mode similar to stepping through
# an application, for instance in a MIPS emulator.
# See: http://spinroot.com/fluxbb/viewtopic.php?id=1662
View FavoritePapers.md

This is a small collection of papers, presentations, and resources I have consumed and enjoyed or intend to read/reference/whatever down the line. Some items have unorganized sub-lists of related links and references below them, which provide additional context or information for further exploration.

CPS

You can’t perform that action at this time.