Skip to content

VikingCloud/cdcm

Repository files navigation

CDCM - Credentialed Data Collection Module

CDCM will act as an intermediate entity between Carrier and Windows assets. Its responsibility is to allow querying the assets to validate that there are no vulnerabilities in it. The CDCM lets the client connect to the asset in variety of protocols like SMB, RPC over SMB, WMI and WinRM.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

The operating system should be CentOS 7 or greater and the packages should be fully updated.

yum install -y https://repo.ius.io/ius-release-el7.rpm
yum -y update

Third party libraries that we use with our source:

  • CPPZMQ - MDP.
  • samba - RPC.
  • JSON - C++ Type Library.
  • libpe - File version.
  • BOOST - Process, IPC(Shared memory), multi index, Testin framework and some other trivial libs.
  • impacket - WMI - registry,wql.
yum install -y \
        boost169.x86_64 \
        gnutls.x86_64 \
        git \
        cmake3 \
        centos-release-scl scl-utils scl-utils-build.x86_64 \
        cppzmq-devel.x86_64 \
        czmq-devel.x86_64 \
        czmq.x86_64 \
        boost169-devel.x86_64 \
        openssl-devel.x86_64 \
        libarchive-devel.x86_64 \
        openldap-devel.x86_64 \
        popt-devel.x86_64 \
        pam-devel.x86_64 \
        python3-devel.x86_64
yum install -y devtoolset-8

Installing Building and preparing the developer environment

Download the source

git clone https://github.com/VikingCloud/cdcm.git

Build the source

cd cdcm/build
scl enable devtoolset-8 "make deps"
cd ..
mkdir build_cdcm
cd build_cdcm
scl enable devtoolset-8 "cmake3 .."
scl enable devtoolset-8 "make -j4"

Install the binaries and prepare the environment

scl enable devtoolset-8 "make install"
cd ..
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/output/lib/:/opt/output/lib/plugins/:$PWD/deps/samba-4.10.6/bin/shared/private/:$PWD/deps/samba-4.10.6/bin/shared
mkdir -p /var/cdcm/downloaded_files
mkdir -p /usr/share/cdcm/lib
cd /usr/share/cdcm/lib/
ln -sf /opt/output/lib/plugins

Running CDCM

The following command starts CDCM:

/usr/local/bin/cdcm_supervisor

Support

If you found a problem with the software, please create an issue on GitHub.

Maintainer

This project is maintained by VikingCloud.

Contributing

Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3 License - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •