garbage.php 761 B

123456789101112131415161718192021222324
  1. <?php
  2. // Disable Compression
  3. @ini_set('zlib.output_compression', 'Off');
  4. @ini_set('output_buffering', 'Off');
  5. @ini_set('output_handler', '');
  6. // Headers
  7. header( "HTTP/1.1 200 OK" );
  8. // Download follows...
  9. header('Content-Description: File Transfer');
  10. header('Content-Type: application/octet-stream');
  11. header('Content-Disposition: attachment; filename=random.dat');
  12. header('Content-Transfer-Encoding: binary');
  13. // Never cache me
  14. header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
  15. header("Cache-Control: post-check=0, pre-check=0", false);
  16. header("Pragma: no-cache");
  17. // Generate data
  18. $data=openssl_random_pseudo_bytes(1048576);
  19. // Deliver chunks of 1048576 bytes
  20. for($i=0;$i<intval($_GET["ckSize"]);$i++){
  21. echo $data;
  22. flush();
  23. }
  24. ?>