Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulnhunter

Vulnhunter Screenshot

Overview

Vulnhunter is a network scanning application built with React for the frontend and Spring Boot for the backend. It allows users to perform security scans on network hosts and web servers using various tools, view scan results, and download reports in PDF format.

Features

  • Frontend:

    • User-friendly interface for initiating scans.
    • Selection of various scanning tools.
    • Display of scan results with the option to download as PDF.
  • Backend:

    • RESTful API for initiating and retrieving scan results.
    • Handles scan execution and data management.

Prerequisites

Getting Started

Frontend

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

    The frontend application will be available at http://localhost:3000.

Backend

  1. Navigate to the backend directory:

    cd backend
  2. Build the project:

    mvn clean install
  3. Run the application:

    mvn spring-boot:run

    The backend application will be available at http://localhost:5455.

API Endpoints

POST /api/scan

  • Description: Initiates a scan.
  • Request Body:
    {
      "ipOrDomain": "string",
      "tool": "string"
    }
  • Responses:
    • 200 OK: Returns scan result data.
    • 400 Bad Request: If validation fails.
    • 401 Unauthorized: If authentication token is missing or invalid.
    • 500 Internal Server Error: For server errors.

GET /api/scan/{id}

  • Description: Retrieves the result of a specific scan.
  • Parameters:
    • id (Path Parameter): The unique identifier of the scan result.
  • Responses:
    • 200 OK: Returns the scan result.
    • 404 Not Found: If the scan result does not exist.
    • 500 Internal Server Error: For server errors.

File Structure

  • Frontend

    • src/components/Scanner.jsx: Main component for initiating scans.
    • src/components/ScanResults.jsx: Component for displaying scan results.
  • Backend

    • src/main/java/com/example/vulnhunter/ScanController.java: REST controller for scan endpoints.
    • src/main/java/com/example/vulnhunter/ScanService.java: Service class for scan logic.
    • src/main/java/com/example/vulnhunter/ScanResult.java: Model class for scan results.
    • src/main/java/com/example/vulnhunter/ScanRequest.java: Model class for scan requests.
    • src/main/java/com/example/vulnhunter/Application.java: Main application entry point.

Contributing

Feel free to open issues and submit pull requests. Contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages