Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
if (curl) { curl_easy_setopt(curl, CURLOPT_URL,/*https*/ StrEnc(";lH!|=P~E.^o..
Decoded Output download
<? if (curl) {
curl_easy_setopt(curl, CURLOPT_URL,/*https*/ StrEnc(";lH!|=P~E.^oka4mVNwmSG%L#8{(MO<UNY,cgL", "S<QQ7K:A
]7# %.UbWSTI=&6!7B8", 38).c_str());
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, /*https*/ StrEnc("!mLBO", "I82<", 5).c_str());
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, /*Content-Type: application/x-www-form-urlencoded*/ StrEnc("@;Ls\(KP4Qrop`b#d3094/r1cf<c<=H)AiiBG6i|Ta66s2[", "T"9F?}`(
J@S_YZU[^
IDNKJ?'/jC1UYW?", 47).c_str());
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
char data[4096];
sprintf(data, /*game=PUBG&user_key=%s&serial=%s*/ StrEnc("qu2yXK,[email protected]~Nb'5(:.:chK", "_ey,l4!2*UWH[=DTPZSOV^M8", 31).c_str(), user_key, UUID.c_str());
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *) &chunk);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
res = curl_easy_perform(curl);
if (res == CURLE_OK) {
try {
json result = json::parse(chunk.memory);
if (result[ StrEnc("(>_LBm", "[J>87", 6).c_str()] == true) {
std::string token = result[/*data*/ StrEnc("fAVA", " " ", 4).c_str()][/*token*/ StrEnc("{>3Lr", "QX)", 5).c_str()].get<std::string>();
time_t rng = result[/*data*/ StrEnc("fAVA", " " ", 4).c_str()][/*rng*/ StrEnc("+n,", "YK", 3).c_str()].get<time_t>();
// expiredDate = result[/*data*/ StrEnc("fAVA", " " ", 4).c_str()][/*ts*/ StrEnc("4`", "@", 2).c_str()].get<std::string>();
// modStatus = result[/*data*/ StrEnc("fAVA", " " ", 4).c_str()][/*ms*/ StrEnc("#e", "N", 2).c_str()].get<std::string>();
if (rng + 30 > time(0)) {
std::string auth = /*PUBG*/ StrEnc("Q*) ", "kg", 4).c_str();;
auth += "-";
auth += user_key;
auth += "-";
auth += UUID;
auth += "-";
auth += /*Vm8Lk7Uj2JmsjCPVPVjrLa7zgfx3uz9E*/ StrEnc("ZD$_K NtaM8Fu=n0fFyO;!Ae<H)*Gy4%", ") SU5~>f6=w@v[.Q2
`", 32).c_str();
std::string outputAuth = Tools::CalcMD5(auth);
g_Token = token;
g_Auth = outputAuth;
bValid = g_Token == g_Auth;
}
} else {
errMsg = result[/*reason*/ StrEnc("LW(3(c", ">2I@G
", 6).c_str()].get<std::string>();
}
} catch (json::exception &e) {
errMsg = "{";
errMsg += e.what();
errMsg += "}
{";
errMsg += chunk.memory;
errMsg += "}";
}
} else {
errMsg = curl_easy_strerror(res);
}
}
curl_easy_cleanup(curl);
vm->DetachCurrentThread();
return bValid ? "OK" : errMsg;
} ?>
Did this file decode correctly?
Original Code
if (curl) {
curl_easy_setopt(curl, CURLOPT_URL,/*https*/ StrEnc(";lH!|=P~E.^oka4mVNwmSG%L#8{(MO<UNY,cgL", "\x53\x18\x3C\x51\x0F\x07\x7F\x51\x37\x4B\x3A\x41\x0A\x17\x5D\x1A\x37\x23\x18\x09\x25\x2E\x55\x62\x57\x53\x54\x49\x3D\x26\x13\x36\x21\x37\x42\x06\x04\x38", 38).c_str());
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, /*https*/ StrEnc("!mLBO", "\x49\x19\x38\x32\x3C", 5).c_str());
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, /*Content-Type: application/x-www-form-urlencoded*/ StrEnc("@;Ls\\(KP4Qrop`b#d3094/r1cf<c<=H)AiiBG6i|Ta66s2[", "\x03\x54\x22\x07\x39\x46\x3F\x7D\x60\x28\x02\x0A\x4A\x40\x03\x53\x14\x5F\x59\x5A\x55\x5B\x1B\x5E\x0D\x49\x44\x4E\x4B\x4A\x3F\x04\x27\x06\x1B\x2F\x6A\x43\x1B\x10\x31\x0F\x55\x59\x17\x57\x3F", 47).c_str());
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
char data[4096];
sprintf(data, /*game=PUBG&user_key=%s&serial=%s*/ StrEnc("qu2yXK,[email protected]~Nb'5(:.:chK", "\x16\x14\x5F\x1C\x65\x1B\x79\x1B\x2C\x6C\x0C\x34\x21\x32\x2A\x1F\x55\x57\x48\x5B\x3D\x44\x54\x50\x5A\x53\x4F\x56\x5E\x4D\x38", 31).c_str(), user_key, UUID.c_str());
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *) &chunk);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
res = curl_easy_perform(curl);
if (res == CURLE_OK) {
try {
json result = json::parse(chunk.memory);
if (result[ StrEnc("(>_LBm", "\x5B\x4A\x3E\x38\x37\x1E", 6).c_str()] == true) {
std::string token = result[/*data*/ StrEnc("fAVA", "\x02\x20\x22\x20", 4).c_str()][/*token*/ StrEnc("{>3Lr", "\x0F\x51\x58\x29\x1C", 5).c_str()].get<std::string>();
time_t rng = result[/*data*/ StrEnc("fAVA", "\x02\x20\x22\x20", 4).c_str()][/*rng*/ StrEnc("+n,", "\x59\x00\x4B", 3).c_str()].get<time_t>();
// expiredDate = result[/*data*/ StrEnc("fAVA", "\x02\x20\x22\x20", 4).c_str()][/*ts*/ StrEnc("4`", "\x40\x13", 2).c_str()].get<std::string>();
// modStatus = result[/*data*/ StrEnc("fAVA", "\x02\x20\x22\x20", 4).c_str()][/*ms*/ StrEnc("#e", "\x4E\x16", 2).c_str()].get<std::string>();
if (rng + 30 > time(0)) {
std::string auth = /*PUBG*/ StrEnc("Q*) ", "\x01\x7F\x6B\x67", 4).c_str();;
auth += "-";
auth += user_key;
auth += "-";
auth += UUID;
auth += "-";
auth += /*Vm8Lk7Uj2JmsjCPVPVjrLa7zgfx3uz9E*/ StrEnc("ZD$_K NtaM8Fu=n0fFyO;!Ae<H)*Gy4%", "\x0C\x29\x1C\x13\x20\x17\x1B\x1E\x53\x07\x55\x35\x1F\x7E\x3E\x66\x36\x10\x13\x3D\x77\x40\x76\x1F\x5B\x2E\x51\x19\x32\x03\x0D\x60", 32).c_str();
std::string outputAuth = Tools::CalcMD5(auth);
g_Token = token;
g_Auth = outputAuth;
bValid = g_Token == g_Auth;
}
} else {
errMsg = result[/*reason*/ StrEnc("LW(3(c", "\x3E\x32\x49\x40\x47\x0D", 6).c_str()].get<std::string>();
}
} catch (json::exception &e) {
errMsg = "{";
errMsg += e.what();
errMsg += "}\n{";
errMsg += chunk.memory;
errMsg += "}";
}
} else {
errMsg = curl_easy_strerror(res);
}
}
curl_easy_cleanup(curl);
vm->DetachCurrentThread();
return bValid ? "OK" : errMsg;
}
Function Calls
None |
Stats
MD5 | 5ff4f13f1a2d50327e0ee0d8b39e1672 |
Eval Count | 0 |
Decode Time | 262 ms |