Skip to content

Commit

Permalink
remove winexe (#43)
Browse files Browse the repository at this point in the history
Fix: Remove winexe

* Update documentation for winexe removal.
* Remove samba winexe/ related headers.
* Remove winexe from CMake build process.

Co-authored-by: Hani Benhabiles <kroosec@gmail.com>
  • Loading branch information
nichtsfrei and kroosec authored Mar 24, 2022
1 parent 50dda90 commit 246f975
Show file tree
Hide file tree
Showing 26 changed files with 5 additions and 3,185 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,5 @@ install (FILES ${CMAKE_BINARY_DIR}/libopenvas_wincmd.pc
DESTINATION ${LIBDIR}/pkgconfig)

add_subdirectory(samba)
add_subdirectory(winexe)
add_subdirectory(wmi)
add_subdirectory(doc)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

This is the `smb` module for the OpenVAS Scanner. It includes libraries
(`openvas-wmiclient`/`openvas-wincmd`) to interface with Microsoft Windows
Systems through the Windows Management Instrumentation API and a `winexe`
binary to execute processes remotely on that system.
Systems through the Windows Management Instrumentation API and a `wmic`
binary to execute queries remotely on that system.

## Installation

Expand Down
18 changes: 3 additions & 15 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ endif (NOT DOXYGEN_EXECUTABLE)

if (XMLTOMAN_EXECUTABLE)
add_custom_target (man COMMENT "Building manual page..."
DEPENDS winexe.1 wmic.1)

add_custom_command (OUTPUT winexe.1
COMMAND sh
ARGS -c \"${XMLTOMAN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/winexe.1.xml > ${CMAKE_CURRENT_BINARY_DIR}/winexe.1\;\"
DEPENDS winexe.1.xml)
DEPENDS wmic.1)

add_custom_command (OUTPUT wmic.1
COMMAND sh
Expand All @@ -98,12 +93,7 @@ endif (XMLTOMAN_EXECUTABLE)

if (XMLMANTOHTML_EXECUTABLE)
add_custom_target (man-html COMMENT "Building manual page HTML..."
DEPENDS winexe.html wmic.html)

add_custom_command (OUTPUT winexe.html
COMMAND sh
ARGS -c \"${XMLMANTOHTML_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/winexe.1.xml > ${CMAKE_CURRENT_BINARY_DIR}/winexe.html\;\"
DEPENDS winexe.1.xml)
DEPENDS wmic.html)

add_custom_command (OUTPUT wmic.html
COMMAND sh
Expand All @@ -112,11 +102,9 @@ if (XMLMANTOHTML_EXECUTABLE)

else (XMLMANTOHTML_EXECUTABLE)
message (STATUS "WARNING: xmlmantohtml is required for manpage in HTML docs.")
add_custom_command (OUTPUT winexe.html
COMMAND echo "[Error: xmlmantohtml required to see manpage here]" > winexe.html)
add_custom_command (OUTPUT wmic.html
COMMAND echo "[Error: xmlmantohtml required to see manpage here]" > wmic.html)
endif (XMLMANTOHTML_EXECUTABLE)

install (FILES winexe.1 wmic.1
install (FILES wmic.1
DESTINATION ${DATADIR}/man/man1 )
130 changes: 0 additions & 130 deletions doc/winexe.1

This file was deleted.

Loading

0 comments on commit 246f975

Please sign in to comment.