|
[求助]指针写入xb9,
的确是内存属性问题, 我已经修改了,谢谢。 |
|
[求助]指针写入xb9,
我那个写入内存的函数有什么问题吗》为什么写入不成功。 |
|
[求助]指针写入xb9,
那"\xb9\xb8\xb7"\起什么作用。。 |
|
[原创]一条不归路
[QUOTE=kavan;1186045]有想法----动手----发现不会----学习辅助制作----发现驱动保护----学习内核----搞不定---开始搞私/服[无保护]----开始找数据----发现找不到 开始学习数据原理 尝试多款游戏----成功找到数据 开始编写----发现写出来好多bug----修改(6个月)----终于完成 发...[/QUOTE] 能动手就行了。慢慢来。 |
|
[求助]是如何加密的?
这个名字是怎么加密的。。。 |
|
[原创]PE感染&ShellCode编写技术补充
强大。看看。。 |
|
[原创]64位驱动的asm与c混合编译
看不懂。 |
|
|
|
[求助]文件名和文件大小怎么封包好
真心不太懂。。。 |
|
[求助]文件名和文件大小怎么封包好
我源码发给您看一下吧。 ----------------------发送端源码 hFile=CreateFile(FilePath,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); //打开文件 int FileSize=GetFileSize(hFile,NULL); //获取文件大小 CString FileName=""; FileName=FilePath.Right(FilePath.GetLength()-FilePath.ReverseFind('\\')-1); //得到文件名 //lpFile->FileName=FileName.GetBuffer(1); strcpy(lpFile->FileName,FileName.GetBuffer(0)); lpFile->FileSize=FileSize; FileName.ReleaseBuffer(); if(hFile!=INVALID_HANDLE_VALUE) { CopyMemory(buf,lpFile,sizeof(FileInfo)); ret=send(CMDSocket,buf,sizeof(FileInfo),0); //如果打开文件成功,发送文件信息 delete(lpFile); ----------------------接收端源码 memset(lpFile,0,sizeof(FileInfo)); ret=recv(sock,(char *)lpFile,sizeof(FileInfo),0); //先接收文件名 if(ret==SOCKET_ERROR) { OutputDebugString("接收文件名失败"); return false; } else { FileSize=lpFile->FileSize; int newopt=2000; ret=setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,(char *)&newopt,len); ///设置接收超时时间 strcpy(FileName,FileDir); strcat(FileName,lpFile->FileName); delete(lpFile); |
|
[求助]文件名和文件大小怎么封包好
可是我直接发送,,接收会有问题呀。 |
|
[求助]文件名和文件大小怎么封包好
[QUOTE=hotsauce;1184442]自定义一个结构体吧,里面定义好各个字段的大小,例如: #pragma pack (1) typedef struct _FileInfo { char szFileName[256]; // 文件名 int nFileSize; ...[/QUOTE] 额。直接定义结构体? 那接收端怎么区分呢?难道直接接收进结构体? 但是数据肯定不会自动区分了。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值