2021-12-23 14:16:01 +01:00
|
|
|
# MsReward
|
|
|
|
|
|
|
|
|
2021-12-23 14:21:55 +01:00
|
|
|
A Microsoft reward automator, designed to work headless on a raspberry pi. Tested with a pi 3b+ and a pi 4 2Gb .
|
2022-05-26 08:27:07 +02:00
|
|
|
Using a discord webhook or SQL to log points everydays.
|
|
|
|
Using Selenium and geckodriver.
|
|
|
|
|
2022-09-23 16:41:32 +02:00
|
|
|
## If you're using docker (way easier)
|
|
|
|
to use docker, run
|
2022-04-10 18:56:46 +02:00
|
|
|
```
|
2022-10-16 15:47:58 +02:00
|
|
|
sudo docker build .
|
2022-09-23 16:41:32 +02:00
|
|
|
#copy the build id
|
2022-11-06 17:36:25 +01:00
|
|
|
sudo docker run -ti --name MsRewards [build id]
|
2022-02-17 12:57:51 +01:00
|
|
|
```
|
2022-09-23 16:41:32 +02:00
|
|
|
Then, fill the config and start the programm everydays with
|
|
|
|
```
|
2022-11-06 18:11:50 +01:00
|
|
|
sudo docker start MsRewards
|
2022-09-23 16:41:32 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Other configuration
|
|
|
|
|
2022-06-09 16:35:00 +02:00
|
|
|
To use the database, I recommand MySql, Create a database with the name you want and create a table `daily`, like the one from the image :
|
|
|
|
![B96F2F6D-7257-4F12-BFA7-0BEC3FB72993](https://user-images.githubusercontent.com/74496300/172872979-05396b6b-b682-471a-b71b-41602d816504.jpeg)
|
2022-02-28 10:43:13 +01:00
|
|
|
|
2022-05-26 08:55:24 +02:00
|
|
|
You have to use the default worldlist (`sudo apt install wfrench`). The language is french by default, but you can change it if you want.
|
|
|
|
You can add a link to a website where content is only the link of the monthly fidelity card.
|
2022-06-09 16:35:00 +02:00
|
|
|
|
|
|
|
|
2022-05-26 08:24:36 +02:00
|
|
|
You should limit to 6 account per IP, and DON'T USE outlook account, they are banned.
|
2022-02-28 10:43:13 +01:00
|
|
|
![image](https://user-images.githubusercontent.com/74496300/155960737-061229ca-db8c-4e66-9aef-542d9e709bb2.png)
|
2022-09-23 16:41:32 +02:00
|
|
|
|
2022-10-16 15:57:02 +02:00
|
|
|
## If you're **not** using docker
|
2022-09-23 16:41:32 +02:00
|
|
|
|
2022-10-16 15:57:02 +02:00
|
|
|
installation recommandation :
|
2022-09-23 16:41:32 +02:00
|
|
|
```
|
2022-12-29 16:56:29 +01:00
|
|
|
sudo apt-get install xdg-utils -y
|
2022-10-16 15:57:02 +02:00
|
|
|
curl -sSLO https://download-installer.cdn.mozilla.net/pub/firefox/releases/91.9.1esr/linux-x86_64/en-US/firefox-91.9.1esr.tar.bz2
|
|
|
|
tar -xjf firefox-91.9.1esr.tar.bz2
|
|
|
|
sudo mv firefox /opt/
|
|
|
|
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
|
|
|
|
|
|
|
|
|
|
|
|
curl -sSLO https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
|
|
|
|
tar zxf geckodriver-v0.31.0-linux64.tar.gz
|
2022-11-04 23:11:05 +01:00
|
|
|
sudo mv geckodriver /usr/bin/
|
2022-09-23 16:41:32 +02:00
|
|
|
```
|