パッケージ、リポジトリ、アプリカテゴリを検索

captcha_solver のカバー
パッケージ詳細v1.0.4

captcha_solver

captcha_solver は、テキスト付き画像、Recaptcha v2/v3 Enterprise/非エンタープライズ、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 インターフェースを通じて活用することで、ボット保護の回避ワークフローを簡素化します。テスト、自動化、または自動キャプチャ解決が必要な状況に最適で、複数のキャプチャプロバイダーをサポートし、プラットフォーム間で一貫した処理が可能です。

用途

  • Webフォームの自動テスト
  • ボット駆動型データスクラピング
  • 開発におけるユーザー認証のバイパス
  • クロスプラットフォームキャプチャ解決
  • 自動化されたワークフローの最適化

主な機能

  • 複数のキャプチャタイプをサポートしています
  • クロスプラットフォーム互換性
  • シンプルなAPI統合
  • リアルタイムのキャプチャ解決
  • セキュアなトークン処理

適している対象

  • 自動化ツールを開発する開発者
  • キャプチャ回避が必要なテストエンジニア
  • 大量のフォーム送信を必要とするアプリケーション
  • セキュリティ研究者が保護策をテストしています
  • 複数のキャプチャプロバイダーを使用するプロジェクト

注意事項

  • 外部サービスプロバイダーが必要です
  • 一部のウェブサイトの利用規約に違反する可能性があります
  • サードパーティの信頼性に依存
  • 本番環境でのセキュリティの強制実行には適していません
  • 潜在的な法的および倫理的懸念

元の 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。