Auto login on students.bmstu.ru with reCAPTCHA bypass and grabbing all files from students.bmstu.ru/teacher
Actually, the URL can be changed, but it was created for the site above.
$ git clone https://github.com/OzoNeTT/EUlogger
$ cd EUlogger
Create ./config/local.py
file and write the following into it
RUCAPTCHA_KEY = "API key from rucaptha.ru"
SITE_KEY = "site_key"
PAGE_URL = "URL"
DEBUG = False # Will not show browser, replace with True if you want to see the process
Open logger.py
and delete the lines below
...
add_log(f'Page is ready!', 'INFO')
add_log(f'Loading took too much time!', 'INFO')
add_log(f'Browser opened', 'INFO')
add_log(f'U/P entered', 'INFO')
add_log(f'Button pressed', 'INFO')
add_log(f'We have authorized {self.login}', 'INFO')
add_log(f'Captcha SOLVED', 'INFO')
add_log(f'Captcha NOT SOLVED', 'INFO')
add_log(f'CaptchaKey: {user_answer[name]}', 'INFO')
add_log(f'TaskId: {user_answer[task_id]}', 'INFO')
add_log(f'No login/pass', 'INFO')
...
In EUlogger folder:
$ ./deploy.sh ${LOGIN} ${PASSWORD}