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
var _$ = ["tbody", "#selecting", "display", "block", "#selecting", "\u6b63\u5728\u67e5\u8be2", " \u603b\u8fdb\u5ea6", "%", "somd5_table", "somd5_table", "#selecting", "\u67e5\u8be2\u5b8c\u6bd5!\u6ca1\u6709\u641c\u7d22\u5230\u5173\u952e\u5b57\u6570\u636e \u8017\u65f6: ", "\u6beb\u79d2", "#selecting", "\u67e5\u8be2\u5b8c\u6bd5! \u6570\u636e\u91cf:", "\u6761 \u8017\u65f6:", "\u6beb\u79d2", "#selecting", "\u67e5\u8be2\u5b8c\u6bd5! \u6570\u636e\u91cf:", "\u6761 \u8017\u65f6:", "\u6beb\u79d2", 'POST', "addRow", "select_act=", "&match_act=", "&key=", "&table=", 'ajax.php?act=select', "#somd5_table", "display", "block", "#key", '', "#key", "\u8bf7\u8f93\u5165\u67e5\u8be2\u5185\u5bb9/\u5173\u952e\u5b57/\u90ae\u7bb1", "\u5173\u952e\u5b57\u957f\u5ea6\u8bf7\u5927\u4e8e4!!", "#select_act", "#match_act", "value_tables", "\u6ca1\u6709\u627e\u5230\u60a8\u641c\u7d22\u7684\u5185\u5bb9\u5462", "操你妈|你TM的来打我啊~!来打我啊~!傻逼|搜MD5|SOMD55|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD5|搜MD5|SOMD |
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 re,json,urllib,urllib2,cookielib | |
cj = cookielib.CookieJar() | |
urllib2.install_opener(urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))) | |
def submit(password,username='blahblah'): | |
page = urllib2.urlopen('http://54.204.80.192/example').read() | |
action = re.findall(r'action="(.+)" ',page)[0] | |
user_field = re.findall(r'input type="text" id="(.+)" name="(.+)"',page)[0][1] | |
pass_field = re.findall(r'input type="password" id="(.+)" name="(.+)"',page)[0][1] | |
data = {user_field: username, pass_field: password} |