Update README.md

This commit is contained in:
hyugogirubato 2024-10-06 12:37:33 +02:00
parent bf0cf05a82
commit 4054c7d481

View File

@ -36,26 +36,31 @@ pip install -r requirements.txt
### 1. Import Certificates ### 1. Import Certificates
Import the `.crt` certificates located in the `docs` folder into the **HTTP Toolkit** settings to enable interception of the application's network traffic. Import the `.crt` certificates located in the `docs/` folder into the **HTTP Toolkit** settings to enable interception of the application's network traffic.
<img src="./docs/images/import_ca.png" width="60%"> <img src="./docs/images/import_ca.png" width="60%">
### 2. Generate Custom Mock Rules ### 2. Generate Custom Mock Rules
Create mock rules to be used with **HTTP Toolkit** for intercepting and modifying network traffic. Create mock rules to be used with **HTTP Toolkit** for intercepting and modifying network traffic.
Run the following command: Run the following command:
```bash ```bash
python rules.py python rules.py
``` ```
For example: For example:
```bash ```bash
python rules.py --rules template.json --output my_rules.json python rules.py --rules template.json --output my_rules.json
``` ```
After generating the rules, import the resulting file into HTTP Toolkit. * In `<path_to_rules>`, you should provide the path to the default rules creation file, which is `template.json` located in the `src/` folder.
* In `<output_path>`, you should provide the name of the folder where your generated rules will be saved based on the`template.json` file.
* If you copy and paste the example, it should work, and the file to import into **HTTP Toolkit** will be named`HTTPToolkit_DVDFab.htkrules`, which will be located in the folder you named, such as `my_rules.json` in this example.
After generating the rules, import the resulting file into **HTTP Toolkit**.
### 3. Run the Mock Server ### 3. Run the Mock Server
@ -65,13 +70,17 @@ After generating the rules, import the resulting file into HTTP Toolkit.
Before launching any DVDFab product with the mock rules, ensure the server is running. Before launching any DVDFab product with the mock rules, ensure the server is running.
To run the server: To run the server:
```bash ```bash
python server.py --export python server.py --export
``` ```
### 4. Bypass License Authentication ### 4. Bypass License Authentication
After generating custom mock rules, import them into **HTTP Toolkit**. Launch the DVDFab software through an intercepted terminal and log in with your credentials. After logging in, close the software and enable the **Bypass Auth Ticket** rule to activate the software. 1. After generating custom mock rules, import them into **HTTP Toolkit**.
2. Launch the DVDFab software through an intercepted terminal and log in with your credentials. (This can be a free DVDFab account.)
3. After logging in, close the software and enable the **Bypass Auth Ticket** rule to activate the software.
4. Launch it again via the intercepted terminal, and the software will already be activated.
<img src="./docs/images/mock_rules.png" width="60%"> <img src="./docs/images/mock_rules.png" width="60%">