├── .gitattributes ├── .gitignore ├── DvlErrLog.txt ├── DxfTools.sln ├── DxfTools ├── Dr7ApiHook.cpp ├── Dr7ApiHook.h ├── DxfTools.rc ├── DxfTools.vcxproj ├── DxfTools.vcxproj.filters ├── GameCall.cpp ├── GameCall.h ├── GameManager.cpp ├── GameManager.h ├── GetDirection.cpp ├── GetDirection.h ├── Import.h ├── MuMa.h ├── TaskItem.cpp ├── TaskItem.h ├── TaskManager.cpp ├── TaskManager.h ├── baseaddr.cpp ├── baseaddr.h ├── dllmain.cpp ├── dllmain11.cpp ├── resource.h ├── stdafx.cpp ├── stdafx.h ├── targetver.h ├── utils.cpp └── utils.h ├── GameLoader ├── GameLoader.cpp ├── GameLoader.vcxproj ├── GameLoader.vcxproj.filters ├── LoadPE.cpp ├── LoadPE.h ├── dllmain.cpp ├── stdafx.cpp ├── stdafx.h └── targetver.h └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | bld/ 24 | [Bb]in/ 25 | [Oo]bj/ 26 | [Ll]og/ 27 | 28 | # Visual Studio 2015/2017 cache/options directory 29 | .vs/ 30 | # Uncomment if you have tasks that create the project's static files in wwwroot 31 | #wwwroot/ 32 | 33 | # Visual Studio 2017 auto generated files 34 | Generated\ Files/ 35 | 36 | # MSTest test Results 37 | [Tt]est[Rr]esult*/ 38 | [Bb]uild[Ll]og.* 39 | 40 | # NUNIT 41 | *.VisualState.xml 42 | TestResult.xml 43 | 44 | # Build Results of an ATL Project 45 | [Dd]ebugPS/ 46 | [Rr]eleasePS/ 47 | dlldata.c 48 | 49 | # Benchmark Results 50 | BenchmarkDotNet.Artifacts/ 51 | 52 | # .NET Core 53 | project.lock.json 54 | project.fragment.lock.json 55 | artifacts/ 56 | 57 | # StyleCop 58 | StyleCopReport.xml 59 | 60 | # Files built by Visual Studio 61 | *_i.c 62 | *_p.c 63 | *_h.h 64 | *.ilk 65 | *.meta 66 | *.obj 67 | *.iobj 68 | *.pch 69 | *.pdb 70 | *.ipdb 71 | *.pgc 72 | *.pgd 73 | *.rsp 74 | *.sbr 75 | *.tlb 76 | *.tli 77 | *.tlh 78 | *.tmp 79 | *.tmp_proj 80 | *_wpftmp.csproj 81 | *.log 82 | *.vspscc 83 | *.vssscc 84 | .builds 85 | *.pidb 86 | *.svclog 87 | *.scc 88 | 89 | # Chutzpah Test files 90 | _Chutzpah* 91 | 92 | # Visual C++ cache files 93 | ipch/ 94 | *.aps 95 | *.ncb 96 | *.opendb 97 | *.opensdf 98 | *.sdf 99 | *.cachefile 100 | *.VC.db 101 | *.VC.VC.opendb 102 | 103 | # Visual Studio profiler 104 | *.psess 105 | *.vsp 106 | *.vspx 107 | *.sap 108 | 109 | # Visual Studio Trace Files 110 | *.e2e 111 | 112 | # TFS 2012 Local Workspace 113 | $tf/ 114 | 115 | # Guidance Automation Toolkit 116 | *.gpState 117 | 118 | # ReSharper is a .NET coding add-in 119 | _ReSharper*/ 120 | *.[Rr]e[Ss]harper 121 | *.DotSettings.user 122 | 123 | # JustCode is a .NET coding add-in 124 | .JustCode 125 | 126 | # TeamCity is a build add-in 127 | _TeamCity* 128 | 129 | # DotCover is a Code Coverage Tool 130 | *.dotCover 131 | 132 | # AxoCover is a Code Coverage Tool 133 | .axoCover/* 134 | !.axoCover/settings.json 135 | 136 | # Visual Studio code coverage results 137 | *.coverage 138 | *.coveragexml 139 | 140 | # NCrunch 141 | _NCrunch_* 142 | .*crunch*.local.xml 143 | nCrunchTemp_* 144 | 145 | # MightyMoose 146 | *.mm.* 147 | AutoTest.Net/ 148 | 149 | # Web workbench (sass) 150 | .sass-cache/ 151 | 152 | # Installshield output folder 153 | [Ee]xpress/ 154 | 155 | # DocProject is a documentation generator add-in 156 | DocProject/buildhelp/ 157 | DocProject/Help/*.HxT 158 | DocProject/Help/*.HxC 159 | DocProject/Help/*.hhc 160 | DocProject/Help/*.hhk 161 | DocProject/Help/*.hhp 162 | DocProject/Help/Html2 163 | DocProject/Help/html 164 | 165 | # Click-Once directory 166 | publish/ 167 | 168 | # Publish Web Output 169 | *.[Pp]ublish.xml 170 | *.azurePubxml 171 | # Note: Comment the next line if you want to checkin your web deploy settings, 172 | # but database connection strings (with potential passwords) will be unencrypted 173 | *.pubxml 174 | *.publishproj 175 | 176 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 177 | # checkin your Azure Web App publish settings, but sensitive information contained 178 | # in these scripts will be unencrypted 179 | PublishScripts/ 180 | 181 | # NuGet Packages 182 | *.nupkg 183 | # The packages folder can be ignored because of Package Restore 184 | **/[Pp]ackages/* 185 | # except build/, which is used as an MSBuild target. 186 | !**/[Pp]ackages/build/ 187 | # Uncomment if necessary however generally it will be regenerated when needed 188 | #!**/[Pp]ackages/repositories.config 189 | # NuGet v3's project.json files produces more ignorable files 190 | *.nuget.props 191 | *.nuget.targets 192 | 193 | # Microsoft Azure Build Output 194 | csx/ 195 | *.build.csdef 196 | 197 | # Microsoft Azure Emulator 198 | ecf/ 199 | rcf/ 200 | 201 | # Windows Store app package directories and files 202 | AppPackages/ 203 | BundleArtifacts/ 204 | Package.StoreAssociation.xml 205 | _pkginfo.txt 206 | *.appx 207 | 208 | # Visual Studio cache files 209 | # files ending in .cache can be ignored 210 | *.[Cc]ache 211 | # but keep track of directories ending in .cache 212 | !*.[Cc]ache/ 213 | 214 | # Others 215 | ClientBin/ 216 | ~$* 217 | *~ 218 | *.dbmdl 219 | *.dbproj.schemaview 220 | *.jfm 221 | *.pfx 222 | *.publishsettings 223 | orleans.codegen.cs 224 | 225 | # Including strong name files can present a security risk 226 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 227 | #*.snk 228 | 229 | # Since there are multiple workflows, uncomment next line to ignore bower_components 230 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 231 | #bower_components/ 232 | 233 | # RIA/Silverlight projects 234 | Generated_Code/ 235 | 236 | # Backup & report files from converting an old project file 237 | # to a newer Visual Studio version. Backup files are not needed, 238 | # because we have git ;-) 239 | _UpgradeReport_Files/ 240 | Backup*/ 241 | UpgradeLog*.XML 242 | UpgradeLog*.htm 243 | ServiceFabricBackup/ 244 | *.rptproj.bak 245 | 246 | # SQL Server files 247 | *.mdf 248 | *.ldf 249 | *.ndf 250 | 251 | # Business Intelligence projects 252 | *.rdl.data 253 | *.bim.layout 254 | *.bim_*.settings 255 | *.rptproj.rsuser 256 | 257 | # Microsoft Fakes 258 | FakesAssemblies/ 259 | 260 | # GhostDoc plugin setting file 261 | *.GhostDoc.xml 262 | 263 | # Node.js Tools for Visual Studio 264 | .ntvs_analysis.dat 265 | node_modules/ 266 | 267 | # Visual Studio 6 build log 268 | *.plg 269 | 270 | # Visual Studio 6 workspace options file 271 | *.opt 272 | 273 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 274 | *.vbw 275 | 276 | # Visual Studio LightSwitch build output 277 | **/*.HTMLClient/GeneratedArtifacts 278 | **/*.DesktopClient/GeneratedArtifacts 279 | **/*.DesktopClient/ModelManifest.xml 280 | **/*.Server/GeneratedArtifacts 281 | **/*.Server/ModelManifest.xml 282 | _Pvt_Extensions 283 | 284 | # Paket dependency manager 285 | .paket/paket.exe 286 | paket-files/ 287 | 288 | # FAKE - F# Make 289 | .fake/ 290 | 291 | # JetBrains Rider 292 | .idea/ 293 | *.sln.iml 294 | 295 | # CodeRush personal settings 296 | .cr/personal 297 | 298 | # Python Tools for Visual Studio (PTVS) 299 | __pycache__/ 300 | *.pyc 301 | 302 | # Cake - Uncomment if you are using it 303 | # tools/** 304 | # !tools/packages.config 305 | 306 | # Tabs Studio 307 | *.tss 308 | 309 | # Telerik's JustMock configuration file 310 | *.jmconfig 311 | 312 | # BizTalk build output 313 | *.btp.cs 314 | *.btm.cs 315 | *.odx.cs 316 | *.xsd.cs 317 | 318 | # OpenCover UI analysis results 319 | OpenCover/ 320 | 321 | # Azure Stream Analytics local run output 322 | ASALocalRun/ 323 | 324 | # MSBuild Binary and Structured Log 325 | *.binlog 326 | 327 | # NVidia Nsight GPU debugger configuration file 328 | *.nvuser 329 | 330 | # MFractors (Xamarin productivity tool) working folder 331 | .mfractor/ 332 | 333 | # Local History for Visual Studio 334 | .localhistory/ 335 | -------------------------------------------------------------------------------- /DvlErrLog.txt: -------------------------------------------------------------------------------- 1 | System.Exception: Please select a driver project. 2 | at Microsoft.SdvMenuCommand.DriverVerificationLicense..ctor() 3 | at Microsoft.SdvMenuCommand.SdvMenuCommandPackage.StaticToolsLogoMenuItemCallback(Object sender, EventArgs e) 4 | -------------------------------------------------------------------------------- /DxfTools.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2016 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DxfTools", "DxfTools\DxfTools.vcxproj", "{4C159674-2AAD-48FD-BBC5-A4A3867047BB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Debug|x64.ActiveCfg = Debug|x64 17 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Debug|x64.Build.0 = Debug|x64 18 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Debug|x86.ActiveCfg = Debug|Win32 19 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Debug|x86.Build.0 = Debug|Win32 20 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Release|x64.ActiveCfg = Release|x64 21 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Release|x64.Build.0 = Release|x64 22 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Release|x86.ActiveCfg = Release|Win32 23 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {72D810D4-DF4E-4A29-94F8-232AAB4D2A6A} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /DxfTools/Dr7ApiHook.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/Dr7ApiHook.cpp -------------------------------------------------------------------------------- /DxfTools/Dr7ApiHook.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class Dr7ApiHook 5 | { 6 | Dr7ApiHook(); 7 | Dr7ApiHook(const Dr7ApiHook&) = delete; 8 | void operator= (const Dr7ApiHook&) = delete; 9 | 10 | static std::unique_ptr m_pInstance; 11 | public: 12 | ~Dr7ApiHook(); 13 | static Dr7ApiHook* GetInstance(); 14 | 15 | bool Init(); 16 | static LONG NTAPI Vector_Exception_hander(PEXCEPTION_POINTERS ExceptionInfo); 17 | 18 | bool AddHookAddress(DWORD oldProc, DWORD newProc); 19 | bool InstallHook(); 20 | bool UnStallHook(); 21 | public: 22 | DWORD m_oldProcAddr[4]; 23 | DWORD m_newProcAddr[4]; 24 | PVOID m_pVectorHandler; 25 | }; 26 | 27 | -------------------------------------------------------------------------------- /DxfTools/DxfTools.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/DxfTools.rc -------------------------------------------------------------------------------- /DxfTools/DxfTools.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {4C159674-2AAD-48FD-BBC5-A4A3867047BB} 24 | Win32Proj 25 | DxfTools 26 | 10.0.17134.0 27 | 28 | 29 | 30 | DynamicLibrary 31 | true 32 | v141 33 | Unicode 34 | Static 35 | 36 | 37 | DynamicLibrary 38 | false 39 | v141 40 | true 41 | Unicode 42 | 43 | 44 | DynamicLibrary 45 | true 46 | v141 47 | Unicode 48 | 49 | 50 | DynamicLibrary 51 | false 52 | v141 53 | true 54 | Unicode 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | true 76 | samcli 77 | .dll 78 | 79 | 80 | true 81 | 82 | 83 | false 84 | 85 | 86 | false 87 | 88 | 89 | 90 | Use 91 | Level3 92 | Disabled 93 | true 94 | WIN32;_DEBUG;DXFTOOLS_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 95 | true 96 | MultiThreadedDebug 97 | 98 | 99 | Windows 100 | false 101 | user32.lib;ntdll.lib;%(AdditionalDependencies) 102 | 103 | 104 | xcopy "$(ProjectDir)..\Debug\samcli.dll" "E:\腾讯游戏\地下城与勇士\" /Y 105 | 106 | 107 | 108 | 109 | 110 | Use 111 | Level3 112 | Disabled 113 | true 114 | _DEBUG;DXFTOOLS_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 115 | true 116 | 117 | 118 | Windows 119 | true 120 | 121 | 122 | 123 | 124 | Use 125 | Level3 126 | MaxSpeed 127 | true 128 | true 129 | true 130 | WIN32;NDEBUG;DXFTOOLS_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 131 | true 132 | 133 | 134 | Windows 135 | true 136 | true 137 | true 138 | 139 | 140 | 141 | 142 | Use 143 | Level3 144 | MaxSpeed 145 | true 146 | true 147 | true 148 | NDEBUG;DXFTOOLS_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 149 | true 150 | 151 | 152 | Windows 153 | true 154 | true 155 | true 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | Create 182 | Create 183 | Create 184 | Create 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | -------------------------------------------------------------------------------- /DxfTools/DxfTools.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | {2e698eba-e4cb-413b-9118-e8ef52da8d81} 18 | 19 | 20 | {0b713c63-f299-4623-a9a3-2614aaa0f8b1} 21 | 22 | 23 | {e0db2fc8-79bb-4643-b7dd-9b0877cd25f3} 24 | 25 | 26 | {f67fae28-dec4-48d7-a542-442869d4c2f4} 27 | 28 | 29 | {72f5faa5-d1b3-4080-98e2-77baa31ddc4e} 30 | 31 | 32 | {159ee73a-bd14-431d-a681-c9c9740a3483} 33 | 34 | 35 | {b4f5f11d-5788-461e-9295-dbb369aa188c} 36 | 37 | 38 | 39 | 40 | 头文件 41 | 42 | 43 | 头文件 44 | 45 | 46 | 任务管理器 47 | 48 | 49 | 任务管理器 50 | 51 | 52 | 游戏管理器 53 | 54 | 55 | 工具类 56 | 57 | 58 | 头文件 59 | 60 | 61 | 游戏基地址 62 | 63 | 64 | 游戏CALL 65 | 66 | 67 | 头文件 68 | 69 | 70 | 硬段HOOK 71 | 72 | 73 | A%2a寻路 74 | 75 | 76 | 头文件 77 | 78 | 79 | 80 | 81 | 源文件 82 | 83 | 84 | 源文件 85 | 86 | 87 | 任务管理器 88 | 89 | 90 | 任务管理器 91 | 92 | 93 | 游戏管理器 94 | 95 | 96 | 工具类 97 | 98 | 99 | 游戏基地址 100 | 101 | 102 | 游戏CALL 103 | 104 | 105 | 硬段HOOK 106 | 107 | 108 | A%2a寻路 109 | 110 | 111 | 112 | 113 | 资源文件 114 | 115 | 116 | -------------------------------------------------------------------------------- /DxfTools/GameCall.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/GameCall.cpp -------------------------------------------------------------------------------- /DxfTools/GameCall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/GameCall.h -------------------------------------------------------------------------------- /DxfTools/GameManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/GameManager.cpp -------------------------------------------------------------------------------- /DxfTools/GameManager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | class GameManager 6 | { 7 | GameManager(); 8 | GameManager(const GameManager&) = delete; 9 | void operator= (const GameManager&) = delete; 10 | 11 | static std::unique_ptr m_pInstance; 12 | public: 13 | ~GameManager(); 14 | static GameManager* GetInstance(); 15 | 16 | bool Init(); 17 | static DWORD WINAPI MainThreadProc(LPVOID lpParameter); 18 | bool BExitGame(); 19 | private: 20 | HANDLE m_hMainThread; 21 | bool m_bExitMainThread; 22 | 23 | 24 | 25 | }; 26 | 27 | void DelAllPacketItem(); 28 | void GetItemFromGround(); 29 | int GetGoodItemFromGround(bool bMove); 30 | void SearchDoorPosAndMove(int next, bool bFis); 31 | 32 | ULONG NTAPI ScanTenRPCS(__in PVOID Parameter); 33 | void HookQuanPing(); 34 | void HookRecv(); 35 | void HookDuoDuan(); 36 | void HookFenLie(); 37 | void HookDecHealth(); 38 | void HookBiegongProxy(); 39 | DWORD GetMapCurDiff(DWORD MapId); 40 | 41 | 42 | bool HideThread(HANDLE hThread); 43 | -------------------------------------------------------------------------------- /DxfTools/GetDirection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/GetDirection.cpp -------------------------------------------------------------------------------- /DxfTools/GetDirection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | typedef struct _POINT_3D_DWORD 5 | { 6 | int x; 7 | int y; 8 | int z; 9 | }POINT_3D_DWORD, *PPOINT_3D_DWORD; 10 | 11 | typedef struct _A_STAR_NODE 12 | { 13 | DWORD F; 14 | DWORD G; 15 | DWORD H; 16 | POINT_3D_DWORD currpnt; 17 | POINT_3D_DWORD parentpnt; 18 | }A_STAR_NODE, *PA_STAR_NODE; 19 | 20 | 21 | typedef struct _MAP_DATA 22 | { 23 | wchar_t* mapname; 24 | DWORD MapId; 25 | std::vector MapCross; 26 | POINT_3D_DWORD startpnt; 27 | POINT_3D_DWORD endpnt; 28 | DWORD width; 29 | DWORD height; 30 | std::vector path; 31 | DWORD CastPL; 32 | }MAP_DATA, *PMAP_DATA; 33 | 34 | typedef struct _MAP_CROSS 35 | { 36 | POINT_3D_DWORD currpnt; 37 | DWORD cross; 38 | bool left; 39 | bool right; 40 | bool top; 41 | bool bottom; 42 | DWORD color; 43 | }MAP_CROSS, *PMAP_CROSS; 44 | 45 | class GetDirection 46 | { 47 | public: 48 | GetDirection(); 49 | ~GetDirection(); 50 | 51 | 52 | void Get_Direction(std::vector> mapCross, POINT_3D_DWORD start, POINT_3D_DWORD end, int width, int height, std::list& path); 53 | MAP_DATA GetData(bool bDeep); 54 | DWORD GetRealPath(std::vector MapCross, DWORD width, DWORD height, POINT_3D_DWORD start, POINT_3D_DWORD end, std::vector& realpath); 55 | DWORD SortPath(std::list cross, std::vector& path); 56 | bool GetMapDirection(int cross_orientation, int orientation); 57 | int GetNextDirection(POINT_3D_DWORD curr, POINT_3D_DWORD next); 58 | }; 59 | 60 | -------------------------------------------------------------------------------- /DxfTools/Import.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "stdafx.h" 3 | #include 4 | 5 | #define NTSTATUS ULONG 6 | 7 | extern "C" 8 | { 9 | 10 | typedef LONG(WINAPI *TNtReadVirtualMemory)(HANDLE ProcessHandle, PVOID BaseAddress, PVOID Buffer, ULONG NumberOfBytesToRead, PULONG NumberOfBytesReaded); 11 | typedef LONG(WINAPI *TNtWriteVirtualMemory)(HANDLE ProcessHandle, PVOID BaseAddress, PVOID Buffer, ULONG NumberOfBytesToWrite, PULONG NumberOfBytesWritten); 12 | typedef LONG(WINAPI *TNtProtectVirtualMemory)(__in HANDLE ProcessHandle,__inout PVOID *BaseAddress,__inout PSIZE_T RegionSize,__in ULONG NewProtectWin32,__out PULONG OldProtect); 13 | 14 | NTSYSCALLAPI 15 | NTSTATUS 16 | NTAPI 17 | LdrFindEntryForAddress( 18 | __in PVOID Address, 19 | __out PLDR_DATA_TABLE_ENTRY * SectionHandle 20 | ); 21 | 22 | 23 | typedef struct _RDE_LDR_DATA_TABLE_ENTRY { 24 | LIST_ENTRY InLoadOrderLinks; 25 | LIST_ENTRY InMemoryOrderLinks; 26 | LIST_ENTRY InInitializationOrderLinks; 27 | PVOID DllBase; 28 | PVOID EntryPoint; 29 | ULONG SizeOfImage; 30 | UNICODE_STRING FullDllName; 31 | UNICODE_STRING BaseDllName; 32 | ULONG Flags; 33 | USHORT LoadCount; 34 | USHORT TlsIndex; 35 | 36 | union { 37 | LIST_ENTRY HashLinks; 38 | struct { 39 | PVOID SectionPointer; 40 | ULONG CheckSum; 41 | }s1; 42 | }u1; 43 | 44 | union { 45 | struct { 46 | ULONG TimeDateStamp; 47 | }s1; 48 | 49 | struct { 50 | PVOID LoadedImports; 51 | }s2; 52 | }u2; 53 | 54 | } RDE_LDR_DATA_TABLE_ENTRY, *PRDE_LDR_DATA_TABLE_ENTRY; 55 | 56 | 57 | typedef CLIENT_ID *PCLIENT_ID; 58 | 59 | typedef 60 | NTSTATUS 61 | (NTAPI * PSE_THREAD_START_ROUTINE)( 62 | __in PVOID ThreadParameter 63 | ); 64 | 65 | 66 | NTSYSCALLAPI 67 | NTSTATUS 68 | NTAPI 69 | RtlCreateUserThread( 70 | __in HANDLE Process, 71 | __in PSECURITY_DESCRIPTOR ThreadSecurityDescriptor, 72 | __in BOOLEAN CreateSuspended, 73 | __in ULONG StackZeroBits, 74 | __in_opt SIZE_T MaximumStackSize, 75 | __in_opt SIZE_T InitialStackSize, 76 | __in PSE_THREAD_START_ROUTINE StartAddress, 77 | __in PVOID Parameter, 78 | __out PHANDLE Thread, 79 | __out CLIENT_ID* ClientId 80 | ); 81 | } -------------------------------------------------------------------------------- /DxfTools/MuMa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/MuMa.h -------------------------------------------------------------------------------- /DxfTools/TaskItem.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "TaskItem.h" 3 | #include "baseaddr.h" 4 | #include "utils.h" 5 | 6 | TaskItem::TaskItem(DWORD TaskObject) : m_TaskObject(TaskObject) 7 | { 8 | } 9 | 10 | TaskItem::~TaskItem() 11 | { 12 | } 13 | 14 | DWORD TaskItem::GetTaskId() 15 | { 16 | return utils::ReadValue(m_TaskObject); 17 | } 18 | 19 | DWORD TaskItem::GetTaskType() 20 | { 21 | return utils::ReadValue(m_TaskObject + Base_TaskTypeAddr); 22 | } 23 | 24 | DWORD TaskItem::GetTaskGetLevel() 25 | { 26 | return utils::ReadValue(m_TaskObject + Base_TaskGetLevelAddr); 27 | } 28 | 29 | DWORD TaskItem::GetTaskFinishLevel() 30 | { 31 | return utils::ReadValue(m_TaskObject + Base_TaskFinishLevelAddr); 32 | } 33 | 34 | wchar_t * TaskItem::GetTaskName() 35 | { 36 | DWORD NameCount = utils::ReadValue(m_TaskObject + 0x1C); 37 | if (NameCount > 7) { 38 | DWORD name = utils::ReadValue(m_TaskObject + 0x8); 39 | if (name) { 40 | return (wchar_t*)(name); 41 | } 42 | } 43 | else { 44 | return (wchar_t*)(m_TaskObject + 0x8); 45 | } 46 | 47 | return nullptr; 48 | } 49 | 50 | DWORD TaskItem::GetMapId() 51 | { 52 | DWORD obj = utils::ReadValue(m_TaskObject + Base_taskMapIdAddr); 53 | if (obj) { 54 | return utils::ReadValue(obj); 55 | } 56 | return 0; 57 | } 58 | 59 | wchar_t * TaskItem::GetSeek() 60 | { 61 | DWORD name = utils::ReadValue(m_TaskObject + Base_taskSeekAddr); 62 | if (name) { 63 | return (wchar_t*)(name); 64 | } 65 | return nullptr; 66 | } 67 | 68 | DWORD TaskItem::GetTaskMaterialCount() 69 | { 70 | return utils::ReadValue(m_TaskObject + Base_TaskMaterialCountAddr); 71 | } 72 | -------------------------------------------------------------------------------- /DxfTools/TaskItem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/TaskItem.h -------------------------------------------------------------------------------- /DxfTools/TaskManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/TaskManager.cpp -------------------------------------------------------------------------------- /DxfTools/TaskManager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "TaskItem.h" 3 | #include 4 | #include 5 | class TaskManager 6 | { 7 | TaskManager(); 8 | TaskManager(const TaskManager&) = delete; 9 | void operator= (const TaskManager&) = delete; 10 | 11 | static std::unique_ptr m_pInstance; 12 | public: 13 | ~TaskManager(); 14 | static TaskManager* GetInstance(); 15 | DWORD GetTaskItem(); 16 | 17 | void AutoTask(); 18 | void DelCommitTask(); 19 | DWORD GetNTimes(); 20 | bool IsSameTask(DWORD TaskId); 21 | private: 22 | std::vector m_TaskList; 23 | }; 24 | 25 | -------------------------------------------------------------------------------- /DxfTools/baseaddr.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "baseaddr.h" 3 | 4 | -------------------------------------------------------------------------------- /DxfTools/baseaddr.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | 4 | #define Base_NoticeCallAddr 0x29DAB50 //公告CALL 5 | #define Base_NoticeCallECXAddr 0x5655038 //商店基址 6 | #define Base_PlayerObjectAddr 0x5768830 //人物基址 7 | 8 | #define Base_TaskTravseAddr 0x05655070 //任务基址 9 | #define Base_TaskTravseStartAddr 0x68 //任务遍历起始地址 10 | #define Base_TaskTravseEndAddr 0x6C //任务遍历结束地址 11 | #define Base_TaskTypeAddr 0x134 //任务类型 12 | #define Base_TaskGetLevelAddr 0x490 //任务接取等级 13 | #define Base_TaskFinishLevelAddr 0x1C4 //任务完成等级 14 | #define Base_taskMapIdAddr 0x2B8 //任务副本 15 | #define Base_taskSeekAddr 0x2D0 //任务条件 16 | #define Base_TaskMaterialCountAddr 0x2F4 //任务材料 没有更新 17 | #define Base_GameStateAddr 0x0554B34C //游戏状态 18 | 19 | #define Base_SendPacketAddr 0x3745830 //发包CALL 20 | #define Base_AllocatePacketAddr 0x3743FF0 //缓冲CALL 21 | #define Base_EncryptPacketAddr 0x3744100 //加密包CALL 22 | #define Base_SendPacketBaseAddr 0x57DC43C //发包基址 23 | 24 | #define Base_TaskFinishCallAddr 0x01ED7C30 //任务完成CALL 25 | #define Base_TaskCommitCallAddr 0x01ED7CB0 //任务提交CALL 26 | #define Base_TaskAcceptCallAddr 0x01ED7D30 //任务接受CALL 27 | 28 | #define Base_MapOffsetAddr 0x0C8 //地图偏移 29 | #define Base_MapStartAddr 0x0c0 //首地址 30 | #define Base_TypeOffsetAddr 0xA4 //类型偏移 31 | #define Base_CampOffsetAddr 0x828 //阵营偏移 32 | #define Base_MonsHealOffsetAddr 0x3B04 //怪物血量偏移 33 | #define Base_EncryptAddr 0x057AA0E0 //解密基址 34 | #define Base_XPointOffsetAddr 0x1D0 //X坐标偏移 (废弃) 35 | #define Base_ObjectSkillCallAddr 0x02B53DC0 //OBJ技能CALL 技能_OBJ 36 | #define Base_SkillCallAddr 0x024EACA0 //技能CALL 37 | #define Base_ObjectSkillPointAddr 0x028641A0 //写入对象 38 | #define Base_PacketTravseAddr 0x0565503C //背包基址 39 | #define Base_KeybroadAddr 0x06527528 //按键基址 40 | #define Base_ScoreCallAddr 0x0288BFD0 //评分CALL 41 | #define Base_ScoreBaseAddr 0x05653414 //评分基址 42 | #define Base_DecHealthCallAddr 0x026CC910 //扣血CALL 43 | 44 | #define Base_AreaCallArgAddr 0x0579D21C //区域CALL参数 45 | #define Base_AreaCallAddr 0x0367D7B0 //区域CALL 46 | #define Base_EreaPntAddr 0xCBC4 //区域坐标 47 | #define Base_PasswordKeyCallAddr 0x0389F930 //密钥CALL 48 | #define Base_CreateEquimentCallAddr 0x29F7EB0 //创建CALL 49 | #define Base_WearEquimentCallAddr 0x027A9A50 //穿戴call 50 | #define Base_TimeTickAddr 0x020A028 //时间基址 51 | #define Base_BOpenDoorAddr 0x118 //是否开门偏移 52 | 53 | #define Base_AStarOffsetAddr1 0x2AC //宽高偏移 54 | #define Base_AStarOffsetAddr2 0x2C0 //数组偏移 55 | #define Base_AStarOffsetAddr3 0xCC //起始坐标X 56 | #define Base_AStarOffsetAddr4 0xD0 //起始坐标Y 57 | #define Base_AStarOffsetAddr5 0x19C //编号偏移 58 | #define Base_DeepBoosRoomXPos 0xC80 //深渊boosX位置 59 | #define Base_DeepBoosRoomYPos 0xC88 //深渊boosY位置 60 | #define Base_CurrentRoomXPos 0xCC //当前X位置 61 | #define Base_CurrentRoomYPos 0xD0 //当前Y位置 62 | #define Base_BoosRoomXPos 0xC70 //BOOSX位置 63 | #define Base_BoosRoomYPos 0xC78 //BOOSY位置 64 | 65 | #define Base_MoveToNextRoomCallAddr 0x01A436C0 //过图CALL 66 | #define Base_SetPosCallAddr 0x02650770 //坐标CALL 67 | #define Base_SetPosCallVTableAddr 0xC8 //坐标CALL虚表 68 | 69 | #define Base_MaxPLAddr 0x05768AD8 //最大疲劳 70 | #define Base_CurrentPLAddr 0x05768AD0 //当前疲劳 71 | #define Base_RoleObjectAddr 0x05653AF0 //角色基址 72 | #define Base_MapTravseOffsetAddr 0xB8 //二级偏移 地图难度遍历 73 | #define Base_MapTravseStartAddr 0x3F0 //三级偏移 地图难度遍历首地址 74 | #define Base_MapTravseObjectSize 0x70 //地图遍历对象大小 75 | 76 | #define Base_RoleLevelAddr 0x05637904 //角色等级 77 | #define Base_BreakDownCallEcxAgAddr 0x649C //分解CALL ECX 78 | #define Base_BreakDownCallEcxAddr 0x025CF260 //分解CALL 79 | #define Base_HookBeiGongAddr 0x027ED35C //自定义伤害 80 | #define Base_IsInTalkAddr 0x057978B4 //对话基址 81 | #define Base_HookBaiziAddr 0x026EC242 //HOOK白字 82 | #define Base_HookGouziAddr 0x027F845D //HOOK钩子 83 | #define Base_HookRecvAddr 0x25167F0 //收包CALL 84 | 85 | #define Base_PntMoveToPosOffset 0x8C //坐标顺图 顺图偏移 86 | #define Base_PntMoveToPosOffsetAddr 0x1744 //坐标顺图2 87 | 88 | #define Base_DirectoryAddr 0x66CA7D4 //目录基址 89 | #define Base_PathCallAddr 0x38BF1E0 //路径CALL 90 | #define Base_FuBenInfoAddr 0x56259DC //副本信息 91 | #define Base_JiaZaiCallAddr 0x37104A0 //加载CALL 92 | #define Base_FenGeCallAddr 0x379DE40 //分割CALL 93 | #define Base_PathBaseAddr 0x56259F0 //路径基址 -------------------------------------------------------------------------------- /DxfTools/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/dllmain.cpp -------------------------------------------------------------------------------- /DxfTools/dllmain11.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/dllmain11.cpp -------------------------------------------------------------------------------- /DxfTools/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/resource.h -------------------------------------------------------------------------------- /DxfTools/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/stdafx.cpp -------------------------------------------------------------------------------- /DxfTools/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/stdafx.h -------------------------------------------------------------------------------- /DxfTools/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/targetver.h -------------------------------------------------------------------------------- /DxfTools/utils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/utils.cpp -------------------------------------------------------------------------------- /DxfTools/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/DxfTools/utils.h -------------------------------------------------------------------------------- /GameLoader/GameLoader.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/GameLoader/GameLoader.cpp -------------------------------------------------------------------------------- /GameLoader/GameLoader.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {58C6ACE2-95C8-432E-A011-3B24F504DBBE} 24 | Win32Proj 25 | GameLoader 26 | 10.0.17134.0 27 | 28 | 29 | 30 | DynamicLibrary 31 | true 32 | v141 33 | Unicode 34 | 35 | 36 | DynamicLibrary 37 | false 38 | v141 39 | true 40 | Unicode 41 | 42 | 43 | DynamicLibrary 44 | true 45 | v141 46 | Unicode 47 | 48 | 49 | DynamicLibrary 50 | false 51 | v141 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | true 75 | msacm32 76 | .drv 77 | 78 | 79 | true 80 | 81 | 82 | false 83 | 84 | 85 | false 86 | 87 | 88 | 89 | Use 90 | Level3 91 | Disabled 92 | true 93 | WIN32;_DEBUG;GAMELOADER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 94 | true 95 | 96 | 97 | Windows 98 | true 99 | 100 | 101 | 102 | 103 | Use 104 | Level3 105 | Disabled 106 | true 107 | _DEBUG;GAMELOADER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 108 | true 109 | 110 | 111 | Windows 112 | true 113 | 114 | 115 | 116 | 117 | Use 118 | Level3 119 | MaxSpeed 120 | true 121 | true 122 | true 123 | WIN32;NDEBUG;GAMELOADER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 124 | true 125 | 126 | 127 | Windows 128 | true 129 | true 130 | true 131 | 132 | 133 | 134 | 135 | Use 136 | Level3 137 | MaxSpeed 138 | true 139 | true 140 | true 141 | NDEBUG;GAMELOADER_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) 142 | true 143 | 144 | 145 | Windows 146 | true 147 | true 148 | true 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | Create 162 | Create 163 | Create 164 | Create 165 | 166 | 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /GameLoader/GameLoader.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | 29 | 30 | Source Files 31 | 32 | 33 | Source Files 34 | 35 | 36 | Source Files 37 | 38 | 39 | Source Files 40 | 41 | 42 | -------------------------------------------------------------------------------- /GameLoader/LoadPE.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/GameLoader/LoadPE.cpp -------------------------------------------------------------------------------- /GameLoader/LoadPE.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | BOOL LaunchDll(char *strName,DWORD dwReason); -------------------------------------------------------------------------------- /GameLoader/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/GameLoader/dllmain.cpp -------------------------------------------------------------------------------- /GameLoader/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/GameLoader/stdafx.cpp -------------------------------------------------------------------------------- /GameLoader/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/GameLoader/stdafx.h -------------------------------------------------------------------------------- /GameLoader/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fantasyboy/DxfTools/cf49b40dadbbb2e52eba0cbc011e7b914d3fb0b2/GameLoader/targetver.h -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DxfTools 2 | --------------------------------------------------------------------------------