Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- lib/P2Util.php Mon Nov 24 14:14:52 2014
- +++ lib/P2Util.php Sat Feb 28 11:20:49 2015
- @@ -94 +94 @@
- - $req = new HTTP_Request('http://be.2ch.net/test/login.php?guid=ON', $params);
- + $req = new HTTP_Request('http://be.2ch.net/index.php', $params);
- @@ -97,5 +97,5 @@
- - $req->addPostData('m', $mail);
- - $be2chEncoding = 'eucJP-win';
- - $req->addPostData('p', mb_convert_encoding($pass, $be2chEncoding, mb_internal_encoding()));
- - $req->addPostData('submit', mb_convert_encoding('登録', $be2chEncoding, mb_internal_encoding()));
- -
- + $req->addPostData('mail', $mail);
- + $req->addPostData('pass', $pass);
- + $req->addPostData('login', 'ログインする');
- +
- +
- @@ -112,23 +111,0 @@
- -
- - // 2011/01/11 正否はSet-Cookieで判別すればいい
- - // 駄目なときは「不正なリクエスト」とか「パスワードかメールアドレスが正しくないようです。」が返る
- - // 成功時
- - /*
- -<html><head>
- -<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" />
- -<title>Beログイン</title>
- -<script type="text/javascript"><!--
- -
- -var exp = new Date();
- -exp.setTime(exp.getTime() + 5 * 365 * 86400 * 1000);
- -exp = exp.toUTCString();
- -
- -document.cookie = "DMDM=1127232; expires=" + exp + "; path=/; domain=.2ch.net";
- -document.cookie = "MDMD=jy7MPa%2Bu0r7mScKRop3YBoPZ0HH6Is00; expires=" + exp + "; path=/; domain=.2ch.net";
- -
- -//--></script>
- -</head><body>
- -ログイン完了
- -<hr />こちらから<a href="/">掲示板</a>に入ってください。
- -</body></html>
- -*/
- @@ -147 +124 @@
- - if ($code == 200 || $code == 206) {
- + if ($code == 302) {
Advertisement
Add Comment
Please, Sign In to add comment