Python calls the cmd command line to create a hacker

Source: Internet
Author: User
This article mainly introduces how to create a simple hacker in Python. you can learn Python threads, call cmd command lines, and open web pages. the code for using it is as follows:


Import webbrowser as web
Import time
Import OS

Count = 0
While count <10:
Count = count + 1
# Blog you want to refresh
Web. open_new_tab ("Here is the blog address ")
Time. sleep (1)
Else:
OS. system ('taskkill/F/IM 360se.exe ')

Three knowledge points are learned here:

1. the Python thread was originally in the time module.

2. Python calls the cmd command line, which is much simpler than C #.

3. open the webpage and click OK.

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.