When the program is executed, the hacker reads two files: command.txtand ipandpass.txt. The format is as follows:
Copy codeThe Code is as follows:Command.txt:ThreadNum: 1Port: 22Local_dir: hello_mkdirRemote_dir: hello_mkdirAlter_auth: chmod 755
Import time print time. strftime ('% H-% M-% s ')Time and date formatting symbols in python:
% Y two-digit year (00-99)
% Y indicates the four-digit year (000-9999)
% M month (01-12)
One day in % d month (0-31)
% H hour in 24-hour format (0-23)
A positive expression is a pattern that matches text fragments. in PythonreThis module supports regular expressions.1. Basic concepts of Regular Expressions
Period (.Can match any character other than the line break, calledWildcard.
Escape
I was planning to develop a fun project last month, but I have never had time. This is a part of this project, and it is easy to handle this part, such as poor communication. First, simulate the mouse and keyboard press the release action. I use the
File Operation example
Copy codeThe Code is as follows:# Input fileF = open (r 'd: \ Python27 \ pro \ 123. bak ')# Output fileFw = open (r 'd: \ Python27 \ pro \ 123e. bak ', 'w ')# Read all text by lineLines = f. readlines ()Num =-1For line in
Introduction
Not long ago, I published a blog post on the Raidersec blog about how to use Python and Scapy to bypass authentication attacks. I am very happy to write this article because I have not only learned how to use the aircrack suite, but
The following describes the performance of the Python program and the powerful interpreted programming language. It has a concise and clear syntax and an efficient high-level data structure, which can be used to implement Object-Oriented Programming
Because there are too many demos for Python Thread Programming, you cannot upload them here. Therefore, if you have a communitysever, you can obtain it from it and decompile it for your own use. If you do not have one, search for it on the network,
The Python interpreter supports a variety of Python interactive executions ., This method is very helpful when debugging a piece of code, because you do not need to put the Python source code into the Python script and execute the script program,
Python is a language that represents a simple thought. Reading a good Python program is like reading English. Although the requirements for this English language are very strict, I will describe the Python language and perform my own parsing.
He
As a special general computer language, the Python programming language is used in a slightly different way than other common programming languages. So today, we can take a preliminary look at the application methods of the Python numeric
If we want to use the Python programming language for XML-related operations, how can we meet this requirement well? Here we will learn about the method of parsing XML in Python, and I believe it can help you fully master the application technology
Python strings are widely used in computer languages and we will encounter many difficulties in the application process. The following article describes how to operate Python strings, I hope you will find some gains after reading the following
Python image processing, a computer language, is widely used. This article is also widely used, the following is a detailed introduction to the benefits of the Python image processing language. I hope you will find some gains. The following is an
Python Regular Expression objects have many problems in our use and need to be noticed. Next, let's take a look at how to apply Python Regular Expression objects to related technologies. Hope to help you.
Generation Method: Pass
Re. compile
The Python language appears in many languages. There are many problems in our continuous learning and usage. Next we will learn the relevant knowledge and how to use the C language environment in detail. I hope you will have some gains.
Exploring
Python is a widely used computer language in computer languages. We may have some knowledge about its actual operation steps, but do you have the same degree of understanding about the practical applications of the Python Docutils module? If you are
Url encoding is very powerful and simple to use. Do you know anything about converting url encoding in Python? The following is an introduction to the relevant content of the article. I hope you will learn from the following articles.
Modify a
This article describes how to use python scripts to access and write c ++ modules without compiling c ++ programs as a dynamic library, the following is a detailed description of the relevant content.
There is an application in the project at hand.
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