Guest User

Spamming using selenium in python3

a guest
Apr 13th, 2020
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.54 KB | None | 0 0
  1. from selenium import webdriver
  2. from selenium.webdriver.common.keys import Keys
  3. import hashlib
  4. import string
  5. import random
  6.  
  7. driver_location = "/home/kali/Desktop/geckodriver"
  8.  
  9. print('''\033[34m
  10. ____  _             _   _                  _   _   _             _    
  11. ░██████╗████████╗░█████╗░██████╗░████████╗██╗███╗░░██╗░██████╗░  ░█████╗░████████╗████████╗░█████╗░░█████╗░██╗░░██╗
  12. ██╔════╝╚══██╔══╝██╔══██╗██╔══██╗╚══██╔══╝██║████╗░██║██╔════╝░  ██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗██╔══██╗██║░██╔╝
  13. ╚█████╗░░░░██║░░░███████║██████╔╝░░░██║░░░██║██╔██╗██║██║░░██╗░  ███████║░░░██║░░░░░░██║░░░███████║██║░░╚═╝█████═╝░
  14. ░╚═══██╗░░░██║░░░██╔══██║██╔══██╗░░░██║░░░██║██║╚████║██║░░╚██╗  ██╔══██║░░░██║░░░░░░██║░░░██╔══██║██║░░██╗██╔═██╗░
  15. ██████╔╝░░░██║░░░██║░░██║██║░░██║░░░██║░░░██║██║░╚███║╚██████╔╝  ██║░░██║░░░██║░░░░░░██║░░░██║░░██║╚█████╔╝██║░╚██╗
  16. ╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝╚═╝░░╚══╝░╚═════╝░  ╚═╝░░╚═╝░░░╚═╝░░░░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝
  17.  
  18.  
  19. \033[34m''')
  20.  
  21. for i in range(10):
  22.  
  23. #--------------------------------------------------------------------------------------------------------
  24. #           Open Firefox_Browser and open https://getlinks.info/slam-book/p/Shubha
  25. #--------------------------------------------------------------------------------------------------------
  26.     driver=webdriver.Firefox(executable_path=driver_location)
  27.     driver.get("https://getlinks.info/slam-book/p/Shubha")
  28. #--------------------------------------------------------------------------------------------------------
  29. #                                       END
  30. #--------------------------------------------------------------------------------------------------------
  31.     driver.implicitly_wait(60)
  32.  
  33.     firstbtn = driver.find_element_by_xpath('/html/body/div[1]/center/a[1]')
  34.     firstbtn.click()
  35.  
  36.     firsttxtbx = driver.find_element_by_xpath('//*[@id="nametb"]')
  37.     firsttxtbx.send_keys('I am Blackghost')
  38.  
  39.     scndbtn = driver.find_element_by_xpath('/html/body/div[2]/center/a')
  40.     scndbtn.click()
  41.  
  42.     secondtxtbx = driver.find_element_by_xpath('//*[@id="ipQ0"]')
  43.     secondtxtbx.send_keys('I have told you not to indulge in this websites')
  44.  
  45.     thdbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[1]/a')
  46.     thdbtn.click()
  47.  
  48.     thirdtxtbx = driver.find_element_by_xpath('//*[@id="ipQ1"]')
  49.     thirdtxtbx.send_keys('This websites allow multiple entry flaw.')
  50.  
  51.     frthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[2]/a')
  52.     frthbtn.click()
  53.  
  54.     fourthtxtbx = driver.find_element_by_xpath('//*[@id="ipQ2"]')
  55.     fourthtxtbx.send_keys('Which is actually a vulnability')
  56.  
  57.     fthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[3]/a')
  58.     fthbtn.click()
  59.  
  60.     fifthtxtbx = driver.find_element_by_xpath('//*[@id="ipQ3"]')
  61.     fifthtxtbx.send_keys('You must not use these types of websites.')
  62.  
  63.     sixthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[4]/a')
  64.     sixthbtn.click()
  65.  
  66.     sixthtxtbx = driver.find_element_by_xpath('//*[@id="ipQ4"]')
  67.     sixthtxtbx.send_keys('And don\'nt ever share this types of links in any social medias. ')
  68.  
  69.     svnthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[5]/a')
  70.     svnthbtn.click()
  71.  
  72.     seventhtxtbx = driver.find_element_by_xpath('//*[@id="ipQ5"]')
  73.     seventhtxtbx.send_keys('Specially in Whatsapp')
  74.  
  75.     eighthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[6]/a')
  76.     eighthbtn.click()
  77.  
  78.     eighthtxtbx = driver.find_element_by_xpath('//*[@id="ipQ6"]')
  79.     eighthtxtbx.send_keys('We are Anonymous. We are legion.')
  80.  
  81.     nthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[7]/a')
  82.     nthbtn.click()
  83.  
  84.     ninethtxtbx = driver.find_element_by_xpath('//*[@id="ipQ7"]')
  85.     ninethtxtbx.send_keys('We donot forget. We donot forgive.')
  86.  
  87.     tnthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[8]/a')
  88.     tnthbtn.click()
  89.  
  90.     tenthtxtbx = driver.find_element_by_xpath('//*[@id="ipQ8"]')
  91.     tenthtxtbx.send_keys('You must have to give these warnings in whatsapp status.')
  92.  
  93.     elvnthbtn = driver.find_element_by_xpath('/html/body/div[3]/center/div/div[9]/a')
  94.     elvnthbtn.click()
  95.  
  96.     send_finish = driver.find_element_by_xpath('/html/body/div[2]/div/div[3]/button[1]')
  97.     send_finish.click()
  98.  
  99.     driver.close()
  100.     driver.quit()
  101.  
  102.     print('Attack finished',i)
Add Comment
Please, Sign In to add comment