A Microsoft reward automator.
Go to file
piair338 2b1c7b985e
Create CODE_OF_CONDUCT.md
2023-05-08 21:17:23 +02:00
.github/ISSUE_TEMPLATE Update issue templates 2022-05-26 08:30:50 +02:00
modules lang + small error fix 2023-05-08 20:56:55 +02:00
user_data lang + small error fix 2023-05-08 20:56:55 +02:00
.gitignore well, it should be really more robust as it doesn't rely on XPATH everywhere anymore 2023-04-06 23:04:57 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2023-05-08 21:17:23 +02:00
Dockerfile euh ué 2023-04-15 11:03:47 +02:00
LICENSE Create LICENSE 2022-05-26 08:40:03 +02:00
README.md Update README.md 2023-05-08 20:44:51 +02:00
V5.py added switches 2023-05-07 23:26:27 +02:00
database.py you can manually add points to database 2023-04-07 09:53:11 +02:00
main.py lang + small error fix 2023-05-08 20:56:55 +02:00
requirements.txt better way if manually updated 2023-04-04 20:50:56 +02:00
version lang + small error fix 2023-05-08 20:56:55 +02:00

README.md

MsReward

A Microsoft reward automator, designed to work headless on any x64 server.
Using a discord webhook or SQL to log points everyday.
Using Selenium and Geckodriver.

Installation instruction

Make sure your contry is supported by MS Rewards.
Create 5 Microsoft accounts, that the programm will use.

Linux

Make sure that docker and git are installed.
Clone the repository:

git clone https://github.com/piair338/MsRewards

Build the docker container:

cd MsRewards
sudo docker build -t msrewards .

Run the app for the first time to configure it.

sudo docker run -ti --name MsRewards msrewards

Then to run it everyday, you can use cron and add the line:

10 10 * * * sudo docker start MsRewards

This is only a recommandation and shouldn't be used !

sudo apt-get install xdg-utils libdbus-glib-1-2 bzip2 wfrench tigervnc-standalone-server xvnc -y

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
sudo mv geckodriver /usr/bin/

rm geckodriver-v0.31.0-linux64.tar.gz
rm firefox-91.9.1esr.tar.bz2

Windows

Not yet tested, but using docker should work.

MacOS

I don't have a mac (yet) so i can't test, but again, install docker and follow the linux installation.

Database

To use the database, I recommend MySql, Create a database with the name MsRewards and create a table daily, like the one from the image : B96F2F6D-7257-4F12-BFA7-0BEC3FB72993

Options

TODO

Flags

Override

Enable you to choose what action to perform on which account. Linux only

python3 main.py -o

VNC

Enble a vnc to a specific port

python3 main.py -v 1234

config

Tell the programm which config to use.
Default to ./user_data/config.cfg
Putting only a number is equivalent to ./user_data/config[number].cfg

python3 main.py -c 12

Add points to database

Add points to the database using the credentials provided in the default config file.
argument : file with a list of account,points

python3 main.py -a file.csv