Skip to content

Commit

Permalink
major refactor - added features - fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
n3k committed Feb 27, 2023
1 parent 82574f6 commit 4211e24
Show file tree
Hide file tree
Showing 80 changed files with 2,458 additions and 1,441 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cmake_minimum_required(VERSION 3.13)

# Maps to Visual Studio solution file (Tutorial.sln)
# The solution will have all targets (exe, lib, dll)
# as Visual Studio projects (.vcproj)
project (PlatboxClient)

add_subdirectory(PlatboxLib)
add_subdirectory(PlatboxClient)
add_subdirectory(pocs)
65 changes: 22 additions & 43 deletions PlatboxClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,57 +5,36 @@ cmake_minimum_required(VERSION 3.13)
# as Visual Studio projects (.vcproj)
project (PlatboxClient)

include_directories (
"${PROJECT_SOURCE_DIR}/../PlatboxLib/inc"
"${PROJECT_SOURCE_DIR}/../PlatboxLib/inc/smm"
"${PROJECT_SOURCE_DIR}/../PlatboxLib/inc/intel"
"${PROJECT_SOURCE_DIR}/../PlatboxLib/inc/amd"
"${PROJECT_SOURCE_DIR}/../PlatboxLib/DeltaFuzz"
)

if (WIN32)
include_directories ("${PROJECT_SOURCE_DIR}/../PlatboxLib/inc/windows")
endif (WIN32)

include_directories ("${PROJECT_SOURCE_DIR}/inc" "${PROJECT_SOURCE_DIR}/inc/smm" "${PROJECT_SOURCE_DIR}/inc/windows" "${PROJECT_SOURCE_DIR}/inc/linux" "${PROJECT_SOURCE_DIR}/inc/intel" "${PROJECT_SOURCE_DIR}/inc/amd" "${PROJECT_SOURCE_DIR}/DeltaFuzz")
if (UNIX)
include_directories (
"${PROJECT_SOURCE_DIR}/../PlatboxLib/inc/linux"
"${PROJECT_SOURCE_DIR}/../PlatboxDrv/linux/include"
)
endif (UNIX)

SET (PROJECT_ROOT "${PROJECT_SOURCE_DIR}")

set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")

set (PROJECT_SOURCES
src/msr.cpp
src/pci.cpp
src/physmem.cpp
src/PlatboxClient.cpp
src/UEFIVars.cpp
src/global.cpp
src/Util.cpp
src/_run_attempt.asm
src/common_chipset.cpp

src/windows/kernelHookCb.cpp
src/windows/page_tables.cpp
src/windows/acpidump.cpp

src/intel/intel_chipset.cpp

src/amd/amd_chipset.cpp

src/smm/smm_communicate.cpp
src/smm/smi_fuzz.cpp

PlatboxClient.cpp
)

add_subdirectory (DeltaFuzz)


set_target_properties(DeltaFuzzLib PROPERTIES LINKER_LANGUAGE C++)

# main executable
add_executable(platbox_cli "${PROJECT_SOURCES}")



# link lib
target_link_libraries (platbox_cli DeltaFuzzLib)


# Creates a folder "executables" and adds target
# project (app.vcproj) under it
#set_property(TARGET app PROPERTY FOLDER "executables")

# Properties->General->Output Directory
#set_target_properties(app PROPERTIES
# RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)

# Adds logic to INSTALL.vcproj to copy app.exe to destination directory
#install (TARGETS app
# RUNTIME DESTINATION ${PROJECT_SOURCE_DIR}/_install)
target_link_libraries (platbox_cli platbox_lib)
63 changes: 0 additions & 63 deletions PlatboxClient/DeltaFuzz/DeltaFuzz.h

This file was deleted.

8 changes: 0 additions & 8 deletions PlatboxClient/Makefile

This file was deleted.

Loading

0 comments on commit 4211e24

Please sign in to comment.