From c3901be7c97080c63bd5e1fd4ed3c53195408b57 Mon Sep 17 00:00:00 2001 From: Gregor Haas Date: Mon, 9 Dec 2019 15:58:21 -0500 Subject: [PATCH] Bring the stripped binary files to the remote --- checkm8_remote/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/checkm8_remote/CMakeLists.txt b/checkm8_remote/CMakeLists.txt index 14b5244..077e6ed 100644 --- a/checkm8_remote/CMakeLists.txt +++ b/checkm8_remote/CMakeLists.txt @@ -3,5 +3,8 @@ set(CMAKE_C_FLAGS -g) include_directories(include) add_executable(checkm8_remote main.c src/libusb_helpers.c src/commands.c src/exploit.c src/payload.c) +add_custom_command(TARGET checkm8_remote POST_BUILD + COMMAND ln + ARGS -s ${PROJECT_SOURCE_DIR}/checkm8_payloads/bin ${CMAKE_CURRENT_SOURCE_DIR}/bin/payloads) target_link_libraries(checkm8_remote checkm8_libusb pthread udev) \ No newline at end of file