Payloads are now linked into the final remote executable... much cleaner but still needs some work
This commit is contained in:
@@ -3,12 +3,8 @@ project(checkm8_remote C)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_FLAGS "-g -Wall")
|
||||
|
||||
|
||||
include_directories(include)
|
||||
add_executable(checkm8_remote main.c src/usb_helpers.c src/exploit.c src/payload.c src/command.c)
|
||||
add_custom_command(TARGET checkm8_remote POST_BUILD
|
||||
COMMAND ln
|
||||
ARGS -s -f -n
|
||||
${CMAKE_SOURCE_DIR}/c8_payloads/bin
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/bin/payloads)
|
||||
|
||||
target_link_libraries(checkm8_remote usb-1.0 pthread udev)
|
||||
target_link_libraries(checkm8_remote usb-1.0 pthread udev payload)
|
||||
Reference in New Issue
Block a user