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: 60
Members: 0
Total: 60
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 me again to decode this
Post new topicReply to topic View previous topic :: View next topic
Help me again to decode this
PostPosted: Wed Apr 13, 2011 5:07 pm Reply with quote
mamamia
Regular user
Regular user
Joined: Apr 13, 2011
Posts: 5




Thx


Last edited by mamamia on Thu Apr 14, 2011 3:11 am; edited 1 time in total
View user's profile Send private message
PostPosted: Wed Apr 13, 2011 5:44 pm Reply with quote
johnburn
Advanced user
Advanced user
Joined: Jan 14, 2011
Posts: 199
Location: Malaysia




Code:
<?php

include("dbconnect.php");

function disguise_curl($url)

{

$curl = curl_init();





$header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";

$header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";

$header[] = "Cache-Control: max-age=0";

$header[] = "Connection: keep-alive";

$header[] = "Keep-Alive: 300";

$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";

$header[] = "Accept-Language: en-us,en;q=0.5";

$header[] = "Pragma: "; // browsers keep this blank.



curl_setopt($curl, CURLOPT_URL, $url);

curl_setopt($curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)');

curl_setopt($curl, CURLOPT_HTTPHEADER, $header);

curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com');

curl_setopt($curl, CURLOPT_ENCODING, '');

curl_setopt($curl, CURLOPT_AUTOREFERER, true);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curl, CURLOPT_TIMEOUT, 1000);



$html = curl_exec($curl);

curl_close($curl);



return $html;

}



// function for showing an admin error message in a table

function errormess2($hiba){
?>
<div id="status_msg">
<h3>The following error(s) were found</h3>
<p><?php echo $hiba;?></p>
</div>
<!-- <table width=80% align=center bgcolor=#CCCCCC cellspacing=1 cellpadding=3>

<tr><td bgcolor=darkred><b><font color=white>A következõ hibá(k) fordultak elõ:</font></b></td></tr>

<tr><td bgcolor=#FFFFFF align=center><?php //echo $hiba;?></td></tr></table>-->
<?php
}
// function for showing an error message in a table
function errormess($hiba){
?>
<div id="status_msg">
<h3>The following error(s) were found</h3>
<p><?php echo $hiba;?></p>
</div>
<?php
}



// function for showing a success message

function successmess($hiba){
?>
<div id="status_msg">
<h3>Your submission has been received successfully</h3>
<p><?php echo $hiba;?></p>
</div>
<?php
}



// shows referral credit earnings from a user



function getearnbylevel($did,$level){

$szint = "refpc".$level;

$var = mysql_query("SELECT $szint FROM setupinfo") or die(mysql_error());

$sor=mysql_fetch_array($var);

$earn = getsurfedcredits($did);

$res = ($earn/100)*$sor[$szint];

return $res;

}



// shows total referral credit earnings by level

function gettotalbylevel($uid,$level){

$o = "referrer".$level;

$var = mysql_query("SELECT username FROM users WHERE $o='$uid' AND status='active'") or die(mysql_error());

$res = 0;

while ($sor=@mysql_fetch_array($var)){

@extract($sor);

$res = $res + getearnbylevel($username,$level);

}

return $res;

}



// shows total referral credit earnings

function gettotalrefcredits($uid){

$i=1; $total = 0;

$var = mysql_query("SELECT rlevels FROM setupinfo") or die(mysql_error());

extract(mysql_fetch_array($var));

while ($i<=$rlevels){

$total = $total + gettotalbylevel($uid,$i);

$i=$i+1;

}

return $total;

}



function showlink($lid){

$var = mysql_query("SELECT * FROM textlinks WHERE linkid=$lid");

@extract(@mysql_fetch_array($var));

$var = mysql_query("UPDATE textlinks SET limpress=limpress+1 WHERE linkid=$lid") or die(mysql_error());

print("<a href=textout.php?url=$lurl target=_blank>$ltitle</a>");

}



function showeverylink($divider){

$var = mysql_query("SELECT linkid FROM textlinks WHERE lexpire>lhits ORDER BY rand()");

while($sor=@mysql_fetch_array($var)){

@extract($sor); showlink($linkid); print($divider);

}

}



function showrandomlink(){

$var = mysql_query("SELECT * FROM textlinks WHERE lexpire>lhits ORDER BY rand()");

$sor = @mysql_fetch_array($var);

$lid = $sor["linkid"]; showlink($lid);

}



function error_mess($errmess){

print("<center><font color=darkred>$errmess</font></center>");

}



function showbanner(){

$sql=mysql_query("SELECT * FROM banner WHERE remain>0 order by rand()");

$sor=@mysql_fetch_array($sql);

$flink=$sor["linkurl"]; $furl=$sor["imageurl"]; $fnum=$sor["banid"];

echo"<a href=out.php?bannerid=$fnum target=blank><img src='$furl' border=0></a>";

mysql_query("UPDATE banner SET remain=remain-1 WHERE banid=$fnum");



}



function total_members(){

$var = mysql_query("SELECT username FROM users WHERE status='active'") or die(mysql_error());

return (mysql_num_rows($var));

}



function total_sites(){

$var = mysql_query("SELECT s_id FROM sites") or die(mysql_error());

return (mysql_num_rows($var));

}



function total_active_sites(){

$var = mysql_query("SELECT s_id FROM sites WHERE s_status='A'") or die(mysql_error());

return (mysql_num_rows($var));

}



function total_banners(){

$var = mysql_query("SELECT * FROM banner") or die(mysql_error());

return (mysql_num_rows($var));

}





function getsurfedcredits($uid){

$var = mysql_query("SELECT earned FROM users WHERE username='$uid'") or die(mysql_error());

extract(mysql_fetch_array($var));

return $earned;

}





function getdirectcredits($uid){

$var = mysql_query("SELECT earned FROM users WHERE username='$uid'") or die(mysql_error());

@extract(@mysql_fetch_array($var));

$var = mysql_query("SELECT s_amount FROM debits WHERE s_user='$uid' AND s_type=0") or die(mysql_error());

while ($sor=@mysql_fetch_array($var)){

@extract($sor);

$earned = $earned-$s_amount;

}

$var = mysql_query("SELECT s_amount FROM credits WHERE s_user='$uid' AND s_type=0") or die(mysql_error());

while ($sor=@mysql_fetch_array($var)){

@extract($sor);

$earned = $earned+$s_amount;

}

return $earned;

}

function isIDexists($tablename,$id){

$query = "SELECT * FROM ".$tablename." WHERE ".$id[0]."=".$id[1];

$result = mysql_query($query);

if($result){

if(mysql_num_rows($result) > 0){

return true;

}

}

return false;

}





function getbanners($uid){

$total = getdirectbanners($uid) + gettotalrefbanners($uid);

return $total;

}



function getcredits($uid){

$total = getdirectcredits($uid) + gettotalrefcredits($uid);

return $total;

}



function pds_footer() {

$content = 'Powered by <a href="http://www.phpdirsubmit.com">PHP Dir Submit</a>';

echo $content;

}



// site variables

$var = mysql_query('SELECT * FROM config') or die(mysql_error());

if (mysql_num_rows($var)>0){

while($sor=mysql_fetch_array($var)){

extract($sor);



$sitetitle = "$title";

$site_url = "$site_url";

$adminmail = "$admin_email";

$signup_bonus = "$s_bonus";

$credit_cost = "$credit_cost";

$admin_paypal = "$pp_email";

$packworth_20 = "$pack_20";

$packworth_50 = "$pack_50";

$packworth_100 = "$pack_100";

$monthly_fee = "$monthly_cost";

$pp_pdtkey="$pdtkey";

$pp_subscribebid="$subscribebid";

$free_unlimited = "$unlimiteduse";

$hp_title = "$hptitle";

$hp_description = "$hpdescription";

$hp_keywords = "$hpkeywords";

}

}
?>
View user's profile Send private message
Help me again to decode this
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.036 Seconds