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 function phonepe_send_otp($mobile_number, $x_captcha_token) { $header = array("\15..

Decoded Output download

<?php 
 function phonepe_send_otp($mobile_number, $x_captcha_token) { $header = array("origin:https://business.phonepe.com", "user-agent:" . $_SERVER["HTTP_USER_AGENT"], "x-app-id: oculus", "x-device-fingerprint: 123", "x-source-platform: WEB", "x-source-type: WEB", "content-Type:application/json"); $postData = array(); $postData["type"] = "OTP_V2"; $postData["endpoint"] = $mobile_number; $postData["channelType"] = "SMS"; $postData["deviceFingerprint"] = "123"; $postData = json_encode($postData); $response = curl_request("POST", "https://web-api.phonepe.com/apis/mi-web/v2/auth/web/login/initiate", $postData, $header, true); $headers = get_headers_from_curl_response($response); $x_csrf_token = $headers["headers"]["X-CSRF-TOKEN"]; $cookie = $headers["headers"]["Set-Cookie"]; $header[] = "Cookie: {$cookie}; _X52F70K3N={$x_csrf_token}"; $header[] = "X-Csrf-Token: {$x_csrf_token}"; $header[] = "H-Captcha-Token: {$x_captcha_token}"; $header[] = "X-Forwarded-For: {$_SERVER["REMOTE_ADDR"]}"; $response = curl_request("POST", "https://web-api.phonepe.com/apis/mi-web/v2/auth/web/login/initiate", $postData, $header); return $response; } ?>

Did this file decode correctly?

Original Code

<?php
 function phonepe_send_otp($mobile_number, $x_captcha_token) { $header = array("\157\x72\x69\x67\151\156\x3a\x68\164\x74\x70\x73\72\57\57\x62\x75\x73\151\x6e\145\163\163\x2e\160\x68\x6f\156\x65\x70\x65\56\x63\157\155", "\165\163\145\x72\55\x61\x67\x65\156\x74\x3a" . $_SERVER["\x48\x54\x54\x50\x5f\x55\x53\x45\122\x5f\101\107\x45\116\x54"], "\170\x2d\141\160\x70\x2d\x69\144\72\x20\157\143\x75\154\x75\163", "\170\x2d\x64\x65\x76\151\143\145\x2d\x66\x69\156\x67\145\162\x70\162\x69\156\x74\72\40\61\x32\x33", "\170\55\163\157\x75\x72\x63\145\55\160\x6c\x61\164\146\157\x72\155\x3a\40\127\105\x42", "\170\x2d\x73\x6f\165\x72\143\x65\55\x74\x79\160\x65\x3a\x20\x57\105\x42", "\x63\157\156\x74\145\x6e\164\55\x54\171\160\145\x3a\x61\x70\x70\x6c\151\143\141\164\151\157\156\57\152\163\157\x6e"); $postData = array(); $postData["\x74\x79\160\x65"] = "\x4f\x54\x50\x5f\126\x32"; $postData["\145\x6e\144\160\157\151\x6e\164"] = $mobile_number; $postData["\143\x68\141\x6e\156\x65\154\x54\171\x70\145"] = "\x53\x4d\123"; $postData["\x64\145\166\x69\x63\145\106\151\156\x67\x65\x72\160\x72\x69\156\164"] = "\x31\x32\x33"; $postData = json_encode($postData); $response = curl_request("\120\x4f\123\124", "\x68\164\164\160\x73\x3a\x2f\57\x77\x65\x62\55\x61\x70\x69\56\160\x68\x6f\x6e\x65\160\145\56\143\157\x6d\57\141\x70\x69\x73\x2f\155\x69\x2d\x77\x65\x62\x2f\x76\62\57\141\x75\x74\150\x2f\167\x65\142\57\x6c\x6f\x67\x69\156\x2f\x69\x6e\x69\x74\x69\141\164\x65", $postData, $header, true); $headers = get_headers_from_curl_response($response); $x_csrf_token = $headers["\x68\x65\x61\144\145\162\x73"]["\x58\55\103\x53\x52\x46\x2d\x54\x4f\x4b\x45\116"]; $cookie = $headers["\x68\145\x61\144\145\x72\x73"]["\x53\145\x74\55\x43\157\157\153\151\x65"]; $header[] = "\x43\x6f\x6f\153\x69\x65\72\x20{$cookie}\73\x20\x5f\x58\x35\x32\106\67\60\x4b\x33\x4e\75{$x_csrf_token}"; $header[] = "\x58\55\x43\x73\162\x66\55\124\157\153\x65\156\x3a\x20{$x_csrf_token}"; $header[] = "\x48\x2d\x43\x61\160\164\143\150\x61\55\x54\x6f\153\145\156\x3a\x20{$x_captcha_token}"; $header[] = "\x58\55\106\x6f\162\167\x61\162\144\145\144\55\x46\x6f\162\72\40{$_SERVER["\x52\x45\115\x4f\x54\105\137\101\104\x44\122"]}"; $response = curl_request("\x50\117\123\124", "\x68\x74\164\160\163\x3a\57\57\167\145\142\55\x61\160\151\56\160\x68\157\x6e\x65\x70\x65\x2e\143\x6f\x6d\x2f\x61\x70\x69\x73\57\155\151\55\x77\145\x62\57\166\62\57\141\165\x74\150\x2f\x77\x65\x62\x2f\x6c\x6f\147\x69\x6e\x2f\151\156\151\164\x69\x61\164\145", $postData, $header); return $response; } ?>

Function Calls

None

Variables

None

Stats

MD5 abfa5e7e628c432fa85e9c69f5b8d896
Eval Count 0
Decode Time 63 ms