« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
不知不觉6年了
|
Blog信息 |
blog名称:〾堯仸〾的天空 日志总数:139 评论数量:503 留言数量:16 访问次数:2715960 建立时间:2005年4月23日 |

| |
学习笔记 ,blog 之,会很乱,呵呵 随笔, 软件技术
〾堯仸〾 发表于 2006/1/19 14:32:32 |
匈牙利表示法
字首
资料型态
c
char或WCHAR或TCHAR
by
BYTE (无正负号字元)
n
short
i
int
x, y
int分别用作x座标和y座标
cx, cy
int分别用作x长度和y长度;C代表「计数器」
b或f
BOOL (int);f代表「旗标」
w
WORD (无正负号短整数)
l
LONG (长整数)
dw
DWORD (无正负号长整数)
fn
function(函式)
s
string(字串)
sz
以位元组值0结尾的字串
h
代号
p
指标
client ---->syn server client(sys_sent)(1.1)server ---->sy-ack client(r) clinet(established) server(sys_rcvd)(1.2)server ---->sy_ack client(t out) clinet(closed)client ---->ack server server(established)
主动关闭
client ---->fin server client(fin_wait_1) server ---->ack client client(fin_wait_2)
server ---->fin clientclient ---->fin server client(time_wait[2msl]) client ---time out client(close)
被动关闭server ---->fin client client ---->ack server client(close_wait)client ---->fin server client(lastack)server ---->ack client client(close)
IMAGE_SECTION_HEADER STRUCT
Name1 db IMAGE_SIZEOF_SHORT_NAME dup(?) ;8个字节的节区名称
union Misc
PhysicalAddress dd ?
VirtualSize dd ? ;节区的尺寸
ends
VirtualAddress dd ? ;节区的RVA地址
SizeOfRawData dd ? ;在文件中对齐后的尺寸
PointerToRawData dd ? ;在文件中的偏移
IMAGE_SECTION_HEADER ENDS
得到PE文件头的位置,这个位置加上文件头长度就是节表的位置
定位到文件的位置 = if( RVA >= VirtualAddress && AVR < VirtaulAddress + VirtualSize) 文件偏移= RVA - VirtualAddress + PointerToRawData
|
|
|