Skip to content

Instantly share code, notes, and snippets.

💭
Writing gnarly code!

Max von Hippel maxvonhippel

💭
Writing gnarly code!
Block or report user

Report or block maxvonhippel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@maxvonhippel
maxvonhippel / Mila.md
Created Jul 22, 2019
A brief tutorial on having fun with Python.
View Mila.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:

@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 / 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)
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:
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 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:

You can’t perform that action at this time.