Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit 977823d

Browse files
committed
较大更新
修复学生共享屏幕黑屏的问题 添加UDP重放攻击功能(原理byht0Ruial) 添加扫描局域网在线IP功能 添加快捷键自定义 添加可隐藏托盘图标 默认隐藏极域端的输出窗口 修复隐藏快捷键功能子窗口显示的问题 其他小问题修复
1 parent 1148cf5 commit 977823d

111 files changed

Lines changed: 4768 additions & 1665 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
*.pch
1818
*.log
1919
*.dll
20-
*.sys
2120
*.ini
2221
*.bat
22+
*.enc
23+
*.recipe
2324

JiYuTrainer/App.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "NtHlp.h"
1010
#include "KernelUtils.h"
1111
#include "DriverLoader.h"
12+
#include "JyUdpAttack.h"
1213
#include "RegHlp.h"
1314
#include "TxtUtils.h"
1415
#include "XUnzip.h"
@@ -17,6 +18,7 @@
1718
#include <CommCtrl.h>
1819
#include <ShellAPI.h>
1920
#include <dbghelp.h>
21+
#include <locale>
2022
#include "../JiYuTrainerUI/MainWindow.h"
2123
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
2224
#define CMD_HELP L"\
@@ -443,6 +445,8 @@ int JTAppInternal::RunInternal()
443445
if (!CheckAppCorrectness())
444446
return APP_FAIL_PIRACY_VERSION;
445447

448+
if (GetAsyncKeyState(VK_LMENU) && 0x8000 || GetAsyncKeyState(VK_RMENU) && 0x8000)
449+
appIsConfigMode = true;
446450
if (appArgBreak) {
447451
#ifdef _DEBUG
448452
if (MessageBox(NULL, L"This is a Debug version", L"JiYuTrainer - Debug Break", MB_YESNO | MB_ICONEXCLAMATION) == IDYES)
@@ -511,6 +515,7 @@ int JTAppInternal::RunInternal()
511515

512516
//appLogger->Log(L"SetUnhandledExceptionFilter Prevented: %d", PreventSetUnhandledExceptionFilter());
513517
appWorker = new TrainerWorkerInternal();
518+
appJyUdpAttack = new JyUdpAttack();
514519
appLogger->Log(L"初始化正常");
515520

516521
RUN_MAIN:
@@ -553,6 +558,10 @@ void JTAppInternal::ExitClear()
553558
delete appWorker;
554559
appWorker = nullptr;
555560
}
561+
if (appJyUdpAttack) {
562+
delete appJyUdpAttack;
563+
appJyUdpAttack = nullptr;
564+
}
556565
if (appSetting) {
557566
delete appSetting;
558567
appSetting = nullptr;

JiYuTrainer/App.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class JTAppInternal : public JTApp
7171
SettingHlp* GetSettings() { return appSetting; };
7272
bool GetSelfProtect() { return !appForceNoSelfProtect; }
7373
TrainerWorker* GetTrainerWorker() { return appWorker; };
74+
JyUdpAttack* GetJyUdpAttack() { return appJyUdpAttack; };
7475
void*GetSciterAPI() { return pSciterAPI;}
7576

7677
LPVOID RunOperation(AppOperation op);
@@ -136,6 +137,7 @@ class JTAppInternal : public JTApp
136137
Logger *appLogger = nullptr;
137138
SettingHlp *appSetting = nullptr;
138139
TrainerWorker *appWorker = nullptr;
140+
JyUdpAttack* appJyUdpAttack = nullptr;
139141
MD5Utils * appMd5Utils = nullptr;
140142

141143
void MergePathString();

JiYuTrainer/AppPublic.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#include "Logger.h"
44
#include "SettingHlp.h"
55
#include "TrainerWorker.h"
6+
#include "JyUdpAttack.h"
67

7-
#define CURRENT_VERSION "1.7.016.0202"
8+
#define CURRENT_VERSION "1.7.6.0515"
89

910
#define FAST_STR_BINDER(str, fstr, size, ...) WCHAR str[size]; swprintf_s(str, fstr, __VA_ARGS__)
1011

@@ -105,6 +106,7 @@ class JTApp
105106

106107
virtual LPCWSTR GetStartupErr() { return nullptr; }
107108

109+
virtual JyUdpAttack* GetJyUdpAttack() { return nullptr; };
108110
virtual Logger* GetLogger() { return nullptr; };
109111
virtual SettingHlp* GetSettings() { return nullptr; };
110112
virtual bool GetSelfProtect() { return false; }

JiYuTrainer/CAutoLock.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "stdafx.h"
2+
#include "CAutoLock.h"
3+
4+
CAutoLock::CAutoLock()
5+
{
6+
InitializeCriticalSection(&m_Section);
7+
//Lock();如果是用的时候只定义锁对象,可以不手动进入临界区和退出临界区
8+
}
9+
CAutoLock::~CAutoLock()
10+
{
11+
DeleteCriticalSection(&m_Section);
12+
//UnLock();
13+
}
14+
void CAutoLock::Lock()
15+
{
16+
EnterCriticalSection(&m_Section);
17+
}
18+
void CAutoLock::UnLock()
19+
{
20+
LeaveCriticalSection(&m_Section);
21+
}

JiYuTrainer/CAutoLock.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#ifndef CAUTO_LOCK_H__
2+
#define CAUTO_LOCK_H__
3+
4+
class CAutoLock
5+
{
6+
public:
7+
CAutoLock();
8+
~CAutoLock();
9+
10+
void Lock();
11+
void UnLock();
12+
13+
private:
14+
CRITICAL_SECTION m_Section;
15+
};
16+
17+
#endif

JiYuTrainer/Debug/JiYuTrainer.res

403 KB
Binary file not shown.

JiYuTrainer/JiYuTrainer.rc

8 Bytes
Binary file not shown.

JiYuTrainer/JiYuTrainer.vcxproj

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,32 @@
2323
<ProjectGuid>{3F13035C-4164-4E05-9B5E-BC4546D7E4F6}</ProjectGuid>
2424
<Keyword>Win32Proj</Keyword>
2525
<RootNamespace>JiYuTrainer</RootNamespace>
26-
<WindowsTargetPlatformVersion>7.0</WindowsTargetPlatformVersion>
26+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
2727
</PropertyGroup>
2828
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3030
<ConfigurationType>Application</ConfigurationType>
3131
<UseDebugLibraries>true</UseDebugLibraries>
32-
<PlatformToolset>v141_xp</PlatformToolset>
32+
<PlatformToolset>v142</PlatformToolset>
3333
<CharacterSet>Unicode</CharacterSet>
3434
</PropertyGroup>
3535
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3636
<ConfigurationType>Application</ConfigurationType>
3737
<UseDebugLibraries>false</UseDebugLibraries>
38-
<PlatformToolset>v141_xp</PlatformToolset>
38+
<PlatformToolset>v142</PlatformToolset>
3939
<WholeProgramOptimization>true</WholeProgramOptimization>
4040
<CharacterSet>Unicode</CharacterSet>
4141
</PropertyGroup>
4242
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4343
<ConfigurationType>Application</ConfigurationType>
4444
<UseDebugLibraries>true</UseDebugLibraries>
45-
<PlatformToolset>v141</PlatformToolset>
45+
<PlatformToolset>v142</PlatformToolset>
4646
<CharacterSet>Unicode</CharacterSet>
4747
</PropertyGroup>
4848
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4949
<ConfigurationType>Application</ConfigurationType>
5050
<UseDebugLibraries>false</UseDebugLibraries>
51-
<PlatformToolset>v141</PlatformToolset>
51+
<PlatformToolset>v142</PlatformToolset>
5252
<WholeProgramOptimization>true</WholeProgramOptimization>
5353
<CharacterSet>Unicode</CharacterSet>
5454
</PropertyGroup>
@@ -72,14 +72,14 @@
7272
<PropertyGroup Label="UserMacros" />
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7474
<LinkIncremental>true</LinkIncremental>
75-
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSdk_71A_LibraryPath_x86);$(SolutionDir)$(Configuration)\;</LibraryPath>
75+
<LibraryPath>$(SolutionDir)$(Configuration)\;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86)</LibraryPath>
7676
</PropertyGroup>
7777
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
7878
<LinkIncremental>true</LinkIncremental>
7979
</PropertyGroup>
8080
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
8181
<LinkIncremental>false</LinkIncremental>
82-
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSdk_71A_LibraryPath_x86);$(SolutionDir)$(Configuration)\;</LibraryPath>
82+
<LibraryPath>$(SolutionDir)$(Configuration)\;$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86)</LibraryPath>
8383
</PropertyGroup>
8484
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
8585
<LinkIncremental>false</LinkIncremental>
@@ -97,7 +97,7 @@
9797
<Link>
9898
<SubSystem>Windows</SubSystem>
9999
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
100-
<AdditionalDependencies>ComCtl32.lib;ws2_32.lib;Wininet.lib;wldap32.lib;JiYuTrainerUI.lib;JiYuTrainerUpdater.lib;Dbghelp.lib;Shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
100+
<AdditionalDependencies>Ntdll.lib;Iphlpapi.lib;Mpr.lib;Ws2_32.lib;ComCtl32.lib;ws2_32.lib;Wininet.lib;wldap32.lib;JiYuTrainerUI.lib;JiYuTrainerUpdater.lib;Dbghelp.lib;Shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
101101
<ModuleDefinitionFile>
102102
</ModuleDefinitionFile>
103103
</Link>
@@ -138,7 +138,7 @@
138138
<EnableCOMDATFolding>true</EnableCOMDATFolding>
139139
<OptimizeReferences>true</OptimizeReferences>
140140
<GenerateDebugInformation>DebugFull</GenerateDebugInformation>
141-
<AdditionalDependencies>ComCtl32.lib;ws2_32.lib;Wininet.lib;wldap32.lib;JiYuTrainerUI.lib;JiYuTrainerUpdater.lib;Dbghelp.lib;Shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
141+
<AdditionalDependencies>Ntdll.lib;Iphlpapi.lib;Mpr.lib;Ws2_32.lib;ComCtl32.lib;ws2_32.lib;Wininet.lib;wldap32.lib;JiYuTrainerUI.lib;JiYuTrainerUpdater.lib;Dbghelp.lib;Shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
142142
<ModuleDefinitionFile>
143143
</ModuleDefinitionFile>
144144
</Link>
@@ -167,15 +167,18 @@
167167
</ItemDefinitionGroup>
168168
<ItemGroup>
169169
<ClInclude Include="AppPublic.h" />
170+
<ClInclude Include="CAutoLock.h" />
170171
<ClInclude Include="DriverLoader.h" />
171172
<ClInclude Include="JiYuTrainer.h" />
172173
<ClInclude Include="App.h" />
174+
<ClInclude Include="JyUdpAttack.h" />
173175
<ClInclude Include="KernelUtils.h" />
174176
<ClInclude Include="Logger.h" />
175177
<ClInclude Include="md5.h" />
176178
<ClInclude Include="MD5Utils.h" />
177179
<ClInclude Include="MemoryModule.h" />
178180
<ClInclude Include="MsgCenter.h" />
181+
<ClInclude Include="NetUtils.h" />
179182
<ClInclude Include="NtHlp.h" />
180183
<ClInclude Include="PathHelper.h" />
181184
<ClInclude Include="RegHlp.h" />
@@ -193,15 +196,18 @@
193196
<ClInclude Include="XZip.h" />
194197
</ItemGroup>
195198
<ItemGroup>
199+
<ClCompile Include="CAutoLock.cpp" />
196200
<ClCompile Include="DriverLoader.cpp" />
197201
<ClCompile Include="JiYuTrainer.cpp" />
198202
<ClCompile Include="App.cpp" />
203+
<ClCompile Include="JyUdpAttack.cpp" />
199204
<ClCompile Include="KernelUtils.cpp" />
200205
<ClCompile Include="Logger.cpp" />
201206
<ClCompile Include="md5.cpp" />
202207
<ClCompile Include="MD5Utils.cpp" />
203208
<ClCompile Include="MemoryModule.cpp" />
204209
<ClCompile Include="MsgCenter.cpp" />
210+
<ClCompile Include="NetUtils.cpp" />
205211
<ClCompile Include="NtHlp.cpp" />
206212
<ClCompile Include="PathHelper.cpp" />
207213
<ClCompile Include="RegHlp.cpp" />

JiYuTrainer/JiYuTrainer.vcxproj.filters

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@
9696
<ClInclude Include="RegHlp.h">
9797
<Filter>头文件\Utils</Filter>
9898
</ClInclude>
99+
<ClInclude Include="JyUdpAttack.h">
100+
<Filter>头文件</Filter>
101+
</ClInclude>
102+
<ClInclude Include="NetUtils.h">
103+
<Filter>头文件\Utils</Filter>
104+
</ClInclude>
105+
<ClInclude Include="CAutoLock.h">
106+
<Filter>头文件\Utils</Filter>
107+
</ClInclude>
99108
</ItemGroup>
100109
<ItemGroup>
101110
<ClCompile Include="stdafx.cpp">
@@ -161,6 +170,15 @@
161170
<ClCompile Include="RegHlp.cpp">
162171
<Filter>源文件\Utils</Filter>
163172
</ClCompile>
173+
<ClCompile Include="JyUdpAttack.cpp">
174+
<Filter>源文件</Filter>
175+
</ClCompile>
176+
<ClCompile Include="NetUtils.cpp">
177+
<Filter>源文件\Utils</Filter>
178+
</ClCompile>
179+
<ClCompile Include="CAutoLock.cpp">
180+
<Filter>源文件\Utils</Filter>
181+
</ClCompile>
164182
</ItemGroup>
165183
<ItemGroup>
166184
<ResourceCompile Include="JiYuTrainer.rc">

0 commit comments

Comments
 (0)