Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <title>Cracker</title>
  6.         <style>
  7.             body {
  8.                 background-color: #000000;
  9.                 color: #FFFFFF;
  10.                 text-align: center;
  11.                 font-family: tahoma;
  12.             }
  13.             div {
  14.                 background-color: #1C1C1C;
  15.                 width: 50%;
  16.                 margin: auto;
  17.                 padding-top: 10px;
  18.                 padding-bottom: 10px;
  19.                 margin-top: 5px;
  20.                 margin-bottom: 5px;
  21.             }
  22.             hr {
  23.                 width: 50%;
  24.             }
  25.         </style>
  26.     </head>
  27.     <body>
  28.         <h1>Cracker</h1>
  29.         <div>
  30.             <form method="post">
  31.                 <input type="text" name="file" placeholder="File">
  32.                 <input type="text" name="delimiter" placeholder="Delimiter">
  33.                 <input type="submit" name="submit" value="Submit">
  34.             </form>
  35.         </div>
  36.         <div>
  37.         <?php
  38.  
  39.         if ($_POST) {
  40.            
  41.             set_time_limit(0);
  42.            
  43.             function crack($username, $password)
  44.             {
  45.                 echo $username . ':' . $password;
  46.                 echo '<br />';
  47.                 // Here you should have your curl function
  48.             }
  49.            
  50.             foreach (file($_POST['file']) as $line) {
  51.                 $line = explode($_POST['delimiter'], $line);
  52.                 $username = $line[0];
  53.                 $password = $line[1];
  54.                 crack($username, $password);
  55.             }
  56.            
  57.             echo PHP_EOL;
  58.            
  59.         }
  60.  
  61.         ?>
  62.         </div>
  63.     </body>
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement