ah! In fact no title said so serious!
But here are some of the gory cases that we developed early in the product, and more security threats can be seen in north-north classmate's "Python hack" PPT, which mentions not only the threat of command
Look first.
gy-85.py:
Copy the Code code as follows:
#!/usr/bin/python3
#-*-Coding:utf-8-*-
Import Curses
From time Import *
From i2clibraries import i2c_itg3205, i2c_adxl345, i2c_hmc5883l
#=====================
First, create a table in the database to hold the picture:
Copy CodeThe code is as follows:
CREATE TABLE Images (Id INT PRIMARY KEY auto_increment, Data Mediumblob);
Then run the following Python code:
Copy the Code code as follows:
#-*-Coding:
First of all, this is not what I wrote, but I found it, but others wrote it pretty well.
Copy CodeThe code is as follows:
# UDP Multicast examples, Hugo Vincent, 2005-05-14.
Import socket
def send (data, port=50000, addr= ' 239.192.1.100 '):
"" "
Google at hand, basically use Select to achieve non-blocking monitoring, but the problem is that the listener is not after using a select is like GetChar (), immediately receive a single character input, you must wait for the carriage return.
After
Copy CodeThe code is as follows:
#-*-Coding:utf8-*-
'''
Created on 2013-12-19
@author: Good-temper'''
Import Urllib2Import UrllibImport CookielibImport reImport BS4
Url_baidu_index = U '
Copy CodeThe code is as follows:
Import socket
Import re
'''Guangdong Provincial Public Security Bureau entry-Exit government service network passport, pass processing progress inquiry.Analysis URL format is
1, first find an online idiom website
2, view the structure of the Web page, define the regular styleLook at the label of the idiom to catch what characteristics, view the source code, you can find the idiom to grasp in the label, such as:
Installation environment: Python version 2.7.5, win7 system
Installing Django
https://www.djangoproject.com/download/Official Download django-1.5.5.tar.gz
1, after decompression (my directory is D:\myapp\Django-1.5.5)
The 2,dos command executes the
MySQLdb default query results are returned tuple, output time is not very convenient, must follow 0,1 so read, inadvertently found a simple method of modification on the Internet, is to pass a cursors. Dictcursor on the line.
Default
Copy CodeThe code is as follows:
#coding: Utf-8
Import Image,imagedraw,imagefont,os,string,random,imagefilter
Def initchars ():
"""
Allowed set of characters, initial collection is numeric, uppercase and lowercase
Usage:initchars
Urllib the application of the basic module, which obtains the HTML document information in the URL, the internal can override the agent's acquisition method
Copy the Code code as follows:
Class Proxyscrapy (object):
def __init__
Python's recent work is mainly component compatibility testing, the original framework has a lot of features are not perfect, need to add! For example, you need to write the results of the AutoIt script to Excel, and the final solution is to use the
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