Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
import requests test_file = 'mysample.php' data = { 'api_key' : '1c2755023f354893..
Decoded Output download
import requests
test_file = 'mysample.php'
data = {
'api_key' : '1c2755023f354893ed17c99182d44464',
}
files = {'file' : open(test_file, 'rb')}
r = requests.post('http://www.unphp.net/api/v2/post', files=files, data=data)
PHP Example
You can easily do the same thing in PHP with Curl.
<?php
$post = array(
"file"=>"@a.php",
"api_key"=>"1c2755023f354893ed17c99182d44464",
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.unphp.net/api/v2/post');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
echo curl_exec($ch);
echo curl_error($ch);
curl_close($ch);
?>
Did this file decode correctly?
Original Code
import requests
test_file = 'mysample.php'
data = {
'api_key' : '1c2755023f354893ed17c99182d44464',
}
files = {'file' : open(test_file, 'rb')}
r = requests.post('http://www.unphp.net/api/v2/post', files=files, data=data)
PHP Example
You can easily do the same thing in PHP with Curl.
<?php
$post = array(
"file"=>"@a.php",
"api_key"=>"1c2755023f354893ed17c99182d44464",
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.unphp.net/api/v2/post');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
echo curl_exec($ch);
echo curl_error($ch);
curl_close($ch);
?>
Function Calls
curl_init | 1 |
Stats
MD5 | f18a74ce0fe634c16e5fdc5f6d6436f4 |
Eval Count | 0 |
Decode Time | 79 ms |