100% teach you to use Python code to implement multithreading concurrent dead loop SMS bombing device

Source: Internet
Author: User

Python implements multithreading dead-loop concurrent SMS bombing, 100% Pack teaching Society

First look at the picture below, to their mobile phone number issued by the verification code, because it is a multithreaded dead loop sent, only a simple screenshot, code in Python, using the technology has: multithreading, class objects, selenium, XPath and other general programming methods, the code involved in the private part has been hit code, Source code will be uploaded to the QQ group, Welcome to download the Guide.




1, install Selenium,pip install Selenium, import time and threading threading module


2, create a class, and write 7 methods Initialization method
Print Send Count method A Site Send authentication code method b Site Send verification code method C Site Send authentication code method d Site Send authentication code method e Site Send authentication code method


3. Initialization method (__INIT__)

Initialization method: Set the number of mobile phone sent, the number of Send counter initial value



4, print the number of ways to send (SEND_YZM)

Use the Format method, do not understand Baidu, very common method, Time.sleep () set the delay



5. A website sends the authentication code method

In fact, the bombing principle is very simple, the use of other web platform to send the authentication code function, to achieve the use of their own program to send SMS functions, using while loop to implement dead loop send

1, create driver objects, with the Google Chromedriver.exe Drive

2, Driver.get () method, access to the Web site

3, Driver.find_element_by_xpath () method can be based on the front-end Html\css label, class name, id name to find elements, find the element to execute click Method

4, Time.sleep (3) seconds is to wait for 3 seconds elements loaded out again to find the next element, without delay will be the error

5, Send_yzm is included click to send the final verification code button and print the number of times

6, Driver.quit () method to achieve browser shutdown, save memory, because it is a dead loop, so the method will rerun, so that the death loop to send



6, B site to send the verification code method (after no longer introduced, only paste source)



7, C site to send the authentication code method



8, D site to send the authentication code method



9, E site to send the authentication code method



10. Call these methods



11, the program encountered the pit (Chromedriver.exe set)

View Chrome browser version, chromedriver.exe and browser corresponding table download corresponding Chromedriver.exe


Download Link: http://chromedriver.storage.googleapis.com/index.html


After downloading, put it directly into the disk.



Adding Chromedriver.exe to environment variables



SMS bombing code and some Python tutorials have been uploaded to QQ Group (627714866), interested students can add group download





Python reptile Artificial Intelligence large data public number



This public number provides a variety of free video learning resources for a long time, welcome to discuss with the author Mutual Learning


Public number reply "material" to obtain 500GB related video tutorials, some tutorials are categorized and screenshots are as follows:

Python, Django, flask, data analysis, reptiles, operational dimensions, large data, quantitative finance, machine learning, depth learning, natural language processing, artificial intelligence, ebook 0, Python introductory tutorials



1, Django teaching website Project combat video, with xadmin background and source code:



2, flask Project actual combat video and source code:



3, the reptile project actual combat video and the source code:


4. Data analysis Project Combat and source code:



5. All information


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.