powdered

Untitled

Jul 7th, 2023
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2.  
  3. if(!isset($_GET['id'])) {
  4. die('ID isnt set');
  5. }
  6. $AID = $_GET['id'];
  7. if(file_exists("$AID"))
  8. {
  9. header("Content-Type: application/octet-stream");
  10. header("Content-Transfer-Encoding: Binary");
  11. header("Content-disposition: attachment; filename=".$AID);
  12.  
  13. die(file_get_contents($AID));
  14. }
  15. elseif(file_exists($AID.".lua"))
  16. {
  17. header("Content-Type: application/octet-stream");
  18. header("Content-Transfer-Encoding: Binary");
  19. header("Content-disposition: attachment; filename=".$AID);
  20.  
  21. $data = "\r\n" . file_get_contents($AID.".lua");
  22. $key = file_get_contents($_SERVER['DOCUMENT_ROOT']."/private/keys/PrivateKey.pem");
  23. openssl_sign($data, $sig, $key, OPENSSL_ALGO_SHA1);
  24. //die("" . sprintf("%%%s%%%s", base64_encode($sig), $data));
  25. die($data);
  26. }
  27. else
  28. {
  29. die(header("Location: https://assetdelivery.roblox.com/v1/asset/?assetversionid=".$_SERVER['QUERY_STRING']));
  30. }
  31. ?>
Add Comment
Please, Sign In to add comment