|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
please decode my file:) |
|
Posted: Fri Aug 15, 2014 2:57 pm |
|
|
jamesrex |
Beginner |
|
|
Joined: Aug 15, 2014 |
Posts: 2 |
|
|
|
|
|
|
|
|
_________________ All seems ok .. or is it? |
|
|
|
|
Re: please decode my file:) |
|
Posted: Mon Aug 18, 2014 3:52 pm |
|
|
vv456 |
Advanced user |
|
|
Joined: Aug 24, 2012 |
Posts: 190 |
|
|
|
|
|
|
|
Decoded no fix
Code: | <?php
function getlicenseInformation($licenseKey) {
extract( $_POST );
$url = 'http://socialpostpress.com/spp_licensing';
$fields = array( 'licensekey' => urlencode( $licenseKey ), 'action' => 'getlicensekeyinfo' );
foreach ($fields as $key => $value) {
$fields_string .= $key . '=' . $value . '&';
}
$ch = rtrim( $fields_string, '&' );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, count( $fields ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $fields_string );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_exec( $ch );
$result = curl_init( );
$result = json_decode( $result );
curl_close( $ch );
return $result;
}
function validate_license_key($key) {
extract( $_POST );
$url = 'http://socialpostpress.com/spp_licensing';
$fields = array( 'licensekey' => urlencode( $key ), 'action' => 'validatelicensekey', 'site_url' => site_url( ) );
foreach ($fields as $key => $value) {
$fields_string .= $key . '=' . $value . '&';
}
rtrim( $fields_string, '&' );
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, count( $fields ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $fields_string );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$result = curl_exec( $ch );
curl_close( $ch );
if ($result == 'yes') {
return true;
}
return false;
}
function my_fetch_pages_authenticate() {
extract( $_POST );
$url = 'http://socialpostpress.com/spp_licensing';
$fields = array( 'licensekey' => urlencode( $_POST['licensekey'] ), 'action' => 'authenticate', 'pagelink' => urlencode( $_POST['page'] ), 'websiteurl' => urlencode( $_POST['link'] ) );
foreach ($fields as $key => $value) {
$fields_string .= $key . '=' . $value . '&';
}
rtrim( $fields_string, '&' );
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, count( $fields ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $fields_string );
$result = curl_exec( $ch );
curl_close( $ch );
exit( );
}
function my_fetch_pages_postdata() {
global $wpdb;
$table_name = $wpdb->prefix . 'social_post_press';
$row = $wpdb->get_row( '' . 'SELECT * FROM ' . $table_name . ' WHERE id = ' . $_POST['pid'] );
$posturl = $row->social_post_press_link_url;
extract( $_POST );
$url = 'http://socialpostpress.com/spp_licensing';
$fields = array( 'licensekey' => urlencode( $_POST['licensekey'] ), 'action' => 'postdata', 'pagelink' => urlencode( $_POST['page'] ), 'objectid' => urlencode( $_POST['object_id'] ), 'token' => urlencode( $_POST['token'] ), 'secureid' => urlencode( $_POST['secureid'] ), 'posturl' => urlencode( $posturl ) );
foreach ($fields as $key => $value) {
$fields_string .= $key . '=' . $value . '&';
}
rtrim( $fields_string, '&' );
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, count( $fields ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $fields_string );
$result = curl_exec( $ch );
curl_close( $ch );
exit( );
}
function my_fetch_pages() {
extract( $_POST );
$url = 'http://socialpostpress.com/spp_licensing';
$fields = array( 'licensekey' => urlencode( $_POST['licensekey'] ), 'action' => urlencode( $_POST['task'] ), 'website' => urlencode( site_url( ) ) );
foreach ($fields as $key => $value) {
$fields_string .= $key . '=' . $value . '&';
}
rtrim( $fields_string, '&' );
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, count( $fields ) );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $fields_string );
$result = curl_exec( $ch );
curl_close( $ch );
exit( );
}
?> |
|
|
|
|
|
|
|
Re: please decode my file:) |
|
Posted: Tue Aug 19, 2014 12:47 am |
|
|
jamesrex |
Beginner |
|
|
Joined: Aug 15, 2014 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|