-
Consult scans in progress
-
Persist into MySQL, the results of each scan.
-
Retrieve data from all scans finished
-
Access the "details" of a particular scan using their id as a parameter
-
(?)
- Ensure that the application code is properly configured and ready for deployment.
- Deploy the application to your preferred server or hosting environment. This could be a cloud platform, a dedicated server, or any other suitable environment.
- Make sure the necessary dependencies and configurations are set up correctly for the application to run smoothly.
- Start the application server to begin accepting requests.
-
Clone the repository containing the application code to your local machine or server.
-
Ensure that you have Java and Maven installed on your system.
-
Navigate to the root directory of the application in your terminal or command prompt.
-
Run the following command to build the application:
mvn clean install
-
Once the build is successful, you can run the application using the following command:
java -jar target/<application-name>.jar
Replace
<application-name>
with the name of your application JAR file. -
The application should now be up and running, ready to accept requests.
-
To start a scan, send a POST request to the
/scan
endpoint of the application. -
The request body should contain a JSON object with a key
urls
and a list of URLs as its value. For example:{ "urls": ["https://example.com", "https://example2.com"] }
-
The application will initiate a scan for each URL provided using the ZAP Proxy.
-
Once the scan is complete, the application will return a response containing the scan results for each URL.
- Upon receiving the response from the
/scan/{scan-id}
endpoint, you can view the scan results for each URL. - The scan results will include information such as vulnerabilities detected, scan duration, and any other relevant details.
- You can use these scan results to assess the security posture of the scanned URLs and take appropriate actions to mitigate any identified risks.
-
Building and Running: To deploy your application using Docker Compose, navigate to the directory containing your
docker-compose.yml
file in your terminal or command prompt and run the following command:docker-compose up --build
This command will build the Docker images for your application and the ZAP Proxy, create the necessary containers, and start them.
-
Accessing the Application: Once the containers are up and running, you can access your application at
http://localhost:8080
. -
Stopping the Application: To stop the application and shut down the containers, press
Ctrl + C
in the terminal where Docker Compose is running. Alternatively, you can run the following command:docker-compose down
This will stop and remove the containers created by Docker Compose.