Waraxe IT Security Portal
Login or Register
November 25, 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: 57
Members: 0
Total: 57
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
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.047 Seconds