Giter Site home page Giter Site logo

metabypass / captcha-solver-javascript Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 0.0 38 KB

Metabypass | Javascript-based easy implementation for solving any type of captcha by Metabypass

Home Page: https://metabypass.tech

License: MIT License

JavaScript 100.00%
captcha-breaking captcha-solver 2captcha anti-captcha anticaptcha bypass-recaptcha-v2 captcha-recognition captcha-solving deathbycaptcha google-recaptcha-solver

captcha-solver-javascript's Introduction

Metabypass captcha solver javascript

Free demo (no credit card required) -> https://app.metabypass.tech/application

to install these packages use

npm install metabypass

for using this package first import metabypass

const solver = require("metabypass");

1.authentication

to authenticate and obtain the token first create the below object with your credentials and use getToken function from solver object

const user = {
  grant_type: "password", // Dont change it
  client_id: ",
  client_secret: ",
  username: "",
  password: "",
};
const token = await solver.getToken(user);

then saved the token in file or anywhere else for use in another function

2-text captcha

for solving text captcha use captchaSolver from solver object pass token and data

// use one of below function for base64 getBase64LocalCaptcha for local image and <b>getBase64Encoded</b> for external image
const localImage = await soler.getBase64LocalCaptcha('local image url)
const exernalImage = await solver.getBase64Encoded('external image url') 
const data = {
  image: externalImage // if you want you can use localImage
  numeric:0,
  min_len:0,
  max_len:0
}
const result = await solver.captchaSolver(token, data);

3-reCaptcha version 2

const data = {
   url: "", define protocol http or https
   sitekey: "",
   version: "2",
 };
 
const recaptchaId = await solver.getRecaptchaId(token, data);

after you get recaptcha Id you can use below function to get response

 const result = await solver.getRecaptchaResult(token, recaptchaId);

4-reCatpcha version 3

const data = {
   url: "", define protocol http or https
   sitekey: "",
   version: "3",
 };
 const result = await solver.getRecaptchaResponse(token, data);

5-Example for captcha

const solveCaptcha = async()=>{
  const user = {
  grant_type: "password", // Dont change it
  client_id: ",
  client_secret: ",
  username: "",
  password: "",
};
const token = await solver.getToken(user);
// use one of below function for base64 getBase64LocalCaptcha for local image and getBase64Encoded for external image
const image = await soler.getBase64LocalCaptcha('local image url)
const image = await solver.getBase64Encoded('external image url') 
data ={
image: image
numeric:0,
min_len:0,
max_len:0
}
const result = await solver.captchaSolver(token, data);
}

captcha-solver-javascript's People

Contributors

metabypass avatar so0orena avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.