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 eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvFruzYFf2aSTozu8zKyMzMnlFzc/bXx..

Decoded Output download

class ippanel extends IppanelSms implements SmsSenderInterface
{

    public function __construct($message, $gsmnumber)
    {
        $this->message = $this->utilmessage($message);
        $this->gsmnumber = $this->utilgsmnumber($gsmnumber);
    }

    public function send()
    {
        if ($this->gsmnumber == "numbererror") {
            $log[] = ("Number format error." . $this->gsmnumber);
            $error[] = ("Number format error." . $this->gsmnumber);
            return null;
        }
        $params = $this->getParams();


        //check is send or send pattern
        $message = $this->message;
        $message = explode(',', $message);

        $pid = '';
        if (is_array($message) && count($message) > 1) {
            $pid = explode('=', $message[0]);
            if (is_array($pid) && count($pid) > 1) {
                //is send pattern
                $pid=$pid[1];
            } else {
                //send sms
                $pid = '';
            }

        } else {
            //send sms
        }

        if ($pid != '') {
            //send pattern
            $url = "ippanel.com/api/select";
            $msgtosend = array();
            for ($i = 1; $i < (count($message)); $i++) {
                $key = explode('=', $message[$i])[0];
                $val = explode('=', $message[$i])[1];
                $msgtosend[$key] = $val;
            }

//            $param = array
//            (
//                'op'=> 'patternV2',
//                'user' => $params->user,
//                'pass' => $params->pass,
//                'fromNum' => $params->senderid,
//                'toNum' => $this->gsmnumber,
//                'patternCode'=>$pid,
//                'inputData' => $msgtosend
//            );

            $param = [

                "op" => "patternV2",
                "user" => $params->user,
                "pass" => $params->pass,
                "fromNum" => $params->senderid,
                "toNum" => $this->gsmnumber,
                "patternCode" => $pid,
                "inputData" => $msgtosend
            ];


            $ch = curl_init($url);

            $payload =json_encode($param);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
            curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

            $response2 = curl_exec($ch);
            curl_close($ch);

        } else {
            // send sms
            $url = "ippanel.com/services.jspd";
            $param = array
            (
                'uname' => $params->user,
                'pass' => $params->pass,
                'from' => $params->senderid,
                'message' => $this->message,
                'to' => json_encode($this->gsmnumber),
                'op' => 'send'
            );
            $handler = curl_init($url);
            curl_setopt($handler, CURLOPT_CUSTOMREQUEST, "POST");
            curl_setopt($handler, CURLOPT_POSTFIELDS, $param);
            curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);
            $response2 = curl_exec($handler);
//        var_export($response2);
//	exit;
            curl_close($handler);
        }


        $result = json_decode($response2);
        if ((int)$result[1] > 0 || (!empty($result) && is_numeric($result))) {
            $log[] = ("Message sent.");
        } else {
            $log[] = ($response2);
            $error[] = ("Check status, looks like problem with a connection or credentials.");
        }
        return array(
            'log' => $log,
            'error' => $error,
            'msgid' => $result[1],
        );
    }

    public function balance()
    {
        $params = $this->getParams();
        if ($params->user && $params->pass) {
            $url = "ippanel.com/services.jspd";
            $param = array
            (
                'uname' => $params->user,
                'pass' => $params->pass,
                'op' => 'credit'
            );
            $handler = curl_init($url);
            curl_setopt($handler, CURLOPT_CUSTOMREQUEST, "POST");
            curl_setopt($handler, CURLOPT_POSTFIELDS, $param);
            curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);
            $response2 = curl_exec($handler);
            $response2 = json_decode($response2);
            $res_data = $response2[1];
            return $res_data;
        } else {
            return null;
        }
    }

    public function report($msgid)
    {
        /*$params = $this->getParams();
        if ($params->user && $params->pass && $msgid) {
            $result = @file_get_contents('http://bytehand.com:3800/status?id=' . $params->user . '&key=' . $params->pass . '&message=' . $msgid);
            $result = json_decode($result);
            if ($result->status == 0) {
                if ($result->description == 'DELIVERED' || $result->description == 'ACCEPTED') {
                    return "success";
                } else {
                    return "error";
                }
            } else {
                null; // Problem with a connection, not with SMS.
            }
        } else {
            return null;
        }*/

    }

    //You can spesifically convert your gsm number. See netgsm for example
    public function utilgsmnumber($number)
    {
        return $number;
    }

    //You can spesifically convert your message
    public function utilmessage($message)
    {
        return $message;
    }
}

Did this file decode correctly?

Original Code

<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tb+SXOSMYJKla+K+pGOHv7PIu5i7JPKBZauYCjkisiWgQMGgoSqD7nJ39yKoGIknEspfjoy06kH3/z6Hep19dGftLEKObvyDz/fzr3+/ff/4H')))));
?>

Function Calls

strrev 3
gzinflate 11
str_rot13 11
gzuncompress 4
rawurldecode 1
base64_decode 18

Variables

None

Stats

MD5 21e65d630022eae20e3e838d2cf3fa0e
Eval Count 16
Decode Time 119 ms