|
[讨论]能否借用已有的socket发送数据?
主要是找到初始化那段特征码,下面是以前某第三方UDP服务端中注入自己DLL的代码片段: #define SOCKET_INF "\x8D\x4D\x08\x8D\x55\xEC\x51\x52\x6A\x00\x8D\x8D\x40\xF0\xFF\xFF\x68\xAA\x0F\x00\x00\x51\x50" #define SOCKET_INF_BYTES sizeof(SOCKET_INF)-1 SOCKET m_GameSocket=0; void *psocket_filter = NULL; char* m_szPacket[128] = {0x00}; __declspec(naked)void socket_filter() { __asm { mov m_GameSocket,eax jmp psocket_filter } } // 发送消息 void SendMsg() { if(m_GameSocket) { sockaddr_in remoteAddr; remoteAddr.sin_family = AF_INET; remoteAddr.sin_addr.S_un.S_addr = pinet_addr("127.0.0.1"); remoteAddr.sin_port = phtons(9999); sendto(m_GameSocket, (char*)&m_szPacket, sizeof(m_szPacket), 0, (sockaddr*)&remoteAddr, sizeof(remoteAddr)); } } // 开始安装勾子 void StartHook() { void *pAddress = NULL; pAddress = (void*)GetModuleHandleA("xxxx.dll"); psocket_filter = FIND_MEMORY(pAddress,SOCKET_INF); if(psocket_filter) { DetourTransactionBegin(); DetourAttach((void**)&psocket_filter,socket_filter); DetourTransactionCommit(); } else { printf("could not found the master socket pointer."); } } |
|
[原创]HMI固件解密思路
分析思路赞一个!海为的HMI做得挺好的! |
|
[求助]【求助】关于多线程使用自旋锁(SpainLock)记数死锁的问题
加上volatile试试,这种写法都不规范,按1楼的来吧 |
|
[讨论]有哪位老哥在学单片机吗?
51? |
|
[求助] 520 马上就到了,要送程序员男朋友什么礼物呢?
会画画就好办啊,画几张生气免疫卡、家务免疫卡就够了 ~~ |
|
[原创][2014-12-11更新]程序员记忆录!.
满是心酸,兄弟加油! |
|
|
|
|
|
|
|
|
|
[原创]看雪科技获永洲创投500万天使轮投资
恭喜老大~~ |
|
[原创]伪创业两年多,突然感悟,上天对我不薄!
深感不易,同样深圳创业三年的公司举步唯艰,算是勉强步入正规,只可惜身体废了,鼻炎、胃病、近视一堆“绝症”接重而来,175CM体重五十公斤左右的漂浮,这一个月能稍微早点休息,如果公司有一个好的合伙人、家有贤妻幼子,也足矣~~ |
|
|
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值