Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // registration bypass made by Venom, please respect me. // if u use it a first time, it may take like a minute to load because bw servers are slow
- function o2_genhash($info) {
- $salt = "P07aJK8soogA815CxjkTcA==";
- return md5($salt.$info);
- }
- function md5hash($info) {
- return md5($info);
- }
- function timer_getandinc() {
- $timer = file_get_contents("timer.txt");
- $timer++;
- file_put_contents("timer.txt", $timer);
- return $timer;
- }
- function moneyexploitLOCID() {
- $locid = file_get_contents("locid.txt");
- $locid++;
- file_put_contents("locid.txt", $locid);
- return $locid;
- }
- function makevalidsession() {
- $userpass = explode(":", file_get_contents("lastaccinfo.txt"));
- if(!login($userpass[0], $userpass[1])) {
- $newpass = 'random123';
- do {
- $newuser = 'tech'.rand_string(1, 5); //random word thats valid
- } while(!checkuser($newuser));
- if(!register($newuser, $newpass))
- return false;
- else {
- file_put_contents("lastaccinfo.txt", $newuser.":".$newpass);
- file_put_contents("allaccounts.txt", "[".strftime("%a %m/%d/%Y %I:%M:%S %p")."] - ".$newuser.":".$newpass."\n", FILE_APPEND);
- return true;
- }
- }
- return true;
- }
- function login($user, $pass) {
- $curl = curl_init("http://lb.binweevils.com/php2/login/logUserIn.php");
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl, CURLOPT_POSTFIELDS, "userID=".$user."&password=".$pass."&rememberMe=1&submitted=1&x=".mt_rand(1, 200)."&y=".mt_rand(1, 100));
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($curl, CURLOPT_HEADER, true);
- curl_setopt($curl, CURLOPT_COOKIEJAR, "sitecookies.txt");
- $header = curl_exec($curl);
- curl_close($curl);
- print($header);
- if(preg_match('/http:\/\/play\.binweevils.com\?res\=(.*?)\n/', $header))
- return false;
- return true;
- }
- function rand_string($min, $max) {
- $length = mt_rand($min, $max);
- $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- $size = strlen($chars);
- for($i = 0; $i < $length; $i++) {
- $str .= $chars[mt_rand(0, $size - 1)];
- }
- return $str;
- }
- function checkuser($user) {
- $curl = curl_init("http://play.binweevils.com/ajax/check-username");
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl, CURLOPT_POSTFIELDS, "username=".$user);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- $result = json_decode(curl_exec($curl), true);
- curl_close($curl);
- if($result['responseCode'] == 1) // changed to status
- return true;
- return false;
- }
- function register($user, $pass) {
- $url = 'http://play.binweevils.com/create-new-weevil';
- $formHASH = 'WebKitFormBoundarySUIkNHaMzZZXUURh';
- $delimiter = '------'.$formHASH;
- $data = '';
- $data .= $delimiter."\r\n";
- $data .= 'Content-Disposition: form-data; name="username"'. "\r\n\r\n";
- $data .= $user. "\r\n";
- $data .= $delimiter . "\r\n";
- $data .= 'Content-Disposition: form-data; name="password"'. "\r\n\r\n";
- $data .= $pass . "\r\n";
- $data .= $delimiter . "--\r\n";
- $handle = curl_init($url);
- curl_setopt($handle, CURLOPT_POST, true);
- curl_setopt($handle, CURLOPT_HTTPHEADER , array(
- 'Content-Type: multipart/form-data; boundary=----'.$formHASH,
- 'Content-Length: ' . strlen($data)));
- curl_setopt($handle, CURLOPT_USERAGENT, "Chrome/52.0.2743.116 Safari/537.36");
- curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
- curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
- $result = json_decode(curl_exec($handle), true);
- curl_close($handle);
- if($result['status'] == 'ok'){
- return true;
- print 'works';
- } elseif ($result['status'] == 'ko') {
- print 'reg error: '.$result['reason'];// val result 2 = username taken// ex = code broken // val 3 = pass or username invalid..
- }
- }
- function getweevilinfo($weevil) {
- $curl = curl_init("http://lb.binweevils.com/php2/weevil/getData.php");
- curl_setopt($curl, CURLOPT_POST, true);
- $timer = timer_getandinc();
- $hash = o2_genhash($weevil.$timer);
- curl_setopt($curl, CURLOPT_POSTFIELDS, "hash=".$hash."&id=".$weevil."&timer=".$timer);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($curl, CURLOPT_COOKIEFILE, "sitecookies.txt");
- $weevildata = json_decode(curl_exec($curl), true);
- curl_close($curl);
- return $weevildata;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement