Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Script name: ZIPLINK with filename/filesize
- Create: FelipeWF (21/10/2017)
- Idea taken from: Amanat
- */
- function cria($link, $nome, $tamanho) {
- $host = "https://sloow.000webhostapp.com/encurtador.php";
- $link1 = base64_encode($link);
- $nome1 = base64_encode($nome);
- $tamanho1 = base64_encode($tamanho);
- $formata = base64_encode("link:".$link1."nome:".$nome1."tamanho:".$tamanho1."final");
- echo $host."?info=".$formata;
- }
- function decifra($key){
- $link = $key;
- $dec = base64_decode($link);
- $nome = parte($dec, "nome:", "tamanho:");
- $tamanho = parte($dec, "tamanho:", "final");
- $link_ = parte($dec, "link:", "nome:");
- $nome1 = base64_decode($nome);
- $tamanho1 = base64_decode($tamanho);
- $link_1 = base64_decode($link_);
- $info = array ("titulo" => $nome1, "tamanho" => $tamanho1, "link" => $link_1);
- return $info;
- }
- function parte($str, $left, $right){
- $str = substr(stristr($str, $left) , strlen($left));
- $leftLen = strlen(stristr($str, $right));
- $leftLen = $leftLen ? -($leftLen) : strlen($str);
- $str = substr($str, 0, $leftLen);
- return $str;
- }
- if(isset($_GET['criar']) && isset($_GET['link']) && isset($_GET['nome']) && isset($_GET['tamanho'])) {
- $criar = $_GET['criar'];
- $link = $_GET['link'];
- $nome = $_GET['nome'];
- $tamanho = $_GET['tamanho'];
- if($criar == 1){ cria($link, $nome, $tamanho); }
- else { header("Location: http://google.com.br/"); }
- }
- elseif(isset($_GET['info'])) {
- if(base64_decode($_GET['info']) == null) { header("location: https://www.google.com.br/"); }
- $info = decifra($_GET['info']);
- ?>
- <html>
- <head>
- <meta charset="utf-8" />
- <title> GhostLeech - <?php echo $info['titulo']; ?> </title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
- <link href="https://fonts.googleapis.com/css?family=Satisfy" rel="stylesheet">
- </head>
- <body style="background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnHjzj9DUnn-m9zLAum7AQ06Tsg0IZsKV9ZZgC-aTwmubdCCIn');"><br></br></br>
- <h1 align="center" style="font-family: 'Satisfy', cursive;">GhostLeech</h1>
- <div class="card text-center" style="width: 700px;float: 30px;margin: 0 auto;">
- <div class="card-header">
- Download
- </div>
- <div class="card-body">
- <h4 class="card-title">Info</h4>
- <p class="card-text">File: <?php echo $info['titulo']; ?></p>
- <p class="card-text">Size: <?php echo $info['tamanho']; ?></p>
- <p class="card-text">Server by: GhostLeech =)</p>
- <a href="<?php echo $info['link']; ?>" class="btn btn-success">Download</a>
- </div>
- <div class="card-footer text-muted">
- Developed by FelipeWF | Idea by Amanat
- </div>
- </div>
- </body>
- </html>
- <?php
- }
- else { header("Location: https://www.google.com.br/"); }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement