Advertisement
Guest User

Fxp JS spam bot

a guest
Apr 16th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Array.prototype.random = function() {
  2.     return this[Math.floor((Math.random() * this.length))];
  3. }
  4. sendMessage = function(to, title, content) {
  5.     $.post('https://www.fxp.co.il/private_chat.php', {
  6.         securitytoken: SECURITYTOKEN,
  7.         do: 'insertpm',
  8.         recipients: to,
  9.         title: title,
  10.         message: content,
  11.         savecopy: 1,
  12.         signature: 1,
  13.         parseurl: 1,
  14.         frompage: 1
  15.     }).success(function(data) {
  16.         console.log('Message sent successfully')
  17.     });
  18. }
  19. createThread = function(title, content, fourmId, spamEnable = false) {
  20.     if (spamEnable) {
  21.         content = content + ' [COLOR=#fafafa]' + Math.floor(1000 + Math.random() * 9000) + '[/COLOR]'
  22.     }
  23.  
  24.     $.post('https://www.fxp.co.il/newthread.php?do=newthread&f=' + fourmId, {
  25.         'prefixid': '',
  26.         'subject': title,
  27.         'message_backup': '',
  28.         'message': content,
  29.         'wysiwyg': 1,
  30.         's': '',
  31.         'securitytoken': SECURITYTOKEN,
  32.         'f': fourmId,
  33.         'do': 'postthread',
  34.         'posthash': '',
  35.         'poststarttime': '',
  36.         'loggedinuser': USER_ID_FXP,
  37.         'sbutton': 'צור אשכול חדש',
  38.         'signature': 1,
  39.         'parseurl': 1
  40.     }).success(function(data) {
  41.         if (!data.includes('https://www.fxp.co.il/newthread.php?')) {
  42.             console.log('Thread created successfully')
  43.         }
  44.     });
  45. }
  46.  
  47. setInterval(function() {
  48.     title = `
  49.     אם לא הייתי שוקולד הייתי קשת בענן
  50.     מי שרב עקרב
  51.     חצילים
  52.     ספיידרמן אוהבת חצילים
  53.     tbdkv434 אבא של שבת
  54.     חציל חצוי לשניים
  55.     אם אתה רב אתה אפס שמפס
  56.     מיץ חציל
  57.     מיץ שתן
  58.     אי חציל
  59.     חציל עמוק בתחת
  60.     קאטחציל
  61.     פאפאחציל
  62.     מיץ לימונים
  63.     `.trim().split('\n').random();
  64.  
  65.     content = `
  66.     הנה עוד לקוח מרוצה
  67.     `.trim().split('\n').random();
  68.  
  69.     createThread(title, content, 21, false)
  70. }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement