# DVDFab 365 Lifetime Activation **DVDFab 365 Lifetime Activation** is a powerful tool that automates the process of setting up activation rules and licenses for DVDFab, using the HTTP Toolkit for HTTPS interception. This project allows you to manage license tickets for DVDFab, providing seamless lifetime activation through custom rule handling. By leveraging JSON-based rule templates and certificate management, this repository helps in creating and maintaining DVDFab license activations for long-term use. > [!IMPORTANT] > For optimal operation (especially for the DRM API), you must have an account with access to the DRM service to bypass restrictions linked to the user/machine/IP. ## Features - **Automated Rule Management**: This tool manages activation rules for DVDFab by loading and updating rule files in JSON format. - **HTTPS Interception**: Utilizes HTTP Toolkit for HTTPS interception, enabling seamless integration with DVDFab. - **Ticket Generation**: Automatically generates DVDFab lifetime activation tickets. - **Certificate Handling**: Updates and injects the correct certificate paths for HTTPS traffic interception, using the system-specific `ca.pem` file. - **Customizable Settings**: Users can provide custom rule paths and output locations via command-line arguments. - **Cross-Platform Support**: Works on Windows, macOS, and Linux by identifying system-specific paths. ## How It Works This project primarily revolves around the **HTTP Toolkit** for intercepting and managing HTTPS requests from DVDFab, and a JSON-based rules file that integrates an activation ticket. The flow includes: 1. **Loading and Updating Rules**: The tool loads default and custom rules from JSON templates and updates the rule file with a new ticket and certificate path for HTTPS traffic interception. 2. **Ticket Management**: It either uses an existing DVDFab ticket or creates a new one that grants a lifetime activation. 3. **Saving Updated Rules**: After modifying the rules and inserting the necessary activation details, the updated rules are saved into a new file that is compatible with HTTP Toolkit. ## Prerequisites Before using the **DVDFab 365 Lifetime Activation** tool, ensure you have the following: 1. **Python 3.x** installed on your system. 2. **HTTP Toolkit** installed for HTTPS interception ([Download HTTP Toolkit](https://httptoolkit.tech/)). 3. A valid **DVDFab subscription** or ticket for activation purposes. ## Installation 1**Install the Dependencies**: This script doesn't rely on any external Python libraries, so no additional installation is needed. However, ensure that the **HTTP Toolkit** is set up on your system. 2**Set Up Certificates**: Make sure the **`ca.pem`** certificate from HTTP Toolkit is correctly installed on your system: - **Windows**: Should be located in `C:\Users\\AppData\Local\httptoolkit\Config\ca.pem` - **macOS/Linux**: Should be located in `~/.config/httptoolkit/ca.pem` ## Usage ### Command-line Arguments The script accepts several arguments to customize the rule and ticket management process: - `--rules`: Path to the rules file (default: `template.json`). - `--ticket`: An existing ticket string to use (optional). - `--output`: Output path for saving the updated rules (default: script directory). ### Example Usage 1. **Generate a New Ticket** and Update Rules: ```bash python main.py --rules custom_rules.json --output /path/to/save ``` 2. **Use an Existing Ticket**: ```bash python main.py --rules custom_rules.json --ticket "your-existing-ticket-string" --output /path/to/save ``` This will generate a DVDFab lifetime activation rule set and save it to the specified output path. ## Project Structure - `main.py`: The primary script that handles rule management, certificate updates, and ticket processing. - `template.json`: A default JSON rule template that provides the structure for HTTP Toolkit's rules and settings. - `ticket.py`: A module that handles ticket generation and extraction, ensuring proper licensing is injected into the rule file. ## How the Activation Works 1. **Default Rules Template**: The `template.json` contains default rules for HTTP Toolkit's interception. It includes placeholders for the certificate and DVDFab ticket data. 2. **Certificate Path Update**: The script detects the OS and updates the certificate path in the rules to ensure proper HTTPS interception with DVDFab traffic. 3. **Ticket Generation**: A new ticket is generated with the `Ticket` class, including the ticket type (Subscriber) and expiration details (lifetime, 4096 days). 4. **DVDFab Group Update**: The `dvdfab-group` rules are updated with the newly generated ticket and inserted at the start of the rules list for priority handling. 5. **Save Rules**: The updated rules are saved in a format compatible with HTTP Toolkit to handle DVDFab traffic with lifetime activation enabled. ## Troubleshooting - **Certificate Not Found**: Ensure that the `ca.pem` file exists in the correct directory for your operating system. If HTTP Toolkit is installed properly, this file should be automatically generated. - **DVDFab Not Activating**: Double-check the ticket generation process and ensure the ticket type and version are correct. You can manually provide a valid ticket string using the `--ticket` argument. ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## Contributing We welcome contributions! If you have suggestions or find bugs, feel free to open an issue or submit a pull request. ## Disclaimer This tool is for educational purposes only. Unauthorized use of software or tools, including attempting to bypass licensing mechanisms, is against the terms of service of most software providers. Always ensure you have the legal right to use the software in question.