OP 06 March, 2022 - 02:14 AM
(This post was last modified: 07 March, 2022 - 08:21 AM by UberFuck. Edited 1 time in total.)
Sharing some common classes and utility functions that I have reused on several projects. All code works in linux, windows, and macOS on python 3.8+ (recaptcha class implements cached property introduced in 3.8).
Here's what's included:
Here's what's included:
- Captcha.py
- Recaptcha: Base class for solving hidden ReCaptchas. * Note: this does not work for solving ReCaptchas with images
- Recaptcha: Base class for solving hidden ReCaptchas. * Note: this does not work for solving ReCaptchas with images
- Combos.py
- UserCombo: Base class for working with user combos.
- EmailCombo: Base class for working with email combos. Subclass of UserCombo. Functions for splitting email address to username and domain and reusing combo with a different domain.
- Both classes have functions for loading combo files, which will remove duplicates and strip any capture data; both have implementations for __hash__(), __str__(), and __eq__()
- UserCombo: Base class for working with user combos.
- ResultTypes.py
- ResultType: An enum class for defining return result types (ie success, failure, captcha, 2fa, etc)
- ResultType: An enum class for defining return result types (ie success, failure, captcha, 2fa, etc)
- Utilities.py
- ClearScreen(): Basic function, but reused in almost every project.
- LoadJsonFile(): Basic function to just read a json file and return it as a dict or list.
- LoadProxyFile(): Loads a proxy file and returns a list of proxies as strings. Any duplicates are removed. Converts a proxy format of url:port:username:password to username:password@url:port to work with requests and aiohttp modules.
- ClearScreen(): Basic function, but reused in almost every project.