This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base(object): | |
things = [] | |
def update(self): | |
print "I do nothing" | |
class A(Base): | |
def update(self): | |
self.things.append('This is A') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
/| |\ | |
`__\\ //__' | |
|| || | |
\__`\ |'__/ | |
`_\\ //_' | |
_.,:---;,._ | |
\_: :_/ | |
|@. .@| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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"}); | |
});}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging | |
import random | |
import socket | |
import sys | |
import urllib | |
HOST = "localhost" | |
PORT = 3000 | |
N_INSTANCES = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import urllib2 | |
import json | |
import sys | |
import time | |
""" | |
LET'S LOOK FOR HIGHER PORT DIFFERENCES MOTHERFUCKER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
import logging | |
import argparse | |
from urlparse import urljoin | |
from difflib import get_close_matches | |
import requests | |
import geocoder | |
from lxml import html |
OlderNewer