This project is a Python script for updating DNS records on Hover. It supports optional logging and the use of mitmproxy for debugging HTTP/HTTPS requests.
- Python 3.x
requestslibrarymitmproxy(optional, for debugging)
git clone <repository_url>
cd <repository_directory>Install the required Python libraries using pip:
pip install requestsmitmproxy is used for debugging HTTP/HTTPS requests. To install mitmproxy, run:
pip install mitmproxyCreate the following configuration files:
Create a config.json file in the project directory with the following content:
{
"dnsid": "<your_dns_id>",
"username": "<your_hover_username>",
"password": "<your_hover_password>",
"discoverip": "true",
"srcdomain": "",
"ipaddress": "",
"totp_secret": "<your_totp_secret>",
}Replace the placeholders with your actual values.
Create an empty IP file in the project directory:
touch IPTo run the script, use the following command:
python hover-update.py [--logging] [--mitm]--logging: Enable logging tohover-update.log.--mitm: Enablemitmproxyfor HTTP/HTTPS requests.
To run the script with logging enabled:
python hover-update.py --loggingTo run the script with mitmproxy enabled:
python hover-update.py --mitmTo run the script with both logging and mitmproxy enabled:
python hover-update.py --logging --mitmmitmproxy is a powerful tool for debugging HTTP/HTTPS requests. Follow these steps to use mitmproxy with this script:
Start mitmproxy in your terminal:
mitmproxyThis will start mitmproxy and listen on port 8080 by default.
Run the script with the --mitm flag to route HTTP/HTTPS requests through mitmproxy:
python hover-update.py --mitmIn the mitmproxy interface, you can inspect the HTTP/HTTPS requests and responses being made by the script. This is useful for debugging and understanding the interactions with the Hover API.
hover-update.py: Main script for updating DNS records on Hover.totp.py: Contains the TOTP generation function.config.json: Configuration file with user credentials and settings.IP: File to store the last known IP address. (Automically generated when the IP is resolved).hover-update.log: Log file (created automatically if logging is enabled).
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For any questions or issues, please contact [email protected].