Skip to content

Commit

Permalink
feat: Develop Integration with WMI and WUA APIs to Retrieve Installed…
Browse files Browse the repository at this point in the history
… Windows Updates

Merge pull request #26706 from wazuh/enhancement/25766-develop-integration-with-wmi-api-to-retrieve-installed-windows-updates

Develop Integration with WMI and WUA APIs to Retrieve Installed Windows Updates
  • Loading branch information
MarcelKemp authored and lchico committed Nov 29, 2024
1 parent 3f07d46 commit 718e125
Show file tree
Hide file tree
Showing 11 changed files with 8,342 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/windows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ FROM ubuntu:22.04
# Installing necessary packages
RUN apt-get update && \
apt-get install -y --allow-change-held-packages gcc g++ gcc-mingw-w64 g++-mingw-w64 nsis make wget unzip \
curl perl binutils zip libssl-dev
curl perl binutils zip libssl-dev && \
rm -rf /var/lib/apt/lists/*

RUN curl -OL http://packages.wazuh.com/utils/cmake/cmake-3.18.3.tar.gz && \
tar -zxvf cmake-3.18.3.tar.gz && \
cd cmake-3.18.3 && \
./bootstrap && make -j$(nproc) && make install && \
ln -s /usr/local/bin/cmake /usr/bin/cmake && cd / && rm -rf cmake-*

RUN apt-get update && apt install -y wine &&\
rm -rf /var/lib/apt/lists/*

ADD entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]
6 changes: 5 additions & 1 deletion src/common/data_provider/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ endif()

link_directories(${SRC_FOLDER})

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
link_directories(${CMAKE_SOURCE_DIR}/lib/)
endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
file(GLOB SYSINFO_SRC
"${CMAKE_CURRENT_SOURCE_DIR}/src/*Win.cpp"
Expand Down Expand Up @@ -162,7 +166,7 @@ add_library(sysinfo STATIC
target_include_directories(sysinfo PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(sysinfo PUBLIC psapi iphlpapi ws2_32)
target_link_libraries(sysinfo PUBLIC psapi iphlpapi ws2_32 wbemuuid uuid wuguid ole32 oleaut32)
elseif(APPLE)
find_library(iokit_lib IOKit)
if(NOT iokit_lib)
Expand Down
Loading

0 comments on commit 718e125

Please sign in to comment.