Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. <?php
  2. /*
  3. Script name: ZIPLINK with filename/filesize
  4. Create: FelipeWF (21/10/2017)
  5. Idea taken from: Amanat
  6. */
  7. function cria($link, $nome, $tamanho) {
  8. $host = "https://sloow.000webhostapp.com/encurtador.php";
  9. $link1 = base64_encode($link);
  10. $nome1 = base64_encode($nome);
  11. $tamanho1 = base64_encode($tamanho);
  12. $formata = base64_encode("link:".$link1."nome:".$nome1."tamanho:".$tamanho1."final");
  13. echo $host."?info=".$formata;
  14. }
  15. function decifra($key){
  16. $link = $key;
  17. $dec = base64_decode($link);
  18. $nome = parte($dec, "nome:", "tamanho:");
  19. $tamanho = parte($dec, "tamanho:", "final");
  20. $link_ = parte($dec, "link:", "nome:");
  21. $nome1 = base64_decode($nome);
  22. $tamanho1 = base64_decode($tamanho);
  23. $link_1 = base64_decode($link_);
  24. $info = array ("titulo" => $nome1, "tamanho" => $tamanho1, "link" => $link_1);
  25. return $info;
  26. }
  27. function parte($str, $left, $right){
  28. $str = substr(stristr($str, $left) , strlen($left));
  29. $leftLen = strlen(stristr($str, $right));
  30. $leftLen = $leftLen ? -($leftLen) : strlen($str);
  31. $str = substr($str, 0, $leftLen);
  32. return $str;
  33. }
  34. if(isset($_GET['criar']) && isset($_GET['link']) && isset($_GET['nome']) && isset($_GET['tamanho'])) {
  35. $criar = $_GET['criar'];
  36. $link = $_GET['link'];
  37. $nome = $_GET['nome'];
  38. $tamanho = $_GET['tamanho'];
  39.  
  40. if($criar == 1){ cria($link, $nome, $tamanho); }
  41. else { header("Location: http://google.com.br/"); }
  42.  
  43. }
  44. elseif(isset($_GET['info'])) {
  45. if(base64_decode($_GET['info']) == null) { header("location: https://www.google.com.br/"); }
  46. $info = decifra($_GET['info']);
  47. ?>
  48. <html>
  49. <head>
  50. <meta charset="utf-8" />
  51. <title> GhostLeech - <?php echo $info['titulo']; ?> </title>
  52. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
  53. <link href="https://fonts.googleapis.com/css?family=Satisfy" rel="stylesheet">
  54. </head>
  55. <body style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnHjzj9DUnn-m9zLAum7AQ06Tsg0IZsKV9ZZgC-aTwmubdCCIn');"><br></br></br>
  56. <h1 align="center" style="font-family: 'Satisfy', cursive;">GhostLeech</h1>
  57. <div class="card text-center" style="width: 700px;float: 30px;margin: 0 auto;">
  58. <div class="card-header">
  59. Download
  60. </div>
  61. <div class="card-body">
  62. <h4 class="card-title">Info</h4>
  63. <p class="card-text">File: <?php echo $info['titulo']; ?></p>
  64. <p class="card-text">Size: <?php echo $info['tamanho']; ?></p>
  65. <p class="card-text">Server by: GhostLeech =)</p>
  66. <a href="<?php echo $info['link']; ?>" class="btn btn-success">Download</a>
  67. </div>
  68. <div class="card-footer text-muted">
  69. Developed by FelipeWF | Idea by Amanat
  70. </div>
  71. </div>
  72. </body>
  73. </html>
  74. <?php
  75. }
  76. else { header("Location: https://www.google.com.br/"); }
  77.  
  78. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement