Waraxe IT Security Portal
Login or Register
November 5, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 159
Members: 0
Total: 159
Full disclosure
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
APPLE-SA-10-28-2024-3 macOS Sequoia 15.1
APPLE-SA-10-28-2024-2 iOS 17.7.1 and iPadOS 17.7.1
APPLE-SA-10-28-2024-1 iOS 18.1 and iPadOS 18.1
Open Redirect / Reflected XSS - booked-schedulerv2.8.5
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> help on decoding this strange php
Post new topicReply to topic View previous topic :: View next topic
help on decoding this strange php
PostPosted: Tue Feb 22, 2011 1:59 pm Reply with quote
boris123
Beginner
Beginner
Joined: Feb 22, 2011
Posts: 4




Hi all,

I'm no script kiddie, but donno how to decode this, so any help would be appreciated:)
First, it was encoded in Zend, but no probs there:) , now, it's obfuscated as well, and I don't know how to deobfuscate it.
If anyone knows how to do it, I'd love to get the deobf. script, cause there are many more files, where this one came from.
Thx in advance:)

Code:
<?php

class channel

{



var $channel_id;

var $name;

var $campaign_type_code;

var $description;

var $exclusive = false;

var $admin_only = false;

var $minimum_cpc = 0;

var $is_advertiser_default_selection = false;

var $advertiser_availability = true;

var $publisher_availability = true;

var $minimum_bid_increment = 0.01;



function initializefromdatabaserow( $_obfuscate_vP48y7gTWnAO1s )

{

$this->channel_id = $_obfuscate_vP48y7gTWnAO1s->zone_id;

$this->name = $_obfuscate_vP48y7gTWnAO1s->zone_name;

$this->campaign_type_code = $_obfuscate_vP48y7gTWnAO1s->zone_camp_type;

$this->description = html_entity_decode( $_obfuscate_vP48y7gTWnAO1s->zone_desc );

$this->minimum_cpc = $_obfuscate_vP48y7gTWnAO1s->zone_min_cpc;

$this->minimum_bid_increment = $_obfuscate_vP48y7gTWnAO1s->zone_min_bid_increment;

if ( $_obfuscate_vP48y7gTWnAO1s->zone_exclusive == 1 )

{

$this->exclusive = true;

}

if ( $_obfuscate_vP48y7gTWnAO1s->zone_admin == 1 )

{

$this->admin_only = true;

}

if ( $_obfuscate_vP48y7gTWnAO1s->zone_advertiser_default_selection_flag == 1 )

{

$this->is_advertiser_default_selection = true;

}

if ( $_obfuscate_vP48y7gTWnAO1s->zone_advertiser_availability_flag == 0 )

{

$this->advertiser_availability = false;

}

if ( $_obfuscate_vP48y7gTWnAO1s->zone_publisher_availability_flag == 0 )

{

$this->publisher_availability = false;

}

}



function getchannelid( )

{

return $this->channel_id;

}



function getname( )

{

return $this->name;

}



function setname( $_obfuscate_j8NssJYk8SA )

{

$this->name = $_obfuscate_j8NssJYk8SA;

}



function getcampaigntypecode( )

{

return $this->campaign_type_code;

}



function setcampaigntypecode( $_obfuscate_j8NssJYk8SA )

{

$this->campaign_type_code = $_obfuscate_j8NssJYk8SA;

}



function getdescription( )

{

return $this->description;

}



function setdescription( $_obfuscate_j8NssJYk8SA )

{

$this->description = $_obfuscate_j8NssJYk8SA;

}



function isexclusive( )

{

return $this->exclusive;

}



function getisexclusive( )

{

return $this->exclusive;

}



function setisexclusive( $_obfuscate_j8NssJYk8SA )

{

$this->exclusive = $_obfuscate_j8NssJYk8SA;

}



function isadminonly( )

{

return $this->admin_only;

}



function getisadminonly( )

{

return $this->admin_only;

}



function setisadminonly( $_obfuscate_j8NssJYk8SA )

{

$this->admin_only = $_obfuscate_j8NssJYk8SA;

}



function getisadvertiserdefaultselection( )

{

return $this->is_advertiser_default_selection;

}



function setisadvertiserdefaultselection( $_obfuscate_j8NssJYk8SA )

{

$this->is_advertiser_default_selection = $_obfuscate_j8NssJYk8SA;

}



function getadvertiseravailability( )

{

return $this->advertiser_availability;

}



function setadvertiseravailability( $_obfuscate_j8NssJYk8SA )

{

$this->advertiser_availability = $_obfuscate_j8NssJYk8SA;

}



function getpublisheravailability( )

{

return $this->publisher_availability;

}



function setpublisheravailability( $_obfuscate_j8NssJYk8SA )

{

$this->publisher_availability = $_obfuscate_j8NssJYk8SA;

}



function getminimumcpc( )

{

return $this->minimum_cpc;

}



function setminimumcpc( $_obfuscate_j8NssJYk8SA )

{

$this->minimum_cpc = $_obfuscate_j8NssJYk8SA;

}



function getminimumbidincrement( )

{

return $this->minimum_bid_increment;

}



function setminimumbidincrement( $_obfuscate_j8NssJYk8SA )

{

$this->minimum_bid_increment = $_obfuscate_j8NssJYk8SA;

}



}



class channelmanager

{



var $error_handler;

var $user_id;



function channelmanager( $_obfuscate_ZzARptPPwSUfUQ, $_obfuscate_553ZRyYlYJs3SlbQltegdg )

{

$this->error_handler = $_obfuscate_553ZRyYlYJs3SlbQltegdg;

$this->user_id = $_obfuscate_ZzARptPPwSUfUQ;

}



function getchannellistforpublisher( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig = "cpc", $_obfuscate_wZGctGGamHY = false )

{

return $this->getchannellist( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig, $_obfuscate_wZGctGGamHY, false, true );

}



function getchannellistforadvertiser( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig = "cpc", $_obfuscate_wZGctGGamHY = true )

{

return $this->getchannellist( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig, $_obfuscate_wZGctGGamHY, true, false );

}



function getchannellist( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig = "cpc", $_obfuscate_wZGctGGamHY = true, $_obfuscate_J1POlMxLHrxlTCaLw5c = false, $_obfuscate_94vVIL8NgVysdTOhSg = false )

{

$_obfuscate_bn7PHkUdOTLWMYbvPCDcwg = array( );

$_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA = new databasecontroller( $this->error_handler );

$_obfuscate_mdxpG2nm1T6LevICspyIdQ = $_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA->getconnection( $_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA->CONNECTION_TYPE_ADVERTISER, false, "channel_manager" );

$_obfuscate_R710rzhnPwPLUJ61 = "";

$_obfuscate_MtAz_La6mccmMGjsC8aafifM = "SELECT * FROM ".$_obfuscate_mdxpG2nm1T6LevICspyIdQ->gettablename( "zones" );

if ( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig != false )

{

$_obfuscate_R710rzhnPwPLUJ61 .= " WHERE zone_camp_type='".$_obfuscate_b6Q71WAFyypgLCvtwmSVKmig."'";

}

if ( $_obfuscate_wZGctGGamHY )

{

if ( $_obfuscate_J1POlMxLHrxlTCaLw5c )

{

if ( $_obfuscate_R710rzhnPwPLUJ61 == "" )

{

$_obfuscate_R710rzhnPwPLUJ61 .= " WHERE ";

}

else

{

$_obfuscate_R710rzhnPwPLUJ61 .= " AND ";

}

$_obfuscate_R710rzhnPwPLUJ61 .= " zone_advertiser_availability_flag = 1";

}

if ( $_obfuscate_94vVIL8NgVysdTOhSg )

{

if ( $_obfuscate_R710rzhnPwPLUJ61 == "" )

{

$_obfuscate_R710rzhnPwPLUJ61 .= " WHERE ";

}

else

{

$_obfuscate_R710rzhnPwPLUJ61 .= " AND ";

}

$_obfuscate_R710rzhnPwPLUJ61 .= " zone_publisher_availability_flag = 1";

}

}

$_obfuscate_MtAz_La6mccmMGjsC8aafifM .= $_obfuscate_R710rzhnPwPLUJ61." ORDER BY zone_name";

if ( $_obfuscate_JiuF4_bz016jkcNBNSyiA3 = $_obfuscate_mdxpG2nm1T6LevICspyIdQ->executequery( $_obfuscate_MtAz_La6mccmMGjsC8aafifM, "get channel list", $this->error_handler ) )

{

return false;

}

while ( $_obfuscate_rEwrkaxvDnc7QYZj = $_obfuscate_mdxpG2nm1T6LevICspyIdQ->fetchnextrowasobject( $_obfuscate_JiuF4_bz016jkcNBNSyiA3 ) )

{

$_obfuscate_eRAoDybn9bliFMXWk96P = new channel( );

$_obfuscate_eRAoDybn9bliFMXWk96P->initializefromdatabaserow( $_obfuscate_rEwrkaxvDnc7QYZj );

array_push( &$_obfuscate_bn7PHkUdOTLWMYbvPCDcwg, $_obfuscate_eRAoDybn9bliFMXWk96P );

}

return $_obfuscate_bn7PHkUdOTLWMYbvPCDcwg;

}



function getchannelbyid( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig, $_obfuscate_EYMN6w80Zz_Lkw )

{

static $channel_campaign_type_map = array( );

static $full_channel_list = array( );

$_obfuscate_acqsPQEM8pIKN_sB = false;

if ( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig )

{

if ( array_key_exists( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig, $channel_campaign_type_map ) )

{

$_obfuscate_acqsPQEM8pIKN_sB = ( $_obfuscate_b6Q71WAFyypgLCvtwmSVKmig, true );

$channel_campaign_type_map[$_obfuscate_b6Q71WAFyypgLCvtwmSVKmig] = $_obfuscate_acqsPQEM8pIKN_sB;

}

else

{

$_obfuscate_acqsPQEM8pIKN_sB = $channel_campaign_type_map[$_obfuscate_b6Q71WAFyypgLCvtwmSVKmig];

}

}

else

{

if ( sizeof( $full_channel_list ) == 0 )

{

$full_channel_list = ( false, true );

}

$_obfuscate_acqsPQEM8pIKN_sB = $full_channel_list;

}

$_obfuscate_5Q = 0;

for ( ; $_obfuscate_5Q < sizeof( $_obfuscate_acqsPQEM8pIKN_sB ); ++$_obfuscate_5Q )

{

if ( $_obfuscate_acqsPQEM8pIKN_sB[$_obfuscate_5Q]->channel_id == $_obfuscate_EYMN6w80Zz_Lkw )

{

return $_obfuscate_acqsPQEM8pIKN_sB[$_obfuscate_5Q];

}

}

return false;

}



function deletechannelbyid( $_obfuscate_EYMN6w80Zz_Lkw )

{

if ( is_numeric( $_obfuscate_EYMN6w80Zz_Lkw ) )

{

return false;

}

$_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA = new databasecontroller( $this->error_handler );

$_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ = $_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA->getconnection( $_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA->CONNECTION_TYPE_ADMIN, true, "channel_manager" );

$_obfuscate_fnKa98o8K4Rrsa1j4hDBnQ = "DELETE FROM ".$_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->gettablename( "zones" );

$_obfuscate_fnKa98o8K4Rrsa1j4hDBnQ .= " WHERE zone_id = ".$_obfuscate_EYMN6w80Zz_Lkw;

if ( $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->executequery( $_obfuscate_fnKa98o8K4Rrsa1j4hDBnQ, "Delete the specified channel", $this->error_handler ) )

{

return false;

}

return true;

}



function createchannel( $_obfuscate_YOgrrfxzVpZmg )

{

$this->_internal_updatechannel( $_obfuscate_YOgrrfxzVpZmg, true );

}



function updatechannel( $_obfuscate_YOgrrfxzVpZmg )

{

$this->_internal_updatechannel( $_obfuscate_YOgrrfxzVpZmg, false );

}



function _internal_updatechannel( $_obfuscate_YOgrrfxzVpZmg, $_obfuscate_TMoT )

{

$_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA = new databasecontroller( $this->error_handler );

$_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ = $_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA->getconnection( $_obfuscate_PvJCXxo9VOY2RFapqlT04Tb2RA->CONNECTION_TYPE_ADMIN, true, "channel_manager" );

$_obfuscate_QzZM3h7JftVoAXN_4Q = $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->gettablename( "zones" );

$_obfuscate_MCARl7N52QcTeSME = $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->cleanforsql( $_obfuscate_YOgrrfxzVpZmg->getname( ) );

$_obfuscate_k7C7Rhub3q0jPWIuBZWYja_so1gQodGdJDk = $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->cleanforsql( $_obfuscate_YOgrrfxzVpZmg->getcampaigntypecode( ) );

$_obfuscate_dlS8K8VhbFWnMpVzcJTG2HxTsw = $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->cleanforsql( $_obfuscate_YOgrrfxzVpZmg->getdescription( ) );

$_obfuscate_AbY22c7HrqCp3DAChYyqjwGuNA = $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->cleanforsql( $_obfuscate_YOgrrfxzVpZmg->getminimumcpc( ) );

$_obfuscate_gULbKInmTxgTjwgsDojuloBD3hmO7UA1G4sDKxc = $_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->cleanforsql( $_obfuscate_YOgrrfxzVpZmg->getminimumbidincrement( ) );

$_obfuscate_ViiPChaqxO21LP1TaI8rLlAfiAgZqA = 0;

if ( $_obfuscate_YOgrrfxzVpZmg->getisexclusive( ) )

{

$_obfuscate_ViiPChaqxO21LP1TaI8rLlAfiAgZqA = 1;

}

$_obfuscate_6jD4C8fSSaQG0qlRtUVLPsH_OQgE0kYggdEoFvfIilOf4 = 0;

if ( $_obfuscate_YOgrrfxzVpZmg->getpublisheravailability( ) )

{

$_obfuscate_6jD4C8fSSaQG0qlRtUVLPsH_OQgE0kYggdEoFvfIilOf4 = 1;

}

$_obfuscate_0zugpqa1sKPn2whvtbNR_NUhnqm_sbWQ590XZq6zQdTWP6Cv = 0;

if ( $_obfuscate_YOgrrfxzVpZmg->getadvertiseravailability( ) )

{

$_obfuscate_0zugpqa1sKPn2whvtbNR_NUhnqm_sbWQ590XZq6zQdTWP6Cv = 1;

}

$_obfuscate_fzP3Ut0JG6WzoAdnc8W5f308 = 0;

if ( $_obfuscate_YOgrrfxzVpZmg->getisadminonly( ) )

{

$_obfuscate_fzP3Ut0JG6WzoAdnc8W5f308 = 1;

}

$_obfuscate_OpGBayXOEjwduKNH0eFG2yqcjGAo3xcMF4KjSsXq = 0;

if ( $_obfuscate_YOgrrfxzVpZmg->getisadvertiserdefaultselection( ) )

{

$_obfuscate_OpGBayXOEjwduKNH0eFG2yqcjGAo3xcMF4KjSsXq = 1;

}

if ( $_obfuscate_TMoT )

{

$_obfuscate_vHHdfBMG82fk6RGkFlaaw = "INSERT INTO ".$_obfuscate_QzZM3h7JftVoAXN_4Q;

$_obfuscate_vHHdfBMG82fk6RGkFlaaw .= " (zone_name, zone_camp_type, zone_desc, zone_min_cpc, zone_exclusive, zone_admin, zone_publisher_availability_flag, zone_advertiser_availability_flag, zone_advertiser_default_selection_flag, zone_min_bid_increment)";

$_obfuscate_vHHdfBMG82fk6RGkFlaaw .= " VALUES ('".$_obfuscate_MCARl7N52QcTeSME."', '{$_obfuscate_k7C7Rhub3q0jPWIuBZWYja_so1gQodGdJDk}', '{$_obfuscate_dlS8K8VhbFWnMpVzcJTG2HxTsw}', {$_obfuscate_AbY22c7HrqCp3DAChYyqjwGuNA}, {$_obfuscate_ViiPChaqxO21LP1TaI8rLlAfiAgZqA}, {$_obfuscate_fzP3Ut0JG6WzoAdnc8W5f308}, {$_obfuscate_6jD4C8fSSaQG0qlRtUVLPsH_OQgE0kYggdEoFvfIilOf4}, {$_obfuscate_0zugpqa1sKPn2whvtbNR_NUhnqm_sbWQ590XZq6zQdTWP6Cv}, {$_obfuscate_OpGBayXOEjwduKNH0eFG2yqcjGAo3xcMF4KjSsXq}, {$_obfuscate_gULbKInmTxgTjwgsDojuloBD3hmO7UA1G4sDKxc})";

$_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->executequery( $_obfuscate_vHHdfBMG82fk6RGkFlaaw, "Add new channel", $this->error_handler );

}

else

{

$_obfuscate_0bJt6etmMl8WiV0Ne4psZQ = "UPDATE ".$_obfuscate_QzZM3h7JftVoAXN_4Q;

$_obfuscate_0bJt6etmMl8WiV0Ne4psZQ .= " SET zone_name='".$_obfuscate_MCARl7N52QcTeSME."', zone_camp_type='{$_obfuscate_k7C7Rhub3q0jPWIuBZWYja_so1gQodGdJDk}', zone_desc='{$_obfuscate_dlS8K8VhbFWnMpVzcJTG2HxTsw}', zone_min_cpc={$_obfuscate_AbY22c7HrqCp3DAChYyqjwGuNA},";

$_obfuscate_0bJt6etmMl8WiV0Ne4psZQ .= " zone_exclusive=".$_obfuscate_ViiPChaqxO21LP1TaI8rLlAfiAgZqA.", zone_admin={$_obfuscate_fzP3Ut0JG6WzoAdnc8W5f308}, zone_publisher_availability_flag={$_obfuscate_6jD4C8fSSaQG0qlRtUVLPsH_OQgE0kYggdEoFvfIilOf4}, zone_advertiser_availability_flag={$_obfuscate_0zugpqa1sKPn2whvtbNR_NUhnqm_sbWQ590XZq6zQdTWP6Cv},";

$_obfuscate_0bJt6etmMl8WiV0Ne4psZQ .= " zone_advertiser_default_selection_flag=".$_obfuscate_OpGBayXOEjwduKNH0eFG2yqcjGAo3xcMF4KjSsXq.", zone_min_bid_increment={$_obfuscate_gULbKInmTxgTjwgsDojuloBD3hmO7UA1G4sDKxc}";

$_obfuscate_0bJt6etmMl8WiV0Ne4psZQ .= " WHERE zone_id = ".$_obfuscate_YOgrrfxzVpZmg->getchannelid( );

$_obfuscate_P5KViV9tCC1WtEL7Gy84TCQ->executequery( $_obfuscate_0bJt6etmMl8WiV0Ne4psZQ, "Update channel", $this->error_handler );

}

return true;

}



}



require_once( WTF_CLASSES_DIR."/database/DatabaseController.php" );

?>
View user's profile Send private message
PostPosted: Tue Mar 15, 2011 8:42 am Reply with quote
markehdotme
Regular user
Regular user
Joined: Mar 15, 2011
Posts: 7




The variables have been mass-replaced - it's impossible to get the originals back without knowing the algorithm that they used.

Otherwise, the code is there.
View user's profile Send private message
help on decoding this strange php
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.050 Seconds