diff --git a/README.md b/README.md new file mode 100644 index 0000000..11bde2e --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Mafazaa dns ip confirm + +A repo containing the logic to confirm ip for opendns by getting the opendns email, extracting the confirmation url from it, then automaticly confirm using a web scraper + +## Usage + +after cloning the repo run the install command to install chromium-browser, nodejs, npm and python3 on your server + +```shell +./install.sh +``` + +then simply run the script + +```shell +./run.sh +``` + +finally: if you want to clean the installed resources, run the following command for removing nodejs, npm and the chromium-browser. but it will leave python since the dns server use it + +```shell +./clean.sh +``` diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..fdacae7 --- /dev/null +++ b/install.sh @@ -0,0 +1,5 @@ +sudo apt update + +sudo apt install chromium-browser nodejs npm python3 -y + +npm install \ No newline at end of file diff --git a/run.sh b/run.sh index 1d92696..8521ea1 100644 --- a/run.sh +++ b/run.sh @@ -1,7 +1 @@ -sudo apt update - -sudo apt install chromium-browser nodejs npm -y - -cd ip && npm install && cd .. - python3 src/get_link.py \ No newline at end of file