Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/exploits/cve-2017-8464/build.sh
21367 views
1
#!/bin/sh
2
rm -f *.o *.dll
3
4
CCx86="i686-w64-mingw32"
5
CCx64="x86_64-w64-mingw32"
6
7
${CCx64}-gcc -m64 -c -Os template.c -Wall -shared
8
${CCx64}-dllwrap -m64 --def template.def *.o -o temp.dll
9
${CCx64}-strip -s temp.dll -o ../../../../data/exploits/cve-2017-8464/template_x64_windows.dll
10
rm -f temp.dll *.o
11
chmod -x ../../../../data/exploits/cve-2017-8464/template_x64_windows.dll
12
13
${CCx86}-gcc -c -Os template.c -Wall -shared
14
${CCx86}-dllwrap --def template.def *.o -o temp.dll
15
${CCx86}-strip -s temp.dll -o ../../../../data/exploits/cve-2017-8464/template_x86_windows.dll
16
rm -f temp.dll *.o
17
chmod -x ../../../../data/exploits/cve-2017-8464/template_x86_windows.dll
18
19