https://github.com/kalkih/mtcaptcha-client
Reverse engineered mtcaptcha client to retrieve and verify captcha challenges in the browser or in nodejs
https://github.com/kalkih/mtcaptcha-client
bypass captcha mtcaptcha
Last synced: about 1 year ago
JSON representation
Reverse engineered mtcaptcha client to retrieve and verify captcha challenges in the browser or in nodejs
- Host: GitHub
- URL: https://github.com/kalkih/mtcaptcha-client
- Owner: kalkih
- License: mit
- Created: 2022-09-21T19:15:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T01:10:05.000Z (over 2 years ago)
- Last Synced: 2025-05-07T20:09:36.171Z (about 1 year ago)
- Topics: bypass, captcha, mtcaptcha
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mtcaptcha-client
> Reverse engineered mtcaptcha client to retrieve and verify captcha challenges directly in node or the browser
## Usage
### Install the package
Install the package with npm, yarn or your favorite package manager
```sh
$ npm install --save mtcaptcha-client
```
### Example usage
```ts
import { MtCaptchaClient } from "mtcaptcha-client";
...
// setup the captcha client
const captchaClient = new MtCaptchaClient(
// The domain of the site where the mtcaptcha you want to solve is located
"www.example.com",
// The site key for the customer/site where the mtcaptcha is located
// Can be found in the network tab or in the source of the page (look for "siteKey").
"MTPublic-abCDEFGH"
);
// retrieve a captcha challenge
const challenge = await captchaClient.createChallenge();
// verify/solve captcha challenge with provided solution
const result = await captchaClient.verifyChallenge(challenge, "abc123");
if (result.isVerified) {
const { verifiedToken } = result;
// do something with the verifiedToken
} else {
// captcha solution was rejected, retry???
}
```
## License
This project is under the MIT license.