This code repository contains several Checkmarx tools written in Python.
All tools will display their command 'help':
> python3.8 <Tool-Name>.py --help
All tools will run under version 3 of Python (Python 3.7+). Python (for your OS) can be downloaded from: https://www.python.org/downloads/
Some of the tools have extra Python package requirements. Make sure you have the latest version of 'pip'. From a 'elevated' (Admin) command prompt, run
> python3.8 -m pip install pip
If this complains that you already have 'pip' installed but should upgrade, run
> python3.8 -m pip install --upgrade pip
If the terminal complains that 'python3.8' is not found, try just 'python'.
To apply the required packages, run
> pip install <package-name>
On Windows, the following 'extra' pip install commands may need to be issued:
> pip install python-interface
> pip install tqdm
> pip install opencv-python
--- Tools Listing ---
- CxProjectCreator# - Creates Checkmarx Projects/Branches given either .properties or .plist files.
- CxProjectStatisticsReporter1 - Creates a Checkmarx Projects 'statistics' report of scans in a single .html file.
- CxApplicationScanner1 - Runs SAST and/or OSA scans for a Project from Repo(s) defined in a .plist file.
- CxGitLabGetAllProjects1 - Creates the .plist file(s) for CxApplicationScanner1 from GitLab project(s)/group(s).
- CxTFSGetAllProjects1 - Creates the .plist file(s) for CxApplicationScanner1 from TFS (Git-based) project(s)/group(s).
- A .plist is a 'properties list' file. Essentially this is an XML rendering of a Dictionary or an Array of Dictionaries. This is an XML version of a JSON file.
- CxProjectCreator2 - Creates Checkmarx Projects/Branches given .properties files.
- CxProjectCreator3 - Creates Checkmarx Projects/Branches given .plist files.
--- Extra Package requirement(s) ---
Run 'pip install ' for:
- zope.interface
- requests
- requests_toolbelt
--- Source File(s) for the Tool(s) ---
--- Commands ---
-
CxProjectCreator2.py
-
CxProjectCreator3.py
--- Classes ---
-
CxProjectCreation1.py
-
CxProjectCreationCollection1.py
-
CxProjectCreationCollectionCheckmarxDefaults1.py
-
CxProjectCreationCollectionInterfaceDefaults1.py
-
CxProjectData1.py
-
CxProjectDataCollectionDefaults1.py
-
CxProjectScan1.py
-
CxRestAPIProjectCreationBase1.py
-
CxRestAPIStatistics1.py
-
CxRestAPITokenAuthenticationBase1.py
-
CxServerEndpoint1.py
-
DrcDirectoryFileSearch1.py
--- Documentation File(s) for the Tool(s) ---
- CxProjectCreator3_README.md - Extra Documentation for CxProjectCreator3.
--- Extra Package requirement(s) ---
Run 'pip install ' for:
- requests
--- Source File(s) for the Tool(s) ---
--- Command ---
-
CxProjectStatisticsReporter1.py
--- Classes ---
-
CxProjectData1.py
-
CxProjectDataCollection1.py
-
CxProjectDataCollectionDefaults1.py
-
CxProjectScan1.py
-
CxRestAPIProjectStatisticsBase1.py
-
CxRestAPIStatistics1.py
-
CxRestAPITokenAuthenticationBase1.py
-
CxServerEndpoint1.py
--- Documentation File(s) for the Tool(s) ---
- CxProjectStatisticsReporter1_Tool_Documentation_09102019.pdf - Documentation in a PDF file.
- CxProjectStatisticsReporter1_Tool_Documentation_09102019.pages - Base Documentation in a 'pages' file (MacOSX).
--- Extra Package requirement(s) ---
Run 'pip install ' for:
- zope.interface
- requests
- requests_toolbelt
--- Source File(s) for the Tool(s) ---
--- Command ---
-
CxApplicationScanner1.py
--- Classes ---
-
CxApplicationScannerGITZipper1.py
-
CxApplicationScannerInterfaceZipper1.py
-
CxProjectCreation1.py
-
CxProjectCreationCollection1.py
-
CxProjectCreationCollectionCheckmarxDefaults1.py
-
CxProjectCreationCollectionInterfaceDefaults1.py
-
CxProjectData1.py
-
CxProjectDataCollectionDefaults1.py
-
CxProjectScan1.py
-
CxRestAPIProjectCreationBase1.py
-
CxRestAPIStatistics1.py
-
CxRestAPITokenAuthenticationBase1.py
-
CxServerEndpoint1.py
-
DrcDirectoryFileSearch1.py
--- Extra Control ---
-
CxExt.txt
--- Documentation File(s) for the Tool(s) ---
- CxApplicationScanner1_README.md - Extra Documentation for CxApplicationScanner1.
--- Extra Package requirement(s) ---
Run 'pip install ' for:
- requests
--- Source File(s) for the Tool(s) ---
--- Command ---
-
CxGitLabGetAllProjects1.py
--- Classes ---
-
CxGitLabProjectData1.py
-
CxGitLabProjectDataCollection1.py
-
CxGitLabProjectsRestAPIBase1.py
-
CxGitLabRestAPITokenAuthenticationBase1.py
-
CxGitLabServerEndpoint1.py
-
CxRestAPIStatistics1.py
--- Extra Package requirement(s) ---
Run 'pip install ' for:
- requests
--- Source File(s) for the Tool(s) ---
--- Command ---
-
CxTFSGetAllProjects1.py
--- Classes ---
-
CxTFSProjectData1.py
-
CxTFSProjectDataCollection1.py
-
CxTFSProjectsRestAPIBase1.py
-
CxTFSServerEndpoint1.py
-
CxRestAPIStatistics1.py
--- Documentation File(s) for the Tool(s) ---
- CxTFSGetAllProjects1_README.md - Extra Documentation for CxTFSGetAllProjects1.