文章分类 Python 后端开发 #!/usr/bin/python # -*- coding:utf-8 -*- import urllib2 import re import string from sgmllib import SGMLParser class getTitle(SGMLParser): istitle = 0 name = [] def reset(self): SGMLParser.reset(self) def start_title(self,attrs): self....
Hacking Secret Ciphers with Pythonteaches complete beginners how to program in the Python programming language. The book features the source code to several ciphers and hacking programs for these ciphers. The programs include the Caesar cipher, transposition cipher, simple substitution cipher, multiplicati...
Convert the python program to an executable program. C:\Python37\Scripts\pyinstaller.exe reverse_backdoor.py --onefile --noconsole Find and double-click the reverse-backdoor.exe program in the dist folder. The executable program runs perfectly....
Report function: Run in the background. Don't interrupt program execution. Every X seconds, send the report. ->Great case for threading. #!/usr/bin/env pythonimportthreadingimportpynput.keyboard log=""defprocess_key_press(key):globallogtry: log= log +str(key.char)exceptAttributeError:ifkey...
In my country, most of the internet business here is a computer shop, which needed lots of desktops and such, more money needed to start this business. But my problem is I don't know how to make such a program, I don't have... ...
第七章Python逆向 (1)DOS文件头。所有PE文件(甚至32位的DLL)都必须以一个简单的DOSMZheader开始。一旦程序在DOS下执行,DOS就能识别出这是有效的执行体,然后运行紧随MZheader之后的DOSstub。DOSstub实际上是个有效的EXE,在不支持PE文件格式的操作系统中,它简单显示一个错误提示,类似于字符串“Thisprogramrequires...
python有两种循环类型:while循环和for循环。for循环大概是最简单的。举个例子: for food in "spam", "eggs", "tomatoes": print "I love", food 它的意思是:对于列表"spam", "eggs", "tomatoes"中的每个元素,都打印出你喜欢它。循环中的语句块为每个元素执行一次,而且每次执行,当前的元素都被赋给变量food...
Programming languages for ethical hacking are described below, in brief: Python: Python is a general-purpose programming language, and it is mainly used in the field of hacking for exploit writing. It is referred to as a de-facto programming language for hacking programming. It plays a crucia...
Footprinting andreconnaissanceis the first phase of any hacking routine. In this phase, relevant information is gathered about the target network or system. Recon-ng is a framework written in Python. This framework is equipped with all the relevant features including independent modules, database int...
12306Python hack12306.py 是一个 Python 3.x 版的12306.cn自动订票程序。利用splinter(一个开源的用来通过python自动化测试web的工具),让电脑自动操作网页。 English version 码云地址 hack12306 说明 |-- README.md:说明 |-- config.ini:登录名、密码等的配置文件 |-- hack12306.py:主程序 |-- city_code...