Skip to content

Instantly share code, notes, and snippets.

View stefan2904's full-sized avatar
🚲
¯\_(ツ)_/¯

Stefan stefan2904

🚲
¯\_(ツ)_/¯
View GitHub Profile
@stefan2904
stefan2904 / getVideoTitle.py
Created May 9, 2015 02:13
Get the title of a YoutTube video by it's video ID
from urlparse import urlparse, parse_qs
import urllib2
videoid = "bMSTtWtzV-A"
response = urllib2.urlopen("http://youtube.com/get_video_info?video_id=" + videoid)
query = urlparse("/?" + response.read()).query
title = parse_qs(query)['title']
@stefan2904
stefan2904 / DefConCTF_blackbox.txt
Last active August 29, 2015 14:21
zippy in box 3 ?
% python attack_blackbox3.py
[*] ####################################################################
[*] ######## first box
[+] Opening connection to blackbox_ced7f267475a0299446fa86c26d77161.quals.shallweplayaga.me on port 18324: Done
[DEBUG] Received 0x19 bytes:
'You need to open the box!'
[DEBUG] Received 0xb2 bytes:
'\n'
@stefan2904
stefan2904 / blackbox.py
Created May 18, 2015 00:25 — forked from anonymous/blackbox
via IRC
import socket
import random
host = "blackbox_ced7f267475a0299446fa86c26d77161.quals.shallweplayaga.me"
port = 18324
inputs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ "
s = socket.socket()
s.connect((host, port))
@stefan2904
stefan2904 / spaceApiClient.py
Created May 22, 2015 23:28
get realraum's space-api status
import json, requests
resp = requests.get(url="http://realraum.at/status.json")
data = json.loads(resp.text)
print data['state']['message']
print data['state']['lastchange']
@stefan2904
stefan2904 / ddt.ipynb
Last active August 29, 2015 14:22
T8.1 Differential Distribution Table, Notebook: http://nbviewer.ipython.org/gist/stefan2904/80e0b2b4bc9bc7c08bc9
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / itseclicense.cpp
Created June 5, 2015 21:48
IT-SECURITY LICENSE
/****************************************************************************
**
** Copyright (C) 2015 Graz University of Technology
**
** Contact: Erich.Wenger@iaik.tugraz.at
**
** IT-SECURITY LICENSE
** Version 1.0, 12th of March 2015
**
** This framework may only be used within the IT-Security exercises 2015.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stefan2904
stefan2904 / food.md
Last active August 29, 2015 14:24
some venues for 'food' in Graz (not checked for duplicates)

Ginko

  • Grazbachgasse 33
  • Rating: 8.9
  • Vegetarian / Vegan Restaurant

Clock Tower

  • Kärntner Str. 173
  • Rating: 8.9
  • American Restaurant
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.