├── Lynx
├── Lynx.sln
├── Lynx
│ ├── Icons-Land-Medical-Equipment-Syringe-Full.ico
│ ├── Lynx.vcxproj
│ ├── Lynx.vcxproj.filters
│ ├── Lynx.vcxproj.user
│ ├── Resource.rc
│ ├── console.cpp
│ ├── console.h
│ ├── gui.cpp
│ ├── gui.h
│ ├── helper.cpp
│ ├── helper.h
│ ├── injector.cpp
│ ├── injector.h
│ ├── main.cpp
│ └── resource.h
└── TestDLL
│ ├── TestDLL.vcxproj
│ ├── TestDLL.vcxproj.filters
│ └── main.cpp
└── README.md
/Lynx/Lynx.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lynx", "Lynx\Lynx.vcxproj", "{67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}"
7 | ProjectSection(ProjectDependencies) = postProject
8 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4} = {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}
9 | EndProjectSection
10 | EndProject
11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestDLL", "TestDLL\TestDLL.vcxproj", "{8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}"
12 | EndProject
13 | Global
14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
15 | Debug|x64 = Debug|x64
16 | Debug|x86 = Debug|x86
17 | Release|x64 = Release|x64
18 | Release|x86 = Release|x86
19 | EndGlobalSection
20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
21 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Debug|x64.ActiveCfg = Debug|x64
22 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Debug|x64.Build.0 = Debug|x64
23 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Debug|x86.ActiveCfg = Debug|Win32
24 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Debug|x86.Build.0 = Debug|Win32
25 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Release|x64.ActiveCfg = Release|x64
26 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Release|x64.Build.0 = Release|x64
27 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Release|x86.ActiveCfg = Release|Win32
28 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}.Release|x86.Build.0 = Release|Win32
29 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Debug|x64.ActiveCfg = Debug|x64
30 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Debug|x64.Build.0 = Debug|x64
31 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Debug|x86.ActiveCfg = Release|Win32
32 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Debug|x86.Build.0 = Release|Win32
33 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Release|x64.ActiveCfg = Release|x64
34 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Release|x64.Build.0 = Release|x64
35 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Release|x86.ActiveCfg = Release|Win32
36 | {8738CC4F-FFC5-4DD4-9810-7D31E2C5ADB4}.Release|x86.Build.0 = Release|Win32
37 | EndGlobalSection
38 | GlobalSection(SolutionProperties) = preSolution
39 | HideSolutionNode = FALSE
40 | EndGlobalSection
41 | EndGlobal
42 |
--------------------------------------------------------------------------------
/Lynx/Lynx/Icons-Land-Medical-Equipment-Syringe-Full.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NtRaiseHardError/Lynx/8d46067be9ea36ff0644d07b99e004baa9f68207/Lynx/Lynx/Icons-Land-Medical-Equipment-Syringe-Full.ico
--------------------------------------------------------------------------------
/Lynx/Lynx/Lynx.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 | {67E59F8D-BF37-4F87-8DEA-C9F619BE17BE}
23 | Win32Proj
24 | Lynx
25 | 8.1
26 |
27 |
28 |
29 | Application
30 | true
31 | v140
32 | Unicode
33 |
34 |
35 | Application
36 | false
37 | v140_xp
38 | true
39 | Unicode
40 |
41 |
42 | Application
43 | true
44 | v140
45 | Unicode
46 |
47 |
48 | Application
49 | false
50 | v140
51 | true
52 | Unicode
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | true
74 |
75 |
76 | true
77 |
78 |
79 | false
80 |
81 |
82 | false
83 |
84 |
85 |
86 |
87 |
88 | Level3
89 | Disabled
90 | WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)
91 |
92 |
93 | Windows
94 | true
95 |
96 |
97 |
98 |
99 |
100 |
101 | Level3
102 | Disabled
103 | _DEBUG;_WINDOWS;%(PreprocessorDefinitions)
104 |
105 |
106 | Windows
107 | true
108 |
109 |
110 |
111 |
112 | Level3
113 |
114 |
115 | MaxSpeed
116 | true
117 | true
118 | WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)
119 | MultiThreaded
120 |
121 |
122 | Windows
123 | true
124 | true
125 | false
126 |
127 |
128 |
129 |
130 | Level3
131 |
132 |
133 | MaxSpeed
134 | true
135 | true
136 | NDEBUG;_WINDOWS;%(PreprocessorDefinitions)
137 |
138 |
139 | Windows
140 | true
141 | true
142 | true
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
--------------------------------------------------------------------------------
/Lynx/Lynx/Lynx.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;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 | Source Files
20 |
21 |
22 | Source Files
23 |
24 |
25 | Source Files
26 |
27 |
28 | Source Files
29 |
30 |
31 | Source Files
32 |
33 |
34 |
35 |
36 | Header Files
37 |
38 |
39 | Header Files
40 |
41 |
42 | Header Files
43 |
44 |
45 | Header Files
46 |
47 |
48 | Header Files
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | Resource Files
57 |
58 |
59 |
--------------------------------------------------------------------------------
/Lynx/Lynx/Lynx.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | WindowsLocalDebugger
7 |
8 |
9 |
10 |
11 | WindowsLocalDebugger
12 |
13 |
14 | -p explorer.exe
15 | WindowsLocalDebugger
16 |
17 |
--------------------------------------------------------------------------------
/Lynx/Lynx/Resource.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NtRaiseHardError/Lynx/8d46067be9ea36ff0644d07b99e004baa9f68207/Lynx/Lynx/Resource.rc
--------------------------------------------------------------------------------
/Lynx/Lynx/console.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 | #include
6 |
7 | #include "console.h"
8 | #include "helper.h"
9 | #include "injector.h"
10 |
11 | #define CONSOLE_WINDOW_TITLE L"Lynx DLL Injector v1.0"
12 |
13 | struct _params {
14 | std::wstring lpProcessName;
15 | std::wstring lpUpdatePayload;
16 | DWORD dwOptions;
17 | };
18 |
19 | VOID CreateConsole() {
20 | ::AllocConsole();
21 | ::AttachConsole(::GetCurrentProcessId());
22 | ::SetConsoleTitle(CONSOLE_WINDOW_TITLE);
23 | freopen("CON", "w", stdout);
24 | freopen("CON", "w", stderr);
25 | }
26 |
27 | VOID DestroyConsole() {
28 | ::FreeConsole();
29 | }
30 |
31 | VOID PauseConsole() {
32 | WCHAR szTmp[2];
33 | DWORD dwRead = 0;
34 |
35 | //::WriteConsole
36 | std::wcerr << L"Press Enter to continue...";
37 | ::ReadConsole(::GetStdHandle(STD_INPUT_HANDLE), szTmp, 1, &dwRead, NULL);
38 | }
39 |
40 | /*
41 | * Console syntax: argv[0] -p | -u -o