Solve CAPTCHAs in ZennoPoster with DeathByCaptcha
ZennoPoster projects run into the same wall as every other automation: a protected form stops the flow and the script has no idea what to type. The solution is a snippet that asks DeathByCaptcha for the token and writes it into the page.
The official .NET client ships those snippets, ready to paste into a ZennoPoster "Own code" cube.
The snippets
They live in the .NET client:
DBC_Examples/ZennoPoster/ZennoPosterSnippets.cs
| Method | Type | Needs |
|---|---|---|
SolveRecaptchaV2(sitekey, pageurl) |
4 | sitekey and page URL |
SolveRecaptchaV3(sitekey, pageurl, action, minScore) |
5 | sitekey and page URL |
SolveTurnstile(sitekey, pageurl) |
12 | sitekey and page URL |
SolveAmazonWaf(sitekey, pageurl, iv, context) |
16 | the values from the page |
SolveImage(imagePath) |
0 | a screenshot on disk |
GetBalance() |
— | nothing |
Each one returns the token or the text, and throws when there is no solution, so your cube can fail loudly instead of typing an empty string.
Setup
- Build the client or take the assembly from the NuGet package:
dotnet build DeathByCaptcha/DeathByCaptcha.csproj -c Release
- Reference the DLL from your ZennoPoster project.
- Set the credentials as environment variables on the machine that runs
ZennoPoster:
DBC_USERNAMEandDBC_PASSWORD, orDBC_AUTHTOKEN. Never paste them into a cube or commit them to a project.
In the cube
// Own code cube
string token = DeathByCaptcha.ZennoPoster.Snippets.SolveRecaptchaV2(
sitekey: "6Le...",
pageurl: "https://example.test/");
// then write the token into the page with your ZennoPoster scripting
For an image challenge, save the screenshot first and pass the path:
string shot = @"C:\temp\challenge.png";
// ZennoPoster: capture the element into $shot
string answer = DeathByCaptcha.ZennoPoster.Snippets.SolveImage(shot);
Why you do not need a proxy
Turnstile, Amazon WAF and DataDome tokens are valid only from the exit IP that solved them. The snippet runs on the machine that runs the browser, so the solve and the request leave from the same IP by default. A proxy is needed only if your browser goes out through a different one.
Things to know
- The snippets do not know how ZennoPoster renders a page. Reading the sitekey, saving the screenshot and filling the field stay in your cube.
- reCAPTCHA v3 needs an
actionand amin_scorethat match the site you are testing. - The library targets
net6.0,net8.0andnet10.0. If your ZennoPoster runs on .NET Framework, check that it can load assemblies for one of those targets before wiring the reference. - The test in the repository solves one live reCAPTCHA v2 through the
same snippet, so the code path in the cube is the one that was tested:
dotnet test --filter "Category=ZennoPoster".
Next steps
- Snippets, README and test: https://github.com/deathbycaptcha/deathbycaptcha-api-client-dotnet
- API documentation: https://deathbycaptcha.com/api

Portuguese
English
Spanish
Russian
Chinese
French
Hindi
Arabic
Bengali
Indonesian
com, 