Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto jkXw9; EYZuE: $result = pdo_fetch("\x53\105\114\105\103\124\x20\52\40\106\122..

Decoded Output download

<?php 
 goto jkXw9; EYZuE: $result = pdo_fetch("SELECT * FROM " . tablename("yyf_hotel_parameter") . " where `uniacid`='{$uniacid}' order by id desc limit 1"); goto l08yj; oacHm: $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" . $token; goto Yc1f3; HFBQd: $post_data = array("scene" => $oid, "path" => "yyf_hotel/pages/index/index", "width" => "430"); goto oacHm; DhrqX: $token = $resultStr["access_token"]; goto HFBQd; iKFEp: if (is_dir($todir)) { goto E7AV5; } goto tru9w; l08yj: $APPID = $result["appid"]; goto k0sDu; BYy6o: $res = file_put_contents($codeimg, $result); goto HOnU4; n1H5t: E7AV5: goto n7gq0; JopJZ: goto dIxKA; goto s0WVB; qFT6B: $openid = $_GPC["openid"]; goto xU37Y; EKMrk: function httpGet($url) { goto TQsIA; XzJI6: $res = curl_exec($curl); goto c7QWN; j87oA: curl_setopt($curl, CURLOPT_URL, $url); goto XzJI6; Qg4S0: curl_setopt($curl, CURLOPT_TIMEOUT, 500); goto wrsK_; c7QWN: curl_close($curl); goto SoLsd; SoLsd: return $res; goto MuTOK; wrsK_: curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); goto j87oA; TQsIA: $curl = curl_init(); goto TTTzv; TTTzv: curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); goto Qg4S0; MuTOK: } goto GlC5v; EDXAF: return $this->result($errno, $message, $v); goto o2Kxk; TWesr: $oid = $_GPC["oid"]; goto EYZuE; Yc1f3: $result = postData($post_data, $url); goto hTgpB; n7gq0: $codeimg = ATTACHMENT_ROOT . "images/yyfhotel/" . $oid . ".png"; goto BYy6o; k0sDu: $SECRET = $result["appsecret"]; goto lz8A3; r7ird: $resultStr = json_decode(httpGet($url), true); goto DhrqX; lz8A3: $openid = $_GPC["openid"]; goto jq_P6; tru9w: mkdir($todir); goto n1H5t; BF6Cj: $errno = 1; goto I9IfI; M70kR: $message = ''; goto yxecD; o2Kxk: dIxKA: goto EKMrk; s0WVB: AN1ft: goto KGXAE; HOnU4: if ($res) { goto AN1ft; } goto BF6Cj; xU37Y: $uniacid = $_GPC["uniacid"]; goto TWesr; I9IfI: $message = ""; goto Le0q0; hTgpB: $todir = ATTACHMENT_ROOT . "images/yyfhotel/"; goto iKFEp; Le0q0: return $this->result($errno, $message); goto JopJZ; yxecD: $v["imgUrl"] = tomedia("images/yyfhotel/" . $oid . ".png"); goto EDXAF; jq_P6: $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $APPID . "&secret=" . $SECRET; goto r7ird; KGXAE: $errno = 0; goto M70kR; jkXw9: global $_GPC, $_W; goto qFT6B; GlC5v: function postData($post_data, $sendUrl) { goto k01bx; d0pms: return "Errno" . curl_error($curl); goto Gn9Ev; gO1ix: $curl = curl_init(); goto L8tld; L8tld: curl_setopt($curl, CURLOPT_URL, $sendUrl); goto l4Sxz; kNCau: curl_setopt($curl, CURLOPT_POST, 1); goto Cn0wV; cBRJl: return $result; goto t1ua4; tKatM: $result = curl_exec($curl); goto BPxE_; l4Sxz: curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); goto Xqh83; Cn0wV: curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data); goto DoW6h; A7hLZ: curl_close($curl); goto cBRJl; DoW6h: curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto tKatM; Gn9Ev: DXyYW: goto A7hLZ; Xqh83: curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); goto kNCau; BPxE_: if (!curl_errno($curl)) { goto DXyYW; } goto d0pms; k01bx: $post_data = json_encode($post_data); goto gO1ix; t1ua4: } ?>

Did this file decode correctly?

Original Code

<?php
 goto jkXw9; EYZuE: $result = pdo_fetch("\x53\105\114\105\103\124\x20\52\40\106\122\117\115\x20" . tablename("\x79\171\x66\137\150\157\x74\145\154\x5f\x70\x61\x72\x61\x6d\145\x74\145\x72") . "\40\167\x68\145\162\145\x20\140\x75\156\x69\x61\143\x69\x64\x60\x3d\x27{$uniacid}\x27\40\x6f\162\x64\x65\x72\40\x62\x79\40\x69\144\40\x64\145\163\143\40\154\151\x6d\x69\x74\x20\61"); goto l08yj; oacHm: $url = "\x68\164\x74\160\x73\x3a\x2f\57\141\160\x69\x2e\167\145\151\170\x69\156\x2e\161\x71\x2e\143\157\155\x2f\x77\x78\x61\57\x67\145\x74\x77\x78\x61\x63\157\144\x65\x75\x6e\x6c\x69\x6d\x69\164\x3f\x61\x63\x63\x65\163\163\137\164\x6f\x6b\145\x6e\x3d" . $token; goto Yc1f3; HFBQd: $post_data = array("\163\143\145\x6e\145" => $oid, "\160\x61\164\150" => "\x79\171\x66\137\150\x6f\164\x65\x6c\x2f\x70\x61\147\x65\x73\x2f\x69\156\x64\145\x78\x2f\151\156\x64\145\x78", "\167\151\x64\164\x68" => "\64\63\60"); goto oacHm; DhrqX: $token = $resultStr["\141\143\143\145\x73\163\x5f\164\x6f\x6b\145\x6e"]; goto HFBQd; iKFEp: if (is_dir($todir)) { goto E7AV5; } goto tru9w; l08yj: $APPID = $result["\141\160\160\151\144"]; goto k0sDu; BYy6o: $res = file_put_contents($codeimg, $result); goto HOnU4; n1H5t: E7AV5: goto n7gq0; JopJZ: goto dIxKA; goto s0WVB; qFT6B: $openid = $_GPC["\x6f\160\x65\x6e\x69\x64"]; goto xU37Y; EKMrk: function httpGet($url) { goto TQsIA; XzJI6: $res = curl_exec($curl); goto c7QWN; j87oA: curl_setopt($curl, CURLOPT_URL, $url); goto XzJI6; Qg4S0: curl_setopt($curl, CURLOPT_TIMEOUT, 500); goto wrsK_; c7QWN: curl_close($curl); goto SoLsd; SoLsd: return $res; goto MuTOK; wrsK_: curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); goto j87oA; TQsIA: $curl = curl_init(); goto TTTzv; TTTzv: curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); goto Qg4S0; MuTOK: } goto GlC5v; EDXAF: return $this->result($errno, $message, $v); goto o2Kxk; TWesr: $oid = $_GPC["\157\151\144"]; goto EYZuE; Yc1f3: $result = postData($post_data, $url); goto hTgpB; n7gq0: $codeimg = ATTACHMENT_ROOT . "\x69\155\x61\x67\145\163\57\171\171\x66\150\x6f\164\145\154\x2f" . $oid . "\x2e\x70\x6e\x67"; goto BYy6o; k0sDu: $SECRET = $result["\x61\160\x70\x73\145\x63\x72\x65\x74"]; goto lz8A3; r7ird: $resultStr = json_decode(httpGet($url), true); goto DhrqX; lz8A3: $openid = $_GPC["\x6f\x70\145\156\151\144"]; goto jq_P6; tru9w: mkdir($todir); goto n1H5t; BF6Cj: $errno = 1; goto I9IfI; M70kR: $message = ''; goto yxecD; o2Kxk: dIxKA: goto EKMrk; s0WVB: AN1ft: goto KGXAE; HOnU4: if ($res) { goto AN1ft; } goto BF6Cj; xU37Y: $uniacid = $_GPC["\165\156\151\141\143\151\x64"]; goto TWesr; I9IfI: $message = "\xe7\x94\x9f\xe6\x88\220\xe5\244\xb1\350\264\xa5\xef\274\214\350\257\xb7\xe9\207\x8d\xe8\257\x95\xe4\xb8\x80\346\254\xa1\346\x88\x96\350\200\205\xe5\207\272\xe7\xa4\272\350\256\xa2\345\215\225\345\217\xb7\xe8\256\xa9\xe5\256\242\xe6\234\215\346\223\x8d\xe4\275\x9c"; goto Le0q0; hTgpB: $todir = ATTACHMENT_ROOT . "\x69\155\141\x67\x65\163\57\171\x79\x66\x68\x6f\x74\145\x6c\x2f"; goto iKFEp; Le0q0: return $this->result($errno, $message); goto JopJZ; yxecD: $v["\x69\155\x67\125\162\x6c"] = tomedia("\151\155\141\147\145\x73\x2f\171\x79\x66\150\157\164\145\x6c\x2f" . $oid . "\56\x70\156\x67"); goto EDXAF; jq_P6: $url = "\x68\164\x74\160\x73\x3a\57\x2f\141\160\x69\x2e\x77\x65\x69\170\x69\156\x2e\x71\161\x2e\x63\x6f\155\x2f\x63\x67\151\55\x62\151\156\57\164\157\x6b\x65\x6e\x3f\147\162\141\156\x74\137\x74\x79\x70\145\75\x63\154\151\145\156\x74\x5f\143\162\145\x64\x65\x6e\x74\151\141\154\x26\x61\x70\160\151\x64\75" . $APPID . "\x26\x73\145\143\x72\x65\x74\x3d" . $SECRET; goto r7ird; KGXAE: $errno = 0; goto M70kR; jkXw9: global $_GPC, $_W; goto qFT6B; GlC5v: function postData($post_data, $sendUrl) { goto k01bx; d0pms: return "\x45\x72\162\x6e\157" . curl_error($curl); goto Gn9Ev; gO1ix: $curl = curl_init(); goto L8tld; L8tld: curl_setopt($curl, CURLOPT_URL, $sendUrl); goto l4Sxz; kNCau: curl_setopt($curl, CURLOPT_POST, 1); goto Cn0wV; cBRJl: return $result; goto t1ua4; tKatM: $result = curl_exec($curl); goto BPxE_; l4Sxz: curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); goto Xqh83; Cn0wV: curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data); goto DoW6h; A7hLZ: curl_close($curl); goto cBRJl; DoW6h: curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); goto tKatM; Gn9Ev: DXyYW: goto A7hLZ; Xqh83: curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); goto kNCau; BPxE_: if (!curl_errno($curl)) { goto DXyYW; } goto d0pms; k01bx: $post_data = json_encode($post_data); goto gO1ix; t1ua4: }

Function Calls

None

Variables

None

Stats

MD5 f85d980d77130098f0045a25b6d9742c
Eval Count 0
Decode Time 147 ms