PE Study NotesPE means portable executable (portable execution body ). Overall hierarchical distribution of PE file structure: --------------| Dos MZ header || -------------- || Dos Stub || -------------- || PE Header || -------------- || Section
Http://blog.sina.com.cn/s/blog_67b74aea01018ycx.htmlThe Linux (Unix) process is intricately related to files, and this tutorial attempts to elaborate on this issue. include: 1, Linux multi/single process and multi/single file on the use of file
Linux supports standard I/O functions in the C language, and it also provides a set of SUS standard I/O library functions. Unlike standard I/O, Unix I/O functions are unbuffered, meaning that each read and write calls a system call in the kernel.
First look at the content structure of the Qqwry.data file and how it is interpreted.
I. Structure of documentsThe document is divided into three main structures1, file header, 8 bytes;2, the data record area, indefinite length;3, the index area,
All open files have a current file offset, hereinafter referred to as the CFO. The CFO is usually a non-negative integer that indicates the number of bytes at the beginning of the file to the current location of the file. Read-write operations
First, Lseek functionEach open file has a "current file offset" associated with it. It is usually a non-negative integer used to measure from the beginning of the fileThe number of bytes computed. Typically, read and write operations start at the
There are two ways to implement file sharing in the same process:
Open the same file multiple times using the Open function
Use the DUP/DUP2 function or the FCNTL function
========================================================for
Memory-Mapped API function CreateFileMapping Create a well-known shared memory:HANDLE CreateFileMapping (HANDLE hfile,//mapping file handle,Set to 0xFFFFFFFF to create an object that is shared between processesLpsecurity_attributes
Mach-o (Mach object) file format?This format is very rare in Chinese, and the most detailed is Apple's official documentation, this article does not repeat the contents of the Mach-o file format, only the experience when using IDA reverse iOS
Original address: http://www.cnblogs.com/famer/p/4190311.htmlFirst, debug platform construction1, GNU Debugger. First install the GDB debugger under iOS and add Source: cydia.radare.org. Search for GNU Debugger, install it. (Some of the sources of
After reading the unix/linux Programming Practice tutorial, I realized a few small projects and felt quite uncomfortable. I didn't talk about the details and principles of many system calls in the book. I found a lot of difficulties when trying to
1. Read system call
Once a file descriptor is connected to an open file description, as long as the file is opened with the o_rdonly or o_rdwr mark, you can use the read () System Call to read bytes from the file.
Function prototype:Ssize_t read
In a C program, a file is represented by a file pointer or file descriptor. Iso c Standard I/0 library functions (fopen, fclose, fread, fwrite, fscanf, fprintf, etc.) Use File pointers, Unix I/O functions (Open, close, read, write, IOCTL) use the
UNIX advanced environment programming (7) standard I/O function library and I/O function library
1 Binary IO (Binary IO)
In the previous article, we learned about character-by-character read/write and row-by-row read/write functions.
If we want to
File I/O, file I
File descriptor
For the kernel, all opened files are referenced through the file descriptor. The file descriptor is a non-negative integer. By default, each process has three open file descriptors associated with them, namely,
I have answered this question in dfcg. Let's turn it over.+ --------- +| Segment name virtual address virtual size physical address physical size mark |+ --------- +| Name voffset vsize roffset rsize flags |+ --------- +|. Text 00001000 00000092 0000
# Include
Symbol constant
It is the header file of the POSIX standard-defined Unix-class system-defined symbolic constant. It contains the function prototype of many UNIX system services, such as the READ function, write function, and getpid
Php reads the qqwry. datip address database file program. The article first introduces the content structure of the qqwry. dat file, and based on its characteristics, we can write the content that reads the qqwry. datip library to find what we want.
PE knowledge Review of PE new section One, why new section. And the steps to add a new sectionFor example, the previous lecture. Our PE file can add code in a blank area. But this is caused by a disadvantage. Because your blank section property may
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.