ccddos 发表于 2011-3-10 22:19:33

大大门请教下,下面的汇编语句什么意思,可以译成C++吗

push    dword ptr                 ; /Flags
    push    dword ptr                 ; |BufSize
   push    dword ptr                 ; |Buffer
   push    dword ptr                 ; |Socket
call    <jmp.&WSOCK32.#16>               ; \recv
retn    0C
   push    dword ptr                 ; /Flags
    push    dword ptr                 ; |DataSize
push    dword ptr                 ; |Data
    push    dword ptr                 ; |Socket
   call    <jmp.&WSOCK32.#19>               ; \send

china0008 发表于 2011-3-11 00:10:42

很明显是带4个参数的子程序调用。

ccddos 发表于 2011-3-12 13:02:53

是不是4个参数就是封包的长度内容,<jmp.&WSOCK32.#16>这个就是子程序,找到子程序里应该包含解密算法吧?

仓小姐 发表于 2011-3-15 20:35:31

本帖最后由 仓小姐 于 2011-3-15 20:55 编辑

这是2个基于套接字(Sockets)网络编程的API
需要头文件 Winsock2.h
需要动态链接库 Ws2_32.lib

函数原型如下:
int recv(
SOCKET s,      
char FAR *buf,
int len,      
int flags      
);

int send(
SOCKET s,            
const char FAR *buf,
int len,               
int flags            
);

4个参数相同:1.套接字(必须已经初始化过) 2.接收/发送数据的缓冲区 3.缓冲区长度 4.调用方式

MSDN原文:
s
Descriptor identifying a connected socket.
buf
Buffer containing the data to be transmitted.
len
Length of the data in buf.
flags
Indicator specifying the way in which the call is made.


.
页: [1]
查看完整版本: 大大门请教下,下面的汇编语句什么意思,可以译成C++吗