|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Please encode this decoded php file. |
|
Posted: Mon Sep 24, 2012 6:33 pm |
|
|
choupal |
Beginner |
|
|
Joined: Sep 24, 2012 |
Posts: 1 |
|
|
|
|
|
|
|
Please encode these files and also suggest me which encoding methodology has been used on the file to decode it.
Code: |
<?php ${"GLO\x42\x41L\x53"}["\x6as\x65i\x74\x68\x68e"]="\x6co\x67i\x6e";${"GL\x4fBAL\x53"}["\x77m\x78\x71\x76fz\x6d\x7a"]="d\x62\x75\x73\x65rn\x61\x6de";${"\x47L\x4fBA\x4cS"}["plb\x6c\x77b"]="\x68\x6f\x73\x74\x6e\x61\x6d\x65";${"\x47L\x4f\x42\x41L\x53"}["\x6eq\x64ea\x6e\x76\x65v\x70"]="\x73\x65\x74\x75\x70ru\x6e";${"\x47L\x4f\x42A\x4cS"}["\x79\x78\x68l\x74\x78\x72\x7a\x66b"]="\x73\x65\x74u\x70\x63\x6f\x64e";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x6fnh\x68t\x61\x70\x75\x75"]="\x64\x6fcu\x72l";${"GL\x4f\x42\x41L\x53"}["\x64t\x73\x70\x64\x62\x64"]="\x65\x78\x63\x6c\x75\x64\x65\x69p\x74\x61\x62\x6c\x65";${"G\x4c\x4fBA\x4c\x53"}["\x72\x6c\x75\x6f\x74cukc"]="fi\x6c\x65\x6e\x61\x6d\x65";${"G\x4c\x4fB\x41\x4cS"}["s\x68\x6fv\x6ca\x74\x63\x75"]="\x73\x69\x74\x65\x6e\x61\x6d\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["m\x72e\x6f\x62jd\x77d\x72\x6e"]="\x64oc\x68o\x6d\x65";${"\x47L\x4f\x42AL\x53"}["\x65\x68\x75kzr\x70\x75\x71\x76\x62\x63"]="\x6c\x6fg\x74\x61\x62\x6ce";${"GLO\x42\x41\x4c\x53"}["dmupcp\x6f\x71"]="\x61\x64\x6din\x74\x61b\x6c\x65";${"G\x4c\x4fBA\x4c\x53"}["\x6d\x62\x6cp\x63\x76\x70"]="\x6fp\x65\x72a\x74\x6f\x72\x74ab\x6c\x65";${"\x47LOBA\x4c\x53"}["\x62\x6ck\x63\x72\x6d\x72\x63\x66"]="\x64\x62pa\x73\x73w\x6f\x72\x64";${"\x47LOB\x41\x4c\x53"}["\x74ysbzr\x72\x6b\x71"]="\x73e\x74\x75p";${"\x47\x4cOBA\x4c\x53"}["\x72\x71i\x71\x68f\x63f\x6fe"]="\x64a\x74\x61bas\x65\x6e\x61m\x65";${"G\x4c\x4f\x42AL\x53"}["\x61n\x62\x63\x74\x6f\x71\x74\x6a\x7a"]="\x68a\x6e\x64l\x65";${"\x47L\x4f\x42\x41\x4cS"}["\x63e\x6d\x6b\x71\x73\x72s\x77\x75"]="c\x6ea\x6d\x65";${"\x47\x4c\x4fBALS"}["hts\x6d\x72\x69v\x74"]="\x69\x6d\x61g\x65P\x61t\x68";${"G\x4cO\x42\x41\x4c\x53"}["ks\x73\x65v\x62xfrv\x74j"]="\x64\x65\x70\x74\x74\x61\x62\x6c\x65";${"G\x4c\x4fB\x41\x4c\x53"}["h\x67\x7a\x70q\x6enpo"]="\x6dyp\x61th";${"G\x4c\x4fB\x41LS"}["\x66\x67\x66\x6d\x75\x74zs"]="\x63a\x6e\x6e\x65\x64\x74a\x62\x6c\x65";function insertAdmin(){${"G\x4c\x4f\x42\x41L\x53"}["\x7a\x65\x69b\x72i\x76\x70y\x79\x6b"]="\x70as\x73\x77or\x64";${"\x47\x4c\x4f\x42\x41LS"}["nw\x61\x73\x77\x68\x72e\x7a\x68e\x64"]="c\x6f\x6dp\x61\x6e\x79";${${"GL\x4f\x42\x41\x4c\x53"}["\x6a\x73\x65\x69\x74\x68\x68\x65"]}=$_POST["\x6c\x6fgi\x6e"];${${"\x47\x4cO\x42A\x4c\x53"}["\x7a\x65\x69briv\x70y\x79\x6b"]}=$_POST["\x70a\x73sw\x6f\x72\x64"];${"GL\x4f\x42\x41\x4c\x53"}["\x79r\x77u\x6d\x6c\x64\x75"]="\x63\x65\x6d\x61\x69\x6c";$fuweeq="\x64och\x6f\x6d\x65";$sdsxozj="\x64oc\x75\x72\x6c";${"\x47\x4c\x4f\x42AL\x53"}["\x72\x67\x63\x6ap\x69f\x79\x70\x71\x75"]="\x64\x62p\x61\x73swo\x72d";${${"G\x4c\x4f\x42\x41\x4c\x53"}["nw\x61\x73\x77\x68\x72\x65\x7a\x68\x65\x64"]}=$_POST["\x63\x6f\x6dp\x61ny"];${"\x47L\x4fB\x41LS"}["d\x70q\x74d\x6d\x6b\x6f"]="\x64\x61\x74a\x62a\x73\x65n\x61\x6d\x65";${${"\x47L\x4fBAL\x53"}["\x63e\x6d\x6b\x71\x73\x72\x73\x77\x75"]}=$_POST["c\x6fntact"];${${"GL\x4f\x42\x41\x4cS"}["\x79\x72wu\x6dl\x64\x75"]}=$_POST["\x65mail"];${"\x47\x4cOB\x41L\x53"}["\x75\x70dspx"]="\x68o\x73\x74\x6e\x61\x6d\x65";${"GLO\x42AL\x53"}["\x6a\x71\x73\x77\x72x\x65\x68"]="si\x74\x65na\x6de";${$sdsxozj}=$_POST["\x64o\x63\x75rl"];${$fuweeq}=$_POST["d\x6f\x63h\x6fme"];$vqhrvcl="\x64b\x70\x61s\x73w\x6f\x72\x64";$husxqy="h\x6fs\x74\x6ea\x6de";${${"\x47LOBA\x4c\x53"}["\x74ys\x62zr\x72\x6bq"]}=$_POST["\x73etup"];$tzdflllwf="\x73\x65t\x75\x70";${${"\x47\x4cOB\x41\x4c\x53"}["\x77\x6dx\x71v\x66\x7amz"]}=$_POST["db\x75\x73e\x72n\x61\x6d\x65"];${${"\x47L\x4f\x42ALS"}["\x62l\x6b\x63\x72\x6dr\x63f"]}=$_POST["\x64b\x70as\x73\x77or\x64"];${${"\x47\x4cO\x42\x41LS"}["\x75p\x64\x73p\x78"]}=$_POST["h\x6fs\x74\x6e\x61me"];${${"\x47\x4cOB\x41\x4cS"}["r\x71iqhfcfo\x65"]}=$_POST["d\x62n\x61\x6d\x65"];${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67r\x79\x63l\x78\x71u\x64\x6f"]="\x64\x62\x63\x6f\x6e";${${"\x47\x4cO\x42\x41L\x53"}["\x73\x68o\x76\x6c\x61t\x63\x75"]}=$_POST["\x73it\x65\x6e\x61\x6d\x65"];createTables(${${"\x47\x4c\x4fB\x41LS"}["\x72\x71\x69\x71hf\x63\x66\x6fe"]},${${"GL\x4f\x42\x41\x4c\x53"}["pl\x62lw\x62"]},${${"\x47L\x4f\x42\x41\x4cS"}["\x77\x6d\x78\x71vfzmz"]},${${"GL\x4fB\x41\x4cS"}["r\x67\x63j\x70\x69f\x79\x70q\x75"]});writeConfig(${${"GLOB\x41\x4c\x53"}["d\x70q\x74\x64mk\x6f"]},${$husxqy},${${"\x47\x4c\x4fBA\x4c\x53"}["wm\x78\x71\x76fz\x6dz"]},${$vqhrvcl},${${"\x47\x4cOB\x41\x4cS"}["\x6a\x71s\x77\x72\x78\x65\x68"]},${${"G\x4cOB\x41\x4c\x53"}["\x6d\x72\x65\x6f\x62\x6ad\x77\x64\x72\x6e"]},${${"G\x4cO\x42A\x4c\x53"}["\x69o\x6e\x68\x68t\x61\x70uu"]},${$tzdflllwf});${${"\x47\x4cOB\x41\x4c\x53"}["g\x72\x79\x63lxq\x75d\x6f"]}=new DB("$databasename","$hostname","$dbusername","$dbpassword");$dbcon->execute("ins\x65r\x74\x20\x69nto\x20a\x64\x6din\x28logi\x6e\x2c\x70as\x73\x77ord,c\x6fmpan\x79,c\x6f\x6etac\x74_\x6ea\x6de\x2c\x63o\x6e\x74\x61c\x74_em\x61\x69\x6c,\x77\x69ndow_c\x6cos\x65_ti\x6de,\x6fpe\x72a\x74\x6fr\x5f\x61cti\x76\x65_t\x69m\x65,\x70\x6f\x6cl\x69\x6eg\x5ft\x69m\x65,\x74\x72a\x6es\x63\x72\x69p\x74_\x6d\x73\x67\x2c\x74\x72\x61n\x73\x63\x72i\x70t_\x65\x6d\x61\x69\x6c\x2c\x6f\x6e\x6c\x69ne_\x69co\x6e_\x6ea\x6d\x65\x2c\x6ff\x66l\x69ne\x5f\x69co\x6e\x5fna\x6d\x65\x2ccha\x74\x5f\x74hem\x65,\x73ou\x6ed\x5f\x6e\x61\x6d\x65\x29v\x61\x6c\x75\x65\x73(\x27$login'\x2c'$password\x27,\x27$company\x27,\x27$cname\x27\x2c'$cemail',30,\x33\x30,3\x30,\x27\x48i,\x20\x57\x65\x6c\x63om\x65 \x74\x6f\x20\x6f\x75\x72\x20comp\x61ny\x21',\x27Hello %\x25\x75s\x65r\x6e\x61\x6d\x65%%\x2c\n\x42elow\x20i\x73\x20the co\x6d\x70\x6ce\x74e \x74\x72\x61\x6e\x73cri\x70t \x6f\x66 \x79ou\x72\x20\x63\x68\x61\x74 \x73\x65\x73\x73ion:\n\x3d=\x3d\n\x25\x25\x74\x72an\x73\x63\x72\x69pt%\x25\n==\x3d\n\x54h\x61\x6e\x6b y\x6f\x75'\x2c\x27\x6fn\x6cin\x65\x2eg\x69f\x27\x2c'\x6f\x66\x66l\x69\x6e\x65\x2eg\x69\x66\x27,\x27\x62l\x75\x65'\x2c'\x64o\x6fr\x62e\x6cl.w\x61v'\x29");echo"\x3c\x70\x20c\x6c\x61s\x73='\x73e\x74\x75p\x5f\x74ex\x74'\x3eY\x6f\x75\x20\x68ave\x20\x53u\x63\x63\x65\x73\x73f\x75\x6c\x6c\x79 \x63\x6f\x6d\x70let\x65d the\x20se\x74\x75p";echo"<\x62\x72>\x43\x6c\x69\x63\x6b\x20h\x65\x72e t\x6f \x67\x6f \x74o\x20\x79our\x20<a \x68\x72e\x66=\x27$docurl/ad\x6d\x69n/lo\x67\x69n.\x70\x68\x70\x27 c\x6ca\x73\x73\x3d\x27\x73\x65tu\x70\x5f\x74e\x78t1'>L\x6f\x67i\x6e Pa\x67e.\x3c\x2fa>\x3c\x2f\x70>";}${"\x47L\x4fBA\x4c\x53"}["\x6ay\x76\x73\x65\x6d\x63\x63\x75"]="i\x6e\x66o\x74a\x62le";${"\x47\x4c\x4fB\x41L\x53"}["\x6e\x6e\x64\x6er\x62\x62\x71"]="\x73p\x61\x6di\x70t\x61\x62\x6ce";${"\x47\x4c\x4fBALS"}["b\x6fr\x6fb\x78ngj"]="i\x6dag\x65\x55\x72\x6c";function createTables($databasename,$hostname,$dbusername,$dbpassword){$xdecxwipoo="\x6fp\x65\x72\x61to\x72t\x61\x62\x6c\x65";$ilqnhrwiuak="\x64\x62c\x6f\x6e";$xwiweyq="\x6f\x70\x72\x64\x65\x70\x74\x74\x61bl\x65";global$dbcon;${$ilqnhrwiuak}=new DB("$databasename","$hostname","$dbusername","$dbpassword");$jgltyy="\x73\x65\x73\x73iont\x61\x62le";${${"\x47L\x4f\x42\x41L\x53"}["d\x6d\x75pc\x70o\x71"]}="CR\x45\x41T\x45 \x54\x41\x42\x4cE\x20\x49F \x4e\x4f\x54 \x45X\x49\x53T\x53 a\x64\x6d\x69\x6e\x28i\x64\x20in\x74 p\x72\x69m\x61\x72\x79 \x6bey a\x75to_i\x6ec\x72ement\x2clog\x69n v\x61rcha\x72\x28\x350\x29\x2c\x70as\x73w\x6fr\x64 v\x61\x72\x63\x68a\x72(5\x30),\x63\x6fm\x70an\x79 var\x63\x68a\x72\x28\x31\x300\x29\x2c\x63\x6f\x6e\x74a\x63t_n\x61m\x65 v\x61r\x63\x68a\x72\x2810\x30)\x2c\x63\x6f\x6e\x74a\x63\x74_\x65\x6d\x61il va\x72ch\x61r(\x31\x360),\x77\x69n\x64\x6fw\x5f\x63lose\x5f\x74\x69\x6d\x65 \x6d\x65di\x75mi\x6e\x74\x282),\x6f\x70era\x74\x6fr_\x61c\x74iv\x65_ti\x6d\x65\x20me\x64i\x75\x6din\x74\x28\x32)\x2c\x70\x6f\x6c\x6c\x69ng_\x74\x69\x6de me\x64\x69\x75mi\x6et(\x32\x29,\x74ran\x73\x63r\x69\x70\x74_\x6d\x73g\x20t\x65xt\x2ct\x72a\x6e\x73cri\x70\x74\x5fem\x61\x69\x6c text\x2con\x6cine\x5fi\x63\x6fn_n\x61me \x76\x61\x72ch\x61r(5\x30)\x2coffli\x6e\x65_\x69\x63\x6f\x6e\x5fnam\x65\x20\x76archa\x72(5\x30)\x2ccha\x74_them\x65\x20\x76a\x72c\x68a\x72(5\x30\x29\x2cco\x6d\x70\x61n\x79\x5fl\x6fg\x6f\x20\x76\x61rcha\x72(50\x29\x2c\x73o\x75nd_\x6e\x61\x6d\x65 v\x61rc\x68\x61\x72\x28\x35\x30\x29)\x45N\x47I\x4e\x45=\x49NN\x4fD\x42";$jyucpod="\x63\x68\x61\x74\x74\x61b\x6c\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["\x66\x63ai\x64v\x6b\x78\x65"]="opr\x64\x65p\x74\x74a\x62\x6c\x65";${"G\x4c\x4fB\x41\x4c\x53"}["\x74\x76n\x6b\x62\x6f\x6fc\x6e"]="\x6c\x6f\x67\x74\x61\x62l\x65";$dbcon->execute(${${"\x47L\x4fB\x41L\x53"}["\x64m\x75\x70c\x70\x6f\x71"]});${${"\x47\x4c\x4f\x42\x41LS"}["kss\x65\x76\x62\x78\x66\x72\x76\x74\x6a"]}="\x43REAT\x45\x20T\x41BL\x45\x20I\x46\x20NO\x54\x20EXIST\x53 \x64epar\x74\x6d\x65\x6e\x74(\x64\x69\x64 \x69\x6et\x20\x70\x72i\x6da\x72y\x20key\x20a\x75t\x6f_inc\x72\x65\x6de\x6e\x74\x2c\x6e\x61\x6de \x76\x61\x72\x63ha\x72\x281\x30\x30\x29,\x65\x6da\x69l va\x72c\x68a\x72\x28\x31\x36\x30)\x2cadmini\x64\x20\x6ded\x69\x75\x6d\x69nt(3),\x64escr\x69ption \x74\x65\x78\x74,\x77e\x6cc\x6fm\x65_m\x73\x67 tex\x74,\x6eo_\x75se\x72\x5f\x6ds\x67 \x74\x65x\x74,\x65nd_\x6d\x73\x67\x20\x74\x65xt\x2c\x73\x74at\x75\x73\x20tinyint\x28\x31),po\x6cling\x5f\x74\x79\x70e \x74iny\x69\x6et(1),vis\x69\x62\x6c\x65\x5fp\x75bl\x69\x63\x20t\x69ny\x69\x6e\x74(1),\x63h\x61t\x5fqueu\x65\x20\x74i\x6ey\x69\x6et\x28\x31\x29,s\x61\x76e_tr\x61\x6esc\x72\x69\x70\x74 \x74\x69n\x79\x69\x6et(\x31\x29,\x74r\x61\x6e\x73\x63r\x69\x70t_ex\x70ire\x20\x76archa\x72\x28\x320)\x2c\x65m\x61i\x6c\x5f\x74r\x61\x6es\x63ript\x20\x74in\x79\x69n\x74(1),\x74\x72\x61\x66fic_mo\x6eito\x72\x20t\x69ny\x69nt(\x31),max\x69\x6d\x75\x6d\x5fc\x68\x61ts\x20\x6ded\x69umi\x6e\x74\x28\x33)\x29E\x4e\x47\x49N\x45=\x49NN\x4fDB";$dbcon->execute(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6bs\x73\x65\x76\x62\x78f\x72\x76\x74\x6a"]});${$xdecxwipoo}="CR\x45\x41T\x45 \x54ABLE\x20I\x46\x20\x4e\x4fT\x20\x45X\x49S\x54\x53 \x6f\x70er\x61to\x72\x28\x6fi\x64 i\x6e\x74\x20\x70r\x69\x6da\x72y key\x20au\x74o_i\x6ec\x72\x65m\x65n\x74\x2c\x6eame\x20\x76\x61\x72c\x68\x61\x72\x28\x3100\x29,e\x6da\x69l\x20\x76\x61rc\x68\x61r\x281\x360)\x2c\x75\x73\x65rn\x61\x6de\x20\x76arc\x68\x61r(\x35\x30\x29\x2c\x70ass\x77ord \x76\x61rcha\x72(50),ad\x6d\x69\x6ei\x64\x20\x6d\x65\x64iu\x6d\x69\x6e\x74(3)\x2c\x70\x69\x63\x74ur\x65\x20v\x61rc\x68\x61r(50),rate\x5f\x6f\x70\x65\x72\x61\x74or\x20\x74\x69\x6eyi\x6et\x28\x31\x29\x2c\x6fp\x72\x32\x6f\x70r_\x63h\x61\x74 ti\x6ey\x69n\x74(\x31\x29,\x6f\x70r\x5ftheme v\x61\x72c\x68ar(5\x30))E\x4eGI\x4e\x45\x3d\x49N\x4eO\x44B";$ruqhlfxyve="\x63ha\x74t\x61\x62le";$bvjtvsdbhcjv="\x65\x78\x63l\x75d\x65ip\x74\x61b\x6ce";${"GL\x4fB\x41LS"}["\x6e\x6f\x6d\x67\x61\x72\x73\x78h"]="s\x65\x73\x73i\x6fn\x74\x61\x62\x6ce";$dbcon->execute(${${"\x47L\x4f\x42\x41L\x53"}["m\x62\x6cp\x63v\x70"]});${${"\x47LO\x42AL\x53"}["\x66c\x61\x69\x64\x76k\x78\x65"]}="\x43R\x45\x41\x54\x45 TABL\x45 \x49\x46 N\x4f\x54\x20E\x58I\x53TS \x6fprdep\x74\x28i\x64 \x69nt \x70r\x69\x6da\x72y\x20ke\x79 a\x75\x74o_\x69\x6e\x63re\x6d\x65\x6et\x2c\x6f\x69\x64\x20\x69\x6e\x74,\x64\x69d \x69\x6et,ord\x65rno\x20\x69\x6e\x74(\x35)\x2cfore\x69g\x6e \x6be\x79\x28oid\x29\x72ef\x65ren\x63\x65s o\x70\x65r\x61to\x72\x28\x6f\x69\x64\x29,\x66\x6fr\x65ign\x20ke\x79(\x64i\x64\x29re\x66\x65\x72e\x6e\x63\x65s\x20d\x65\x70a\x72tme\x6e\x74\x28d\x69\x64) \x6fn\x20de\x6ce\x74e\x20ca\x73cade\x20\x6f\x6e\x20\x75p\x64\x61\x74\x65 \x63a\x73cad\x65)en\x67\x69\x6ee=i\x6eno\x64b";$dbcon->execute(${$xwiweyq});${$jyucpod}="\x43\x52\x45A\x54E\x20\x54\x41\x42\x4cE IF\x20\x4e\x4f\x54\x20E\x58\x49\x53\x54S \x63ha\x74(c\x68\x61\x74i\x64\x20i\x6et\x20pri\x6dary \x6b\x65\x79\x20\x61u\x74\x6f_\x69\x6e\x63\x72e\x6d\x65\x6et,n\x61\x6d\x65\x20\x76a\x72\x63\x68a\x72(\x31\x30\x30)\x2cema\x69\x6c v\x61\x72\x63\x68\x61\x72(\x3160\x29\x2c\x69\x70 v\x61rchar(\x32\x30)\x2c\x73\x74\x61\x72t\x5fm\x73\x67\x20\x74e\x78t,\x64id\x20\x69\x6et\x2c\x74\x72\x61\x6escr\x69\x70\x74\x20\x74\x65\x78t\x2c\x73\x74\x61t\x75\x73 \x76\x61rch\x61r\x28\x320\x29\x2co\x69\x64 i\x6et\x2cos\x74\x61\x74us v\x61r\x63\x68a\x72\x28\x32\x30)\x2cs\x74\x61\x72t\x5ft\x69\x6de\x20\x74im\x65\x73\x74a\x6d\x70\x20NUL\x4c\x20DE\x46\x41\x55LT \x4eUL\x4c\x2c\x6f\x73ta\x72\x74_time tim\x65s\x74\x61m\x70\x20\x4eUL\x4c D\x45F\x41\x55\x4c\x54 N\x55\x4cL,\x65\x6e\x64\x5ft\x69m\x65 t\x69\x6d\x65s\x74\x61mp\x20NU\x4cL \x44\x45\x46AULT\x20\x4e\x55L\x4c,\x72\x65qu\x65\x73t\x20\x6d\x65dium\x69n\x74\x28\x32)\x2cl\x61s\x74_a\x63\x74i\x76\x65\x20\x74\x69\x6d\x65stam\x70\x20\x4e\x55\x4cL\x20D\x45F\x41U\x4c\x54\x20NU\x4cL,\x6fpe\x72a\x74\x6f\x72\x5f\x61cti\x76\x65\x20\x74\x69mes\x74a\x6dp NULL\x20DE\x46A\x55\x4c\x54 N\x55\x4c\x4c\x29E\x4eG\x49\x4e\x45=I\x4eNOD\x42";$dbcon->execute(${$ruqhlfxyve});${${"\x47\x4cOB\x41L\x53"}["\x66gf\x6d\x75\x74\x7as"]}="CRE\x41\x54\x45\x20\x54A\x42LE \x49F\x20N\x4f\x54 \x45X\x49\x53T\x53\x20c\x61nn\x65d(\x69\x64\x20\x69n\x74 \x70\x72i\x6da\x72\x79 k\x65\x79 \x61\x75\x74o\x5fi\x6ec\x72\x65m\x65\x6e\x74,o\x69\x64\x20int,\x64id int, \x74\x79p\x65\x20\x63\x68ar\x28\x31\x29\x2c\x6e\x61\x6d\x65\x20tex\x74,\x6des\x73age\x20\x74e\x78\x74)E\x4eGI\x4eE=I\x4eNO\x44\x42";$dbcon->execute(${${"G\x4c\x4f\x42AL\x53"}["\x66g\x66\x6d\x75t\x7as"]});${${"G\x4cO\x42\x41\x4cS"}["\x6e\x6e\x64\x6e\x72b\x62q"]}="\x43R\x45\x41TE T\x41\x42L\x45 \x49F\x20N\x4fT \x45X\x49\x53\x54\x53 \x73\x70\x61\x6d\x69p\x28\x69\x64\x20int\x20\x70ri\x6d\x61\x72\x79 \x6b\x65y a\x75\x74o_incr\x65m\x65\x6et\x2ci\x70\x20\x76archar\x282\x30\x29,\x73pam_e\x6d\x61\x69\x6c\x20\x76a\x72\x63\x68ar(\x3100)\x29ENGIN\x45=INNODB";$dbcon->execute(${${"G\x4cOBALS"}["nn\x64n\x72\x62b\x71"]});${"\x47L\x4fB\x41\x4cS"}["\x7a\x66ux\x61\x6a\x77"]="\x69\x6e\x66\x6f\x74\x61\x62le";${${"\x47L\x4f\x42\x41\x4cS"}["e\x68ukzr\x70\x75\x71\x76\x62\x63"]}="\x43\x52\x45AT\x45 \x54\x41BL\x45 IF\x20\x4e\x4f\x54\x20\x45X\x49S\x54S\x20\x63h\x61t\x6co\x67\x73(\x69d \x69n\x74\x20p\x72\x69\x6dary\x20k\x65\x79 \x61u\x74o\x5fi\x6ecr\x65m\x65n\x74,c\x68a\x74\x69d \x69n\x74,oi\x64\x20i\x6et,\x64i\x64 \x69nt,c\x61\x6cl\x73\x74\x61\x74u\x73\x20\x74\x69ny\x69\x6et\x281)\x2c\x73\x74a\x72te\x64 t\x69mestam\x70\x20\x4e\x55LL \x44\x45\x46AULT \x4e\x55\x4cL\x29\x45N\x47\x49\x4e\x45\x3d\x49N\x4e\x4f\x44B";$dbcon->execute(${${"\x47LO\x42\x41L\x53"}["e\x68u\x6b\x7a\x72\x70\x75\x71\x76b\x63"]});${$bvjtvsdbhcjv}="CRE\x41TE\x20\x54\x41B\x4cE I\x46\x20N\x4f\x54 \x45\x58IS\x54\x53\x20\x65x\x63l\x75d\x65\x69\x70(\x69d\x20i\x6e\x74 pr\x69m\x61r\x79 k\x65y\x20a\x75t\x6f\x5fi\x6ec\x72\x65\x6den\x74\x2cip \x76a\x72c\x68a\x72(20))\x45NG\x49\x4eE\x3d\x49\x4e\x4eO\x44\x42";$dbcon->execute(${${"\x47\x4c\x4fB\x41\x4c\x53"}["dt\x73p\x64\x62\x64"]});${$jgltyy}="\x43REA\x54E T\x41\x42\x4c\x45 I\x46\x20N\x4f\x54 E\x58\x49\x53T\x53 \x6fp\x72se\x73\x73i\x6fn\x28\x69d\x20\x69n\x74 \x70r\x69\x6da\x72y \x6be\x79 \x61\x75\x74\x6f\x5fi\x6ec\x72\x65\x6d\x65nt,\x6fid\x20i\x6et,s\x74\x61r\x74\x5f\x74i\x6d\x65\x20t\x69\x6d\x65st\x61\x6dp NU\x4c\x4c\x20\x44EFA\x55\x4c\x54\x20\x4e\x55LL\x2cl\x61s\x74\x5f\x75pdate\x64\x5f\x74i\x6d\x65\x20\x74\x69mestam\x70\x20NUL\x4c\x20D\x45\x46AU\x4cT\x20NU\x4cL\x2cs\x74atu\x73\x20\x76\x61\x72\x63\x68a\x72\x2810),se\x73s\x69oni\x64 v\x61r\x63\x68\x61r(60),\x61\x76ai\x6c\x61\x62\x6c\x65_status\x20\x74in\x79\x69\x6e\x74\x28\x31\x29\x29\x45\x4e\x47\x49\x4eE\x3d\x49NN\x4f\x44B";$dbcon->execute(${${"G\x4c\x4f\x42A\x4c\x53"}["no\x6d\x67\x61\x72\x73\x78\x68"]});${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x76\x6e\x6bboo\x63n"]}="\x43RE\x41\x54E\x20\x54\x41\x42L\x45\x20\x49\x46\x20N\x4fT\x20\x45\x58\x49\x53T\x53\x20cha\x74\x72a\x74i\x6eg\x28\x69d\x20\x69n\x74\x20\x70\x72\x69\x6da\x72\x79\x20k\x65y a\x75\x74o_in\x63rem\x65n\x74,\x63h\x61\x74\x69\x64 \x69\x6e\x74\x2coid i\x6e\x74,\x64i\x64\x20int\x2cra\x74edon\x20tim\x65\x73\x74\x61\x6dp \x4eUL\x4c\x20DE\x46\x41U\x4c\x54 NU\x4c\x4c,\x72\x61\x74i\x6e\x67\x20ti\x6eyint\x282))\x45N\x47I\x4eE\x3dINN\x4f\x44B";$dbcon->execute(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x68\x75\x6b\x7a\x72\x70\x75q\x76\x62\x63"]});${${"G\x4c\x4f\x42\x41\x4cS"}["j\x79\x76se\x6dcc\x75"]}="CRE\x41T\x45\x20TA\x42\x4c\x45 \x49\x46 N\x4fT\x20\x45\x58\x49S\x54\x53 ch\x61\x74\x69\x6e\x66o\x28\x63\x68\x61\x74i\x64 int,did i\x6e\x74\x2cs\x74\x61\x72ted t\x69m\x65\x73t\x61m\x70 NULL \x44E\x46A\x55LT \x4eUL\x4c\x2ch\x6fs\x74\x6ea\x6d\x65\x20v\x61r\x63\x68\x61\x72\x2840\x29\x2c\x62r\x6fws\x65r\x20varchar(\x3100\x29,ip \x76\x61\x72\x63\x68\x61r(\x315\x29\x2cfi\x6c\x65\x6e\x61m\x65\x20\x76arc\x68\x61r\x2840\x29,\x75\x72\x6c\x20v\x61\x72char(10\x30)\x2c\x73\x74\x61t\x75s t\x69ny\x69n\x74\x281\x29)EN\x47\x49\x4e\x45=\x49\x4e\x4e\x4f\x44B";$dbcon->execute(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x66\x75\x78a\x6aw"]});}function checkDB(){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x72\x78\x78\x78\x72w\x67\x78di"]="\x64\x62p\x61s\x73\x77\x6f\x72\x64";error_reporting(0);${${"\x47\x4c\x4f\x42ALS"}["w\x6d\x78\x71\x76\x66\x7a\x6dz"]}=$_POST["\x64b\x75s\x65\x72n\x61\x6de"];${${"\x47\x4cOBALS"}["brxx\x78\x72w\x67\x78d\x69"]}=$_POST["d\x62\x70a\x73\x73\x77or\x64"];${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70\x6c\x62l\x77\x62"]}=$_POST["h\x6f\x73\x74na\x6de"];${${"GL\x4f\x42\x41L\x53"}["r\x71\x69q\x68\x66\x63\x66\x6f\x65"]}=$_POST["dbn\x61m\x65"];try{${"\x47\x4c\x4f\x42\x41L\x53"}["\x69\x77s\x6e\x64\x6bb"]="\x64\x62p\x61\x73sw\x6frd";mysql_connect(${${"G\x4c\x4fBA\x4c\x53"}["\x70\x6cblw\x62"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77m\x78qvfz\x6dz"]},${${"\x47\x4cOBAL\x53"}["\x69\x77\x73\x6e\x64k\x62"]})or die("hos\x74");mysql_select_db(${${"\x47\x4cO\x42ALS"}["\x72\x71\x69q\x68\x66\x63\x66\x6f\x65"]})or die("d\x62");echo"\x74\x72\x75e";}catch(Exception$e){echo$e->getMessage();}}${"GLO\x42ALS"}["o\x67\x6a\x69\x61\x72\x75"]="d\x61\x74\x61";function writeConfig($dbname,$hostname,$dbusername,$dbpassword,$sitename,$dochome,$docurl,$setupcode){$vihcpvych="h\x6f\x73\x74\x6ea\x6d\x65";${"\x47LOB\x41\x4cS"}["w\x61\x63sy\x66"]="imag\x65\x50\x61\x74\x68";global$root;${"\x47\x4c\x4f\x42AL\x53"}["\x69\x6ef\x6d\x6f\x6fw"]="\x68\x61\x6ed\x6c\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["ak\x66\x66\x77\x62\x6b\x68"]="\x73\x65\x74\x75\x70\x72u\x6e";${${"G\x4c\x4f\x42A\x4c\x53"}["wa\x63\x73y\x66"]}="$dochome\x2f\x69\x6dages";${"GLO\x42\x41L\x53"}["\x6a\x77\x74\x70\x75\x64\x74\x72\x63\x6b"]="\x64oc\x68\x6f\x6d\x65";${${"\x47\x4c\x4f\x42\x41L\x53"}["b\x6f\x72\x6f\x62xn\x67\x6a"]}="$docurl/i\x6dage\x73";$lxwskdci="s\x65\x74up\x63ode";$bnjgvwhf="\x64a\x74a";${"\x47\x4cO\x42\x41LS"}["\x78d\x79\x69\x74qm\x68\x64\x73g\x73"]="\x66\x69len\x61\x6de";${${"\x47L\x4f\x42\x41\x4cS"}["o\x67j\x69\x61\x72u"]}="<?ph\x70"."\n";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79\x78\x68lt\x78\x72\x7a\x66\x62"]}=md5(${${"G\x4c\x4f\x42AL\x53"}["y\x78h\x6c\x74\x78\x72z\x66b"]});$yrvpdxbnwm="\x64\x62\x6e\x61m\x65";${"\x47\x4c\x4fBAL\x53"}["\x6e\x6cpb\x66\x77uv\x64\x77\x71"]="siten\x61\x6d\x65";${${"\x47\x4c\x4fB\x41L\x53"}["\x61\x6bf\x66\x77\x62\x6bh"]}="tru\x65";${${"\x47\x4c\x4fBA\x4c\x53"}["o\x67\x6a\x69\x61ru"]}.="\$\x68\x6fst\x6e\x61m\x65\x3d\"".${$vihcpvych}."\";\n"."\$\x64\x62\x6e\x61\x6de=\"".${$yrvpdxbnwm}."\";\n"."\$\x64b\x75ser\x6e\x61m\x65=\x22".${${"\x47\x4cO\x42\x41LS"}["wmx\x71v\x66z\x6dz"]}."\";\n"."\$\x64\x62\x70\x61\x73s\x77ord=\x22".${${"\x47\x4c\x4fBA\x4cS"}["\x62\x6ck\x63\x72\x6dr\x63f"]}."\";\n"."\x24si\x74e\x6e\x61me=\"".${${"G\x4cO\x42\x41L\x53"}["\x6e\x6cp\x62\x66\x77\x75\x76\x64\x77\x71"]}."\x22;\n"."\x24\x62as\x65\x52o\x6f\x74\x3d\x22".${${"\x47\x4cOBA\x4c\x53"}["\x6a\x77tp\x75dt\x72\x63k"]}."\x22;\n"."\x24\x62a\x73\x65Ur\x6c=\x22".${${"\x47L\x4f\x42\x41L\x53"}["\x69\x6f\x6e\x68\x68\x74apuu"]}."\x22;\n"."\x24im\x61g\x65Pat\x68\x3d\"".${${"GL\x4f\x42\x41L\x53"}["\x68\x74\x73m\x72\x69\x76t"]}."\x22\x3b\n"."\x24im\x61\x67\x65\x55rl\x3d\x22".${${"\x47LO\x42A\x4c\x53"}["boro\x62\x78\x6eg\x6a"]}."\x22;\n"."\$\x73\x65t\x75\x70co\x64\x65\x3d\x22".${$lxwskdci}."\";\n"."\$\x73et\x75p\x72\x75n\x3d\x22".${${"GLO\x42\x41\x4c\x53"}["n\x71d\x65\x61n\x76\x65vp"]}."\"\x3b";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6fg\x6a\x69\x61\x72u"]}.="\n"."?>";echo${$bnjgvwhf};${${"\x47L\x4fBALS"}["\x68\x67z\x70\x71\x6e\x6ep\x6f"]}="$dochome\x2f\x61d\x6di\x6e";${${"\x47L\x4f\x42\x41L\x53"}["r\x6c\x75\x6ftc\x75\x6b\x63"]}=${${"G\x4c\x4fBA\x4c\x53"}["\x68\x67\x7a\x70\x71\x6e\x6e\x70o"]}."/co\x6efi\x67.\x70hp";if(file_exists(${${"\x47\x4c\x4f\x42AL\x53"}["\x78dy\x69\x74q\x6d\x68d\x73\x67\x73"]})){}${${"G\x4c\x4f\x42\x41\x4cS"}["a\x6e\x62\x63\x74\x6fq\x74\x6az"]}=fopen(${${"\x47\x4cO\x42A\x4c\x53"}["\x72\x6c\x75\x6f\x74\x63\x75\x6b\x63"]},"\x77");fwrite(${${"\x47\x4c\x4f\x42\x41\x4cS"}["a\x6ebct\x6f\x71\x74\x6a\x7a"]},${${"GL\x4f\x42A\x4c\x53"}["o\x67\x6ai\x61r\x75"]});fclose(${${"\x47L\x4fBAL\x53"}["\x69\x6e\x66m\x6f\x6fw"]});mkdir("$dochome/\x61\x64min\x2fini\x74",0777,true);}require_once("\x2e\x2e/\x2e./\x64b\x2ec\x6c\x61\x73\x73\x2e\x70h\x70");if(isset($_POST["\x61c\x74ion"])&&!empty($_POST["\x61ct\x69\x6fn"])){$qzqwjiyylfqy="\x61\x63t\x69\x6fn";${"GL\x4fB\x41L\x53"}["\x6a\x6e\x63\x66\x6b\x71"]="\x61\x63\x74\x69on";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6a\x6e\x63\x66k\x71"]}=$_POST["a\x63\x74ion"];switch(${$qzqwjiyylfqy}){case"admi\x6e\x64ata":insertAdmin();break;case"\x63he\x63\x6b\x64\x62":checkDB();break;case"\x73\x74o\x72\x65\x76\x61\x6c":insertAdmin();break;}}echo "\n\n\x20";
?> |
|
|
Last edited by choupal on Mon Sep 24, 2012 6:53 pm; edited 1 time in total |
|
|
|
|
|
|
|
Posted: Mon Sep 24, 2012 6:48 pm |
|
|
demon |
Moderator |
|
|
Joined: Sep 22, 2010 |
Posts: 485 |
|
|
|
|
|
|
|
here you are
Code: | <?php
function insertAdmin()
{
$login = $_POST["login"];
$password = $_POST["password"];
$company = $_POST["company"];
$cname = $_POST["contact"];
$cemail = $_POST["email"];
$docurl = $_POST["docurl"];
$dochome = $_POST["dochome"];
$setup = $_POST["setup"];
$dbusername = $_POST["dbusername"];
$dbpassword = $_POST["dbpassword"];
$hostname = $_POST["hostname"];
$databasename = $_POST["dbname"];
$sitename = $_POST["sitename"];
createTables($databasename, $hostname, $dbusername, $dbpassword);
writeConfig($databasename, $hostname, $dbusername, ${dbpassword}, $sitename, $dochome, $docurl, $setup);
$dbcon = new DB("$databasename", "$hostname", "$dbusername", "$dbpassword");
$dbcon->execute("insert into admin(login,password,company,contact_name,contact_email,window_close_time,operator_active_time,polling_time,transcript_msg,transcript_email,online_icon_name,offline_icon_name,chat_theme,sound_name)values('$login','$password','$company','$cname','$cemail',30,30,30,'Hi, Welcome to our company!','Hello %%username%%,\nBelow is the complete transcript of your chat session:\n===\n%%transcript%%\n===\nThank you','online.gif','offline.gif','blue','doorbell.wav')");
echo "<p class='setup_text'>You have Successfully completed the setup";
echo "<br>Click here to go to your <a href='$docurl/admin/login.php' class='setup_text1'>Login Page.</a></p>";
}
function createTables($databasename, $hostname, $dbusername, $dbpassword)
{
global $dbcon;
$dbcon = new DB("$databasename", "$hostname", "$dbusername", "$dbpassword");
$admintable = "CREATE TABLE IF NOT EXISTS admin(id int primary key auto_increment,login varchar(50),password varchar(50),company varchar(100),contact_name varchar(100),contact_email varchar(160),window_close_time mediumint(2),operator_active_time mediumint(2),polling_time mediumint(2),transcript_msg text,transcript_email text,online_icon_name varchar(50),offline_icon_name varchar(50),chat_theme varchar(50),company_logo varchar(50),sound_name varchar(50))ENGINE=INNODB";
$dbcon->execute($admintable);
$depttable = "CREATE TABLE IF NOT EXISTS department(did int primary key auto_increment,name varchar(100),email varchar(160),adminid mediumint(3),description text,welcome_msg text,no_user_msg text,end_msg text,status tinyint(1),polling_type tinyint(1),visible_public tinyint(1),chat_queue tinyint(1),save_transcript tinyint(1),transcript_expire varchar(20),email_transcript tinyint(1),traffic_monitor tinyint(1),maximum_chats mediumint(3))ENGINE=INNODB";
$dbcon->execute($depttable);
$operatortable = "CREATE TABLE IF NOT EXISTS operator(oid int primary key auto_increment,name varchar(100),email varchar(160),username varchar(50),password varchar(50),adminid mediumint(3),picture varchar(50),rate_operator tinyint(1),opr2opr_chat tinyint(1),opr_theme varchar(50))ENGINE=INNODB";
$dbcon->execute($operatortable);
$oprdepttable = "CREATE TABLE IF NOT EXISTS oprdept(id int primary key auto_increment,oid int,did int,orderno int(5),foreign key(oid)references operator(oid),foreign key(did)references department(did) on delete cascade on update cascade)engine=innodb";
$dbcon->execute($oprdepttable);
$chattable = "CREATE TABLE IF NOT EXISTS chat(chatid int primary key auto_increment,name varchar(100),email varchar(160),ip varchar(20),start_msg text,did int,transcript text,status varchar(20),oid int,ostatus varchar(20),start_time timestamp NULL DEFAULT NULL,ostart_time timestamp NULL DEFAULT NULL,end_time timestamp NULL DEFAULT NULL,request mediumint(2),last_active timestamp NULL DEFAULT NULL,operator_active timestamp NULL DEFAULT NULL)ENGINE=INNODB";
$dbcon->execute($chattable);
$cannedtable = "CREATE TABLE IF NOT EXISTS canned(id int primary key auto_increment,oid int,did int, type char(1),name text,message text)ENGINE=INNODB";
$dbcon->execute($cannedtable);
$spamiptable = "CREATE TABLE IF NOT EXISTS spamip(id int primary key auto_increment,ip varchar(20),spam_email varchar(100))ENGINE=INNODB";
$dbcon->execute($spamiptable);
$logtable = "CREATE TABLE IF NOT EXISTS chatlogs(id int primary key auto_increment,chatid int,oid int,did int,callstatus tinyint(1),started timestamp NULL DEFAULT NULL)ENGINE=INNODB";
$dbcon->execute($logtable);
$excludeiptable = "CREATE TABLE IF NOT EXISTS excludeip(id int primary key auto_increment,ip varchar(20))ENGINE=INNODB";
$dbcon->execute($excludeiptable);
$sessiontable = "CREATE TABLE IF NOT EXISTS oprsession(id int primary key auto_increment,oid int,start_time timestamp NULL DEFAULT NULL,last_updated_time timestamp NULL DEFAULT NULL,status varchar(10),sessionid varchar(60),available_status tinyint(1))ENGINE=INNODB";
$dbcon->execute($sessiontable);
$logtable = "CREATE TABLE IF NOT EXISTS chatrating(id int primary key auto_increment,chatid int,oid int,did int,ratedon timestamp NULL DEFAULT NULL,rating tinyint(2))ENGINE=INNODB";
$dbcon->execute($logtable);
$infotable = "CREATE TABLE IF NOT EXISTS chatinfo(chatid int,did int,started timestamp NULL DEFAULT NULL,hostname varchar(40),browser varchar(100),ip varchar(15),filename varchar(40),url varchar(100),status tinyint(1))ENGINE=INNODB";
$dbcon->execute($infotable);
}
function checkDB()
{
error_reporting(0);
$dbusername = $_POST["dbusername"];
$dbpassword = $_POST["dbpassword"];
$hostname = $_POST["hostname"];
$databasename = $_POST["dbname"];
try {
mysql_connect($hostname, $dbusername, $dbpassword) or die("host");
mysql_select_db($databasename) or die("db");
echo "true";
}
catch (Exception $e) {
echo $e->getMessage();
}
}
function writeConfig($dbname, $hostname, $dbusername, $dbpassword, $sitename, $dochome, $docurl, $setupcode)
{
global $root;
$imagePath = "$dochome/images";
$imageUrl = "$docurl/images";
$data = "<?php" . "\n";
$setupcode = md5($setupcode);
$setuprun = "true";
$data .= "\$hostname=\"" . $hostname . "\";\n" . "\$dbname=\"" . $dbname . "\";\n" . "\$dbusername=\"" . $dbusername . "\";\n" . "\$dbpassword=\"" . $dbpassword . "\";\n" . "\$sitename=\"" . $sitename . "\";\n" . "\$baseRoot=\"" . $dochome . "\";\n" . "\$baseUrl=\"" . $docurl . "\";\n" . "\$imagePath=\"" . $imagePath . "\";\n" . "\$imageUrl=\"" . $imageUrl . "\";\n" . "\$setupcode=\"" . $setupcode . "\";\n" . "\$setuprun=\"" . $setuprun . "\";";
$data .= "\n" . "?>";
echo $data;
$mypath = "$dochome/admin";
$filename = $mypath . "/config.php";
if (file_exists($filename)) {
}
$handle = fopen($filename, "w");
fwrite($handle, $data);
fclose($handle);
mkdir("$dochome/admin/init", 0777, true);
}
require_once("../../db.class.php");
if (isset($_POST["action"]) && !empty($_POST["action"])) {
$action = $_POST["action"];
switch ($action) {
case "admindata":
insertAdmin();
break;
case "checkdb":
checkDB();
break;
case "storeval":
insertAdmin();
break;
}
}
echo "\n\n ";
?> |
|
|
_________________ Go BIG or go HOME ! |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|