資源簡介
冒險島登錄器源碼,實現(xiàn)網(wǎng)卡轉(zhuǎn)發(fā)功能,各種版本都可以使用,微笑源碼
代碼片段和文件信息
#include?“dllmain.h“
#include?“stdafx.h“
#include?“afxdialogex.h“
#include?“Install.h“
#include?
#include?“test.h“
#include?
#pragma?comment(lib“Imagehlp.lib“)
using?namespace?std;
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
void?InitializeConfig(WORD?type?INT?port)
{
HANDLE?hMap?=?CreateFileMapping((HANDLE)0xFFFFFFFF?NULL?PAGE_READWRITE?0?sizeof(pSockInfo)?TEXT(“MyLoginIpConfig“));
if?(hMap){
pSockInfo?lpProxyConfig?=?(pSockInfo)MapViewOfFile(hMap?FILE_MAP_ALL_ACCESS?0?0?0);
if?(lpProxyConfig)
{
strcpy(lpProxyConfig->szSrcLoginIp?“116.211.11.196“);??///設(shè)置原始IP
lpProxyConfig->nSrcLoginPort?=?8484;
strcpy(lpProxyConfig->szDstLoginIp?(type?==?1)???“222.186.129.106“?:?“222.186.129.106“);???//替換新的登陸IP
lpProxyConfig->nDstLoginPort?=?port;
strcpy(lpProxyConfig->szSrcGameIp?“221.231.130.70“);???//設(shè)置主IP
strcpy(lpProxyConfig->szDstGameIp?(type?==?1)???“222.186.129.106“?:?“222.186.129.106“);????//設(shè)置轉(zhuǎn)發(fā)主Ip
UnmapViewOfFile(lpProxyConfig);
}
}
}
void?WINAPI?StartGame(INT?argc?INT?port)?{
if?(argc?==?0?||?argc?==?1){
USES_CONVERSION;
if?(argc?==?1)?{
InitializeConfig(1port);
}
else?{
InitializeConfig(0port);
}
WCHAR?szPathName[256];
WCHAR*?p;
if?(::GetFullPathNameW(L“l(fā)xlsp.dll“?256?szPathName?&p)?!=?0)
{
if?(InstallProvider(szPathName))
{
OutputDebugStringA(“?Install?successully.?/n“);
}
}
string?sStartProcess;
sStartProcess?=?“MapleStory.exe“;
string?ProcessParam;
ProcessParam?=?sStartProcess?+?“?116.211.11.196?8484“;
char?szCurrentDir[MAX_PATH];
GetCurrentDirectoryA(MAX_PATH?szCurrentDir);
STARTUPINFO?si?=?{?sizeof(si)?};
PROCESS_INFORMATION?pi?=?{?0?};
BOOL?bRet?=?CreateProcess(NULL?A2T(ProcessParam.c_str())?NULL?NULL?FALSE?CREATE_SUSPENDED?NULL?NULL?&si?&pi);
if?(bRet){
LPBYTE??pEntryPoint?=?GetExeEntryPointI(pi.hProcess?sStartProcess.c_str());
if?(pEntryPoint){
HANDLE?hMap?=?CreateFileMapping((HANDLE)0xFFFFFFFF?NULL?PAGE_READWRITE?0?sizeof(SPY_MEM_SHARE)?TEXT(“MyDllMapView“));
LPSPY_MEM_SHARE?lpMap?=?(LPSPY_MEM_SHARE)MapViewOfFile(hMap?FILE_MAP_ALL_ACCESS?0?0?0);
SIZE_T?stRead;
ReadProcessMemory(pi.hProcess?pEntryPoint?&lpMap->oldcode?sizeof(INJECT_CODE)?&stRead);
lpMap->lpEntryPoint?=?pEntryPoint;
INJECT_CODE?????newCode;
strcpy_s(newCode.szDLL?szCurrentDir);
strcat_s(newCode.szDLL?“\\lxhook.dll“);
//?準備硬代碼(匯編代碼)??
newCode.int_PUSHAD?=?0x60;
newCode.int_PUSH?=?0x68;
newCode.int_MOVEAX?=?0xB8;
newCode.call_eax?=?0xD0FF;
newCode.jmp_MOVEAX?=?0xB8;
newCode.jmp_eax?=?0xE0FF;
newCode.eax_Value?=?(DWORD)&LoadLibraryA;
newCode.push_Value?=?(DWORD)(pEntryPoint?+?offsetof(INJECT_CODE?szDLL));
DWORD?dwNewFlg?dwOldFlg;
dwNewFlg?=?PAGE_READWRITE;
VirtualProtectEx(pi.hProcess?(LPVOID)pEntryPoint?sizeof(DWORD)?dwNewFlg?&dwOldFlg);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????3459187??2015-08-27?21:52??新建文件夾?(6)\1.3?LSP版.e
?????文件?????726042??2014-02-11?10:30??新建文件夾?(6)\ExDui.ec
?????文件?????638787??2013-08-07?20:37??新建文件夾?(6)\ExDui079.ec
?????文件???????3859??2011-08-08?14:58??新建文件夾?(6)\IsAdministrator.ec
?????文件??????23683??2011-10-21?03:21??新建文件夾?(6)\PeLoader_Asm.ec
?????文件??????18641??2011-10-16?17:26??新建文件夾?(6)\sha1加密.ec
?????文件???????4651??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\dllmain.cpp
?????文件?????????19??2014-10-20?22:04??新建文件夾?(6)\StartGame源碼\dllmain.h
?????文件???????6610??2014-10-20?22:04??新建文件夾?(6)\StartGame源碼\Install.h
?????文件????4643536??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\dllmain.obj
?????文件???????1064??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.Build.CppClean.log
?????文件????????786??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.exp
?????文件???????1772??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.lib
?????文件???????2176??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.log
?????文件???19983360??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.pdb
?????文件???????1294??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\cl.command.1.tlog
?????文件?????157746??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\CL.read.1.tlog
?????文件????????734??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\CL.write.1.tlog
?????文件???????1248??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\li
?????文件???????6236??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\li
?????文件????????368??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\li
?????文件????????182??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\StartGame.lastbuildstate
?????文件????????278??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\StartGame.tlog\StartGame.write.1u.tlog
?????文件????4124046??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\stdafx.obj
?????文件????4689920??2015-12-31?02:38??新建文件夾?(6)\StartGame源碼\Release\vc120.pdb
?????文件?????????29??2014-10-20?22:04??新建文件夾?(6)\StartGame源碼\Source.def
?????文件??107020288??2015-12-31?03:15??新建文件夾?(6)\StartGame源碼\StartGame.sdf
?????文件????????963??2014-10-21?21:37??新建文件夾?(6)\StartGame源碼\StartGame.sln
????..A..H.?????36352??2015-12-31?03:15??新建文件夾?(6)\StartGame源碼\StartGame.v12.suo
?????文件???????4147??2014-10-20?22:04??新建文件夾?(6)\StartGame源碼\StartGame.vcxproj
............此處省略21個文件信息
- 上一篇:52個LIS儀器通訊文檔合集
- 下一篇:OpenGL-籃球場.rar
評論
共有 條評論