패키지, 저장소 및 앱 카테고리 검색

captcha_solver 표지
패키지 상세v1.0.4

captcha_solver

captcha_solver는 텍스트가 포함된 이미지, Recaptcha v2/v3 엔터프라이즈/비엔터프라이즈, Funcaptcha Arcoselabs, GeeTest 및 hCaptcha 등의 다양한 유형의 캡차를 해결하는 데 사용되는 서비스입니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
55
좋아요
30
Pub 점수
140

패키지 설치

flutter pub add captcha_solver

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

captcha_solver 패키지는 이미지 기반 텍스트 캡차, Recaptcha v2/v3(엔터프라이즈 및 비엔터프라이즈), Arcoselabs의 Funcaptcha, GeeTest, hCaptcha를 포함한 다양한 캡차 유형을 자동으로 해결하도록 설계된 Flutter/Dart 서비스입니다. Android, iOS, macOS, Windows, Linux용 크로스플랫폼 애플리케이션에 원활하게 통합될 수 있습니다. 외부 서비스를 깔끔한 API 인터페이스를 통해 활용함으로써 봇 보호 회피 워크플로우를 단순화합니다. 테스트, 자동화 또는 자동 캡차 해결이 필요한 상황에 적합하며, 여러 캡차 공급업체를 지원하고 플랫폼 간 일관된 처리를 제공합니다.

사용 사례

  • 웹 폼의 자동 테스트
  • 봇 기반 데이터 스크래핑
  • 개발 중 사용자 인증 우회
  • 크로스 플랫폼 캡차 해결
  • 자동화된 워크플로우 간소화

주요 기능

  • 여러 캡차 유형을 지원합니다
  • 크로스 플랫폼 호환성
  • 간단한 API 통합
  • 실시간 캡차 해결
  • 보안 토큰 처리

적합한 대상

  • 자동화 도구를 개발하는 개발자
  • 캡차 회피가 필요한 테스트 엔지니어
  • 고용량 양식 제출을 요구하는 응용 프로그램
  • 보안 연구자들이 보호 조치를 테스트하고 있습니다
  • 여러 캡차 공급자를 사용하는 프로젝트

고려 사항

  • 외부 서비스 제공자가 필요합니다
  • 일부 웹사이트의 이용 약관을 위반할 수 있습니다
  • 제3자 신뢰성에 의존
  • 생산 환경에서의 보안 강제 실행에 적합하지 않습니다
  • 잠재적인 법적 및 윤리적 문제

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

SCRAPTCHA.com

Captcha Solver

ScreenShot

To use the captcha solution you need to register on the resource and top up your balance - https://dashboard.scraptcha.com/fr/dashboard Documentation -https://scraptcha.com/documentation/

Features

Whether you need to autofill a large number of forms, for various purposes: web scraping, making unlimited edition purchases, performing repetitive tasks online, etc. But you quickly find yourself confronted with the CAPTCHAs resolution (which stands for Completely Automated Public Turing Test to tell Computers and Humans Apart) to prove that you are indeed a human and not a robot.

The solution to solve these CAPTCHAs and hijack them, but how? This is where CAPTCHas and reCAPTCHAs resolution services come in, such as scraptcha.com, which is an infallible, fast and efficient resolution service.

Getting started

You should ensure that you add the router as a dependency in your flutter project.

dependencies:
  captcha_solver: ^1.0.4

Usage

Image to Text

A normal CAPTCHA is an image containing distorted text that can only be read by humans. to solve this type of CAPTCHA the user is required to enter the text of the image. You can use imageMemoryToText() function for local images or imageLinkToText() for images from the site. YOUR_API_KEY : You can find the API key here ScreenShot

import 'package:captcha_solver/captcha_solver.dart';

void main() async {

  /// Initiate query Properties
  String apiKey = 'YOUR_API_KEY';
  String imageMemory = 'lib/captcha.jpg';
  String imageLink = 'https://api.vk.com/captcha.php?sid=1';
  /// Initiate CaptchaSolver
  CaptchaSolver captchaSolver = CaptchaSolver(apiKey);
  /// Example of the request
  Map inputs = {
    "clientKey": apiKey,
    "task": {
      "type": "ImageToTextTask",
      "body": imageMemory // or imageLink
    }
  };
  /// Get captcha solution
  Map response = await captchaSolver.imageMemoryToText(inputs); // Or imageLinkToText()
  print('response: $response');
  if(response['status']=='ready') {
    print(response['solution']['text']);
  }
}

reCAPTCHA v2

reCAPTCHA v2 requires the user to check the "I'm not a robot" box and can offer them an image recognition challenge. YOUR_WEBSITE_KEY : reCAPTCHA website key - for more details : https://scraptcha.com/documentation/ YOUR_API_KEY : You can find the API key here ScreenShot

import 'package:captcha_solver/captcha_solver.dart';

void main() async {
  /// Initiate query Properties
  String apiKey = 'YOUR_API_KEY';
  String websiteURL = 'http://mywebsite.com/recaptcha/test.php';
  String websiteKey = 'YOUR_WEBSITE_KEY';
  /// Initiate CaptchaSolver
  CaptchaSolver captchaSolver = CaptchaSolver(apiKey);
  /// Example of the request
  Map inputs = {
    "clientKey": apiKey,
    "task": {
      "type": "RecaptchaV2TaskProxyless",
      "websiteURL": websiteURL,
      "websiteKey": websiteKey,
      "isInvisible": false
    }
  };
  /// Get captcha solution
  Map response = await captchaSolver.recaptcha(inputs);
  print('response: $response');
  if(response['status']=='ready') {
    print(response['solution']['gRecaptchaResponse']);
  }
}


reCAPTCHA V3

reCAPTCHA v3 is somewhat similar to reCAPTCHA V2. reCAPTCHA V3 works in the background, does not require user interaction and generates a score based on user behavior. The higher the score, the more likely the user is human.

ScreenShot

import 'package:captcha_solver/captcha_solver.dart';

void main() async {

  /// Initiate query Properties
  String apiKey = 'YOUR_API_KEY';
  String websiteURL = 'http://mywebsite.com/recaptcha/test.php';
  String websiteKey = 'YOUR_WEBSITE_KEY';
 /// Initiate CaptchaSolver
  CaptchaSolver captchaSolver = CaptchaSolver(apiKey);
/// Example of the request
  Map inputs = {
  "clientKey": apiKey,
  "task": {
  "type": "RecaptchaV3TaskProxyless", // type of captcha
  "websiteURL": websiteURL,
  "websiteKey": websiteKey,
  "minScore": 0.3,
  "pageAction": "verify",
  "isEnterprise": false
  }
};
  /// Get captcha solution
  Map response = await captchaSolver.recaptcha(inputs);
  print('response: $response');
  if(response['status']=='ready') {
    print(response['solution']['gRecaptchaResponse']);
  }
}

FunCAPTCHA - Arkose Labs

This type of task solves the arkoselabs.com conundrum in our worker browsers. You submit the public key and the website address then you will receive a token when the task is completed. This is the token you will need to submit your forms with Arkoselabs captcha. ScreenShot


import 'package:captcha_solver/captcha_solver.dart';

void main() async {

  /// Initiate query Properties
  String apiKey = 'YOUR_API_KEY';
  String websiteURL = 'https://account.battle .net/creation/flow/creation-full';
  String websitePublicKey = 'YOUR_WEBSITE_KEY';
 /// Initiate CaptchaSolver
  CaptchaSolver captchaSolver = CaptchaSolver(apiKey);
/// Example of the request
  Map inputs = {
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "FunCaptchaTaskProxyless",
      "websitePublicKey": websitePublicKey,
      "websiteURL": websiteURL
  }
};
  /// Get captcha solution
  Map response = await captchaSolver.recaptcha(inputs);
  print('response: $response');
  if(response['status']=='ready') {
    print(response['solution']['token']);
  }
}

hCAPTCHA

HCAPTCHA is a most popular reCAPTCHA alternative. The properties of this task are the same as reCAPTCHA except for the type property. ScreenShot

import 'package:captcha_solver/captcha_solver.dart';

void main() async {
  /// Initiate query Properties
  String apiKey = 'YOUR_API_KEY';
  String websiteURL = 'https://hcaptcha.com/';
  String websiteKey = 'YOUR_WEBSITE_KEY';
  /// Initiate CaptchaSolver
  CaptchaSolver captchaSolver = CaptchaSolver(apiKey);
  /// Example of the request
  Map inputs = {
    "clientKey": apiKey,
    "task": {
      "type": "HCaptchaTaskProxyless",
      "websiteURL": websiteURL,
      "websiteKey": websiteKey,
  
    }
  };
  /// Get captcha solution
  Map response = await captchaSolver.recaptcha(inputs);
  print('response: $response');
  if(response['status']=='ready') {
    print(response['solution']['gRecaptchaResponse']);
  }
}


Additional information

Scraptcha uses two methods to solve its CAPTCHAs: A CAPTCHA solving service based on these humans: The service has hired human workers to solve CAPTCHAs, which are constantly online. When you submit your CAPTCHA, Scraptcha passes it on to the human workers who solve the text and send it back. OCR (optical character recognition) solutions In this method, captcha solving is done automatically using OCR technology.

for more information : https://scraptcha.com/documentation/

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.