Gray Hat python python programming for hackers and reverse engineersPython grey hat: The path of Python programming for hackers and reverse project architectsAlmost the same two weeks ago to see the book, the mood is very excited ah, determined to take a good look.Good one weeks to read the side of the writing, found that the mood is not, the contents are for the
My study notes---python grey hat
The world makes me black and blue, but the wound is wings.--------------------------------------------ObjectiveThis book is written by Mr. Lead author, senior Black Hat Justinseitz, a well-known security Agency IMMUNITYINC, about how programming language Python is widely used in the field of hacking and reverse engineering.F
),("Hstdoutput", HANDLE),("Hstderror", HANDLE),]Class Process_information (Structure):_fields_ = [("hprocess", HANDLE),("Hthread", HANDLE),("Dwprocessid", DWORD),("dwThreadID", DWORD),]# my_debugger.pyFrom ctypes Import *From my_debugger_defines Import *KERNEL32 = Windll.kernel32Class Debugger ():def __init__ (self):Passdef load (Self,path_to_exe):# Dwcreation flag determines how to create the process# set creation_flags = Create_new_console if you want# to see the calculator GUICreation_flags =
network dataPackage, we set the protection page on the memory of the storage packet, then run the program, and once there is any access to the protection pageask, will cause the CPU to pause, throw a Protection page debugging exception , this time we can determine when the program isIn what way to access the received data. Then further follow the instructions to observe the memory access, and then determine the programWhat the data does. This breakpoint also solves the problem of software break
General idea:Os.path.abspath ('. ') #获取当前路径Os.listdir #获取指定的文件夹包含的文件或文件夹的名字的列表Os.path.join #用获取的文件名拼接路径Os.path.isdir #判断路径是否为目录, for recursion1 #-*-coding:utf-8-*-2 3 __author__='Dou-wei'4 5 ImportOS6 ImportSYS7 8file_name = sys.argv[1]#get the user's terminal input to name the file9Start_path = Os.path.abspath ('.')#Get current pathTenHost = Os.path.join (Start_path,file_name)#Stitching Path Onef = open (host,'W')#Create a writable file in a stitched path A - defSearch (path): - forXinchO
Gray Hat python python programming for hackers and reverse engineersPython grey hat: The path of Python programming for hackers and reverse engineersAlmost two weeks ago to see the book, the mood is very excited ah, determined to make sure to take a good look.Good one weeks to read the side of the writing, found that the mood is not, the contents are for the bott
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.