You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

garbage.php 870B

123456789101112131415161718192021222324252627
  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. $chunks=isset($_GET['ckSize']) ? intval($_GET['ckSize']) : 4;
  21. if(empty($chunks)){$chunks = 4;}
  22. if($chunks>100){$chunks = 100;}
  23. for($i=0;$i<$chunks;$i++){
  24. echo $data;
  25. flush();
  26. }
  27. ?>