├── README.md
├── dll2shellcode.sln
└── dll2shellcode
├── TestDll
├── TestDll.cpp
├── TestDll.vcxproj
├── TestDll.vcxproj.filters
├── TestDll.vcxproj.user
├── dllmain.cpp
├── stdafx.cpp
├── stdafx.h
└── targetver.h
├── dll2shellcode.sln
└── dll2shellcode
├── dll2shellcode.cpp
├── dll2shellcode.vcxproj
├── dll2shellcode.vcxproj.filters
├── dll2shellcode.vcxproj.user
├── makeshell.h
├── pch.cpp
└── pch.h
/README.md:
--------------------------------------------------------------------------------
1 | # dll2shellcode
2 |
3 | dll转shellcode工具,支持x86&&x64。
4 |
5 | 编译选项注意关闭GS,优化选项/O1
6 |
7 |
8 |
--------------------------------------------------------------------------------
/dll2shellcode.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28010.2036
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dll2shellcode", "dll2shellcode\dll2shellcode.vcxproj", "{7E2C6DF5-09CE-442A-8400-2C725F420ECE}"
7 | EndProject
8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestDll", "TestDll\TestDll.vcxproj", "{88557CB1-B719-4842-905B-1B8841E65970}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Win32 = Debug|Win32
13 | Debug|x64 = Debug|x64
14 | Release|Win32 = Release|Win32
15 | Release|x64 = Release|x64
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Debug|Win32.ActiveCfg = Debug|Win32
19 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Debug|Win32.Build.0 = Debug|Win32
20 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Debug|x64.ActiveCfg = Debug|x64
21 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Debug|x64.Build.0 = Debug|x64
22 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Release|Win32.ActiveCfg = Release|Win32
23 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Release|Win32.Build.0 = Release|Win32
24 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Release|x64.ActiveCfg = Release|x64
25 | {7E2C6DF5-09CE-442A-8400-2C725F420ECE}.Release|x64.Build.0 = Release|x64
26 | {88557CB1-B719-4842-905B-1B8841E65970}.Debug|Win32.ActiveCfg = Debug|Win32
27 | {88557CB1-B719-4842-905B-1B8841E65970}.Debug|Win32.Build.0 = Debug|Win32
28 | {88557CB1-B719-4842-905B-1B8841E65970}.Debug|x64.ActiveCfg = Debug|Win32
29 | {88557CB1-B719-4842-905B-1B8841E65970}.Release|Win32.ActiveCfg = Release|Win32
30 | {88557CB1-B719-4842-905B-1B8841E65970}.Release|Win32.Build.0 = Release|Win32
31 | {88557CB1-B719-4842-905B-1B8841E65970}.Release|x64.ActiveCfg = Release|x64
32 | EndGlobalSection
33 | GlobalSection(SolutionProperties) = preSolution
34 | HideSolutionNode = FALSE
35 | EndGlobalSection
36 | GlobalSection(ExtensibilityGlobals) = postSolution
37 | SolutionGuid = {E59AB97C-C3E1-497B-B1D6-488FCCF37FE1}
38 | EndGlobalSection
39 | EndGlobal
40 |
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/TestDll.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/TestDll/TestDll.cpp
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/TestDll.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 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}
24 | Win32Proj
25 | TestDll
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 | false
75 |
76 |
77 | true
78 |
79 |
80 | true
81 |
82 |
83 | false
84 |
85 |
86 |
87 | Use
88 | Level3
89 | MaxSpeed
90 | true
91 | true
92 | true
93 | WIN32;NDEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
94 | true
95 | MultiThreaded
96 |
97 |
98 | Windows
99 | true
100 | true
101 | true
102 |
103 |
104 |
105 |
106 | Use
107 | Level3
108 | Disabled
109 | true
110 | WIN32;_DEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
111 | true
112 |
113 |
114 | Windows
115 | true
116 |
117 |
118 |
119 |
120 | Use
121 | Level3
122 | Disabled
123 | true
124 | _DEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
125 | true
126 |
127 |
128 | Windows
129 | true
130 |
131 |
132 |
133 |
134 | Use
135 | Level3
136 | MaxSpeed
137 | true
138 | true
139 | true
140 | NDEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
141 | true
142 | MultiThreaded
143 |
144 |
145 | Windows
146 | true
147 | true
148 | true
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 | Create
159 | Create
160 | Create
161 | Create
162 |
163 |
164 |
165 |
166 |
167 |
168 |
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/TestDll.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 | 头文件
20 |
21 |
22 | 头文件
23 |
24 |
25 |
26 |
27 | 源文件
28 |
29 |
30 | 源文件
31 |
32 |
33 | 源文件
34 |
35 |
36 |
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/TestDll.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/TestDll/dllmain.cpp
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/TestDll/stdafx.cpp
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/TestDll/stdafx.h
--------------------------------------------------------------------------------
/dll2shellcode/TestDll/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/TestDll/targetver.h
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28010.2036
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dll2shellcode", "dll2shellcode\dll2shellcode.vcxproj", "{C906DF3C-3432-4D85-B0CE-CD7DBC44176B}"
7 | EndProject
8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestDll", "TestDll\TestDll.vcxproj", "{4C3505BD-5793-49C7-B977-780E46EF3DE3}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|x64 = Debug|x64
13 | Debug|x86 = Debug|x86
14 | Release|x64 = Release|x64
15 | Release|x86 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Debug|x64.ActiveCfg = Debug|x64
19 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Debug|x64.Build.0 = Debug|x64
20 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Debug|x86.ActiveCfg = Debug|Win32
21 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Debug|x86.Build.0 = Debug|Win32
22 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Release|x64.ActiveCfg = Release|x64
23 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Release|x64.Build.0 = Release|x64
24 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Release|x86.ActiveCfg = Release|Win32
25 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}.Release|x86.Build.0 = Release|Win32
26 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Debug|x64.ActiveCfg = Debug|x64
27 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Debug|x64.Build.0 = Debug|x64
28 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Debug|x86.ActiveCfg = Debug|Win32
29 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Debug|x86.Build.0 = Debug|Win32
30 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Release|x64.ActiveCfg = Release|x64
31 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Release|x64.Build.0 = Release|x64
32 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Release|x86.ActiveCfg = Release|Win32
33 | {4C3505BD-5793-49C7-B977-780E46EF3DE3}.Release|x86.Build.0 = Release|Win32
34 | EndGlobalSection
35 | GlobalSection(SolutionProperties) = preSolution
36 | HideSolutionNode = FALSE
37 | EndGlobalSection
38 | GlobalSection(ExtensibilityGlobals) = postSolution
39 | SolutionGuid = {8ACB3955-5F9E-4927-8FAA-C17515437353}
40 | EndGlobalSection
41 | EndGlobal
42 |
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/dll2shellcode.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/dll2shellcode/dll2shellcode.cpp
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/dll2shellcode.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 | {C906DF3C-3432-4D85-B0CE-CD7DBC44176B}
24 | Win32Proj
25 | dll2shellcode
26 | 10.0.17134.0
27 |
28 |
29 |
30 | Application
31 | true
32 | v141
33 | Unicode
34 |
35 |
36 | Application
37 | false
38 | v141
39 | true
40 | NotSet
41 |
42 |
43 | Application
44 | true
45 | v141
46 | Unicode
47 |
48 |
49 | Application
50 | false
51 | Intel C++ Compiler 18.0
52 | true
53 | NotSet
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | true
75 |
76 |
77 | true
78 |
79 |
80 | false
81 | $(VC_IncludePath);$(WindowsSDK_IncludePath);E:\work\sdk\boost_1_70_0\boost_1_70_0;
82 | $(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(NETFXKitsDir)Lib\um\x86;;E:\work\sdk\boost_1_70_0\boost_1_70_0\bin\vc141\lib;
83 |
84 |
85 | false
86 | $(VC_IncludePath);$(WindowsSDK_IncludePath);E:\work\sdk\boost_1_70_0\boost_1_70_0
87 | $(VC_LibraryPath_x64);$(WindowsSDK_LibraryPath_x64);$(NETFXKitsDir)Lib\um\x64;E:\work\sdk\boost_1_70_0\boost_1_70_0\bin\intel180_x64\lib;D:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.3.210\windows\compiler\lib\intel64_win
88 |
89 |
90 |
91 | Use
92 | Level3
93 | Disabled
94 | true
95 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
96 | true
97 | pch.h
98 |
99 |
100 | Console
101 | true
102 |
103 |
104 |
105 |
106 | Use
107 | Level3
108 | Disabled
109 | true
110 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions)
111 | true
112 | pch.h
113 |
114 |
115 | Console
116 | true
117 |
118 |
119 |
120 |
121 | Use
122 | Level3
123 | MinSpace
124 | true
125 | false
126 | true
127 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
128 | false
129 | pch.h
130 | MultiThreaded
131 | false
132 |
133 |
134 | Console
135 | true
136 | true
137 | true
138 |
139 |
140 |
141 |
142 | Use
143 | TurnOffAllWarnings
144 | MinSpace
145 | true
146 | true
147 | true
148 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
149 | true
150 | pch.h
151 | MultiThreaded
152 | false
153 |
154 |
155 | Console
156 | true
157 | true
158 | true
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 | Create
169 | Create
170 | Create
171 | Create
172 |
173 |
174 |
175 |
176 |
177 |
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/dll2shellcode.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 | 头文件
20 |
21 |
22 | 头文件
23 |
24 |
25 |
26 |
27 | 源文件
28 |
29 |
30 | 源文件
31 |
32 |
33 |
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/dll2shellcode.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/makeshell.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/dll2shellcode/makeshell.h
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/pch.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/dll2shellcode/pch.cpp
--------------------------------------------------------------------------------
/dll2shellcode/dll2shellcode/pch.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/w1nds/dll2shellcode/87b71716bcb6003f8d2ecfa2060596900cc56124/dll2shellcode/dll2shellcode/pch.h
--------------------------------------------------------------------------------