GithubHelp home page GithubHelp logo

2captcha / 2captcha-csharp Goto Github PK

View Code? Open in Web Editor NEW
82.0 82.0 26.0 361 KB

C# library for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.

Home Page: http://2captcha.com

C# 100.00%
2captcha anti-captcha anticaptcha bypass-invisible-recaptcha bypass-on-captcha-recaptcha bypass-recaptcha-v2 bypasscaptcha captcha-breaking captcha-bypass captcha-recognition captcha-services-for-recaptcha-v2 captcha-solver captcha-solving deathbycaptcha google-recaptcha-solver hcaptcha-solver recaptcha-bypass-script recaptcha-solver recaptcha-solver-csharp recaptcha-v2-captcha-solver

2captcha-csharp's People

Contributors

dzmitry-duboyski avatar kratzky avatar zatvorius avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

2captcha-csharp's Issues

Cannot install by nuget in .NET 4.5 project

Hello,

I can not install package by nuget because my project target framework is .NET v4.5. Please help me fix this problem.

Unable to resolve 'Microsoft.NETCore.App (>= 3.1.0)' for '.NETCoreApp,Version=v3.1'.

I setup dotnet-sdk-3.1.402-win-x64 and when I run dotnet --version in cmd, I get 3.1.402

Detail:

.NET Core SDK (reflecting any global.json):
Version: 3.1.402
Commit: 9b5de826fd
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.402
Host (useful for support):
Version: 3.1.8
Commit: 9c1330dedd
.NET Core SDKs installed:
3.1.402 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Thank you very much!

Error TwoCaptcha Is name Space and you are using like a type .

Hello
When instanciate twocaptcha class like this

TwoCaptcha solver = new TwoCaptcha("my key");

Error TwoCaptcha Is name Space and you are using like a type .

so i solved this error by using like this :

TwoCaptcha.Twocaptcha solver = new Twocaptcha.TwoCaptcha("Mykey");

Thank you to fix it next Version .

Balance() not working

Balance() method not working, always return FormatException.

double twoCaptchaBalance = await solver.Balance();

Could not install package '2captcha-csharp 1.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Could not install package '2captcha-csharp 1.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

issue!

recapcha v2 not work in real website

Please help me resolve it!
I tested recaptcha v2 in https://google.com/recaptcha/api2/demo and I worked. But when I try in this url: https://bds68.com.vn/dang-ky.
I got the code from 2captcha then I put it into textarea tag with id="g-recaptcha-response", it's not worked!
there is my code:
var captchaEle = await page.QuerySelectorAsync("div[id="recaptcha"]");
if (captchaEle != null)
{
var siteKey = await captchaEle.GetAttributeAsync("data-sitekey");
if (siteKey != null)
{
string capCode = "";
TwoCaptcha.TwoCaptcha solver = new TwoCaptcha.TwoCaptcha(ApiKey);

    ReCaptcha captcha = new ReCaptcha();
    captcha.SetSiteKey(siteKey);
    captcha.SetUrl(urlPage);
    solver.Solve(captcha).Wait();
    capCode = captcha.Code;

    await page.EvalOnSelectorAsync("#g-recaptcha-response", @"(element) => { 
        element.style.display = 'block'; 
    }");
    await page.EvalOnSelectorAsync("#g-recaptcha-response", $"(element, value) => element.value = value", capCode);
    await page.ClickAsync("input[type=\"submit\"]");
}

}
Thanks a lot!

Can I use your extension for one web site using hCaptcha?

I found your extension, it seems to be rather interesting. I want to know how to use it. I have one specific web site, which I can install Privacy Pass extension to use the web site for some time, the Privacy Pass extension can be downloaded from here:
https://chrome.google.com/webstore/detail/privacy-pass/ajhmfdgkijocedmfjonnpjfojldioehi?hl=en
The web site, which I can use Privacy Pass extension is https://www.buffbet.com
If you install the extension, then after the first time you solve the hCaptcha challenge, you will be given 5 tokens or credits. Then, with each token or credit, you can visit the web site for about 2 hours, so totally, you can visit the web site for about 12 hours (plus the first one by hand).
You can do some testing to know what I am talking about.
For this specific web site, how I can use your extension?
I can use both JavaScript and C# for coding.
I want to know if I can use both your extension and privacy pass extension to visit the web site automatically.
You can take a look at the web site and let me know if it is possible, if yes, then give me some operation instructions as in my message.
Thanks,

how to calculate last hcaptcha parameters

i am having issue on new hcaptcha systems they implemented new parameters which need to be calculated or fetched dont know how, those are the parmeters:
captcha_vc, captcha_answer
like this website:
https://raffle.bstn.com/
how to reslove it and enter to website waiting for answer.
thanks in advance.

Recaptcha not getting set in Grid class

When sending the request for the Grid class, the recaptcha value must be set to 1. The Grid constructor needs to have the value set just like the Canvas constructor.

Cannot Instantiate 2Captcha Object in .Net6.

I am trying to integrate 2Captcha service in my .Net6 Application.

I have installed this nuget package: https://www.nuget.org/packages/2captcha-csharp/

I added the namespace: using TwoCaptcha.Captcha;

But I am not able to instantiate the object:

TwoCaptcha solver = new TwoCaptcha('YOUR_API_KEY');
reCAPTCHA captcha = new reCAPTCHA();
Getting error here.

How can I resolve this?

https://stackoverflow.com/questions/77986229/cannot-instantiate-twocaptcha-object-in-net-6

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.