PHP Strange Code (hack), Master in (100 points)
[code=php] $OOO 0o0o00=__file__; $OOO 000000=urldecode ('%74%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64%66%70%6e%72 '); $ oo00o0000=3788, $OOO 0000o0= $OOO 000000{4}. $OOO 000000{9}. $OOO 000000{3}. $OOO 000000{5}; $OOO 0000o0.= $OOO 000000{2}.$ OOO000000{10}. $OOO 000000{13}. $OOO 000000{16}; $OOO 0000o0.= $OOO 0000o0{3}. $OOO 000000{11}. $OOO 000000{12}. $OOO 0000o0 {7}. $OOO 000000{5}; $O 0o0000o0= ' ooo0000o0 '; eval (($ $O 0o0000o0 (' Je9pme9pmdawmd0kt09pmdawmdaweze3fs4kt09pmdawmdawezeyfs4kt09pmdawmdaweze4fs4kt09pmdawmdawezv9lirpt08wmdawmdb7mtl9o2lmkcewk Srpmdawtzbpmda9je9pme9pmdawmcgkt09pme8wtzawlcdyyicpoyrptzbptzawme89je9ptzawmdawmhsxn30uje9ptzawmdawmhsymh0uje9ptzawmdawmh s1fs4kt09pmdawmdawezl9lirpt08wmdawmdb7mtz9oyrptzbptzawtza9je9ptzawmdawmhsxnh0uje9ptzawmdawmhswfs4kt09pmdawmdaweziwfs4kt09 pmdawmdawezb9lirpt08wmdawmdb7mjb9oyrptzbptzawme8oje8wmdbpme8wmcwxmtywktskt08wme8wme8wpsgkt09pmdawme8wkcrptzbptzawtzaoje9p Me9pmdawtygktzawme8wtzawldm4mcksj3jkuw0xme9sdc9pdtzbofl6rny1tnfqvnlcbgtashmyvutuadrhwevmuzkzy2jhvddkd01neg9dtellk1bxrha9jyWnqujdrevgr0hjsktmtu5puffsu1rvvldywvphymnkzwznaglqa2xtbm9wcxjzdhv2d3h5ejaxmjm0nty3odkrlycpksk7zxzhbcgkt08wme8wme8wkts = ')); return;? > [/code]
------Solution--------------------
It's not that hard.
PHP Code
Define (' In_admin ', True); require_once (' include/common.php '); include (' include/excel_writer.class.php '); if (get_ Inc_config_info ("Opendate") <=get_date (' H ', php_time) &&get_inc_config_info ("EndDate") <=get_date (' H ', Php_time)} {exit (' Sorry, the system is shut down by the administrator, turn on time as '. Get_inc_config_info ("Opendate"). ' Point to '. Get_inc_config_info ("EndDate"). ' Point ');} Else{if (Get_inc_config_info ("configflag") = = ' 0 ') {exit (' Sorry, the system is closed by the administrator, please contact the administrator!
Shutdown reason: '. Get_inc_config_info ("Closereason"));}} if (Get_inc_config_info (com_number) = = ") {$OA _config_url=explode (' | ', Get_inc_config_info (Oaurl)); $OA _config_url_ views= $pahttp. $OA _config_url[0]; $resadduser = Utility::httprequest ($OA _config_url_views. ' /api/adduser.php?oaurl= '. $headurl. ');} if (Get_inc_config_info (com_url)! = $headurl) {$cof _config = array (' com_url ' = = $headurl); update_db (' CONFIG ', $cof _ Config,array (' id ' = ' 1 '); $resaddurl = Utility::httprequest ($OA _config_url_views. ') /api/oaurl.php?oaurl= '. $headurl. ');} if ($_get["Apiuseroaid"]!= ") {$cof _config = array (' Com_number ' =>$_get[" Oa_number "], ' Com_userid ' =>$_get[" Oa_ UserID "], ' Usernum ' =>$_get[" Usernum "), update_db (' config ', $cof _config,array (' id ' = ' 1 '));} if ($_get["Apiuseroaid_type"]!= ") {Sms_phone_add_user_oa ();} if ($_get[fileurl]!= "") {$fileurl =$_get[fileurl];} else{$fileurl = "Home";} Define (' Admin_root ', Toa_root. $fileurl. /'), INITGP (' ac ', ' do '), empty ($AC) && $ac = ' index '; if (!eregi (' [A-z_] ', $ac)) $ac = ' index '; if ($fileurl== "Ilohamail") {echo '; exit;} if ($fileurl = = "Home") {echo '; exit;} if (!$_user->id) {show_msg (' You are not logged in, please log in first ', ' login.php ', 1000);} if (File_exists (admin_root. " mod_{$ac}.php ")) {require_once (admin_root. /mod_ '. $ac. php ');} else {exit;} function prompt ($msg, $url = ", $other =", $btntxt = ' << return to previous page ') {echo '<title>Prompt information</title>
'; Echo '
Prompt information |
'; if (Is_array ($msg)) {foreach ($msg as $value) {echo "
- {$value}
";}} else {echo '
- {$msg}
";} Echo '
|
' If ($url) {echo '
'. $other. ' |
';} else {echo '
'. $other. ' |
';} Echo '
'; exit ();}