From 2ceb6f091279bdd3036e52da65d918e41b602e17 Mon Sep 17 00:00:00 2001 From: victorkowalski Date: Wed, 5 Nov 2025 11:10:47 +0300 Subject: [PATCH 1/3] prosopo files --- .../java/com/twocaptcha/captcha/Prosopo.java | 18 +++++++++++++ src/main/java/examples/ProsopoExample.java | 22 ++++++++++++++++ src/test/java/com/twocaptcha/ProsopoTest.java | 25 +++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 src/main/java/com/twocaptcha/captcha/Prosopo.java create mode 100644 src/main/java/examples/ProsopoExample.java create mode 100644 src/test/java/com/twocaptcha/ProsopoTest.java diff --git a/src/main/java/com/twocaptcha/captcha/Prosopo.java b/src/main/java/com/twocaptcha/captcha/Prosopo.java new file mode 100644 index 0000000..0340a26 --- /dev/null +++ b/src/main/java/com/twocaptcha/captcha/Prosopo.java @@ -0,0 +1,18 @@ +package com.twocaptcha.captcha; + +public class Prosopo extends Captcha { + + public Prosopo() { + super(); + params.put("method", "prosopo"); + } + + public void setSiteKey(String siteKey) { + params.put("sitekey", siteKey); + } + + public void setUrl(String url) { + params.put("pageurl", url); + } + +} diff --git a/src/main/java/examples/ProsopoExample.java b/src/main/java/examples/ProsopoExample.java new file mode 100644 index 0000000..840e7c8 --- /dev/null +++ b/src/main/java/examples/ProsopoExample.java @@ -0,0 +1,22 @@ +package examples; + +import com.twocaptcha.TwoCaptcha; +import com.twocaptcha.captcha.Prosopo; + +public class ProsopoExample { + + public static void main(String[] args) { + TwoCaptcha solver = new TwoCaptcha(args[0]); + + Prosopo captcha = new Prosopo(); + captcha.setSiteKey("5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); + captcha.setUrl("https://www.example.com/"); + + try { + solver.solve(captcha); + System.out.println("Captcha solved: " + captcha.getCode()); + } catch (Exception e) { + System.out.println("Error occurred: " + e.getMessage()); + } + } +} diff --git a/src/test/java/com/twocaptcha/ProsopoTest.java b/src/test/java/com/twocaptcha/ProsopoTest.java new file mode 100644 index 0000000..30efac1 --- /dev/null +++ b/src/test/java/com/twocaptcha/ProsopoTest.java @@ -0,0 +1,25 @@ +package com.twocaptcha; + +import com.twocaptcha.captcha.Prosopo; + +import java.util.HashMap; +import java.util.Map; + +public class ProsopoTest extends AbstractWrapperTestCase { + + public void testAllOptions() throws Exception { + Prosopo captcha = new Prosopo(); + captcha.setSiteKey("5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); + captcha.setUrl("https://www.example.com/"); + + Map params = new HashMap<>(); + params.put("method", "prosopo"); + params.put("sitekey", "5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); + params.put("pageurl", "https://www.example.com/"); + params.put("soft_id", "4581"); + params.put("json", "0"); + + checkIfCorrectParamsSendAndResultReturned(captcha, params); + } + +} \ No newline at end of file From 4b7ae2d259345e6e233b2475b9f674947fdd6ab5 Mon Sep 17 00:00:00 2001 From: victorkowalski Date: Wed, 5 Nov 2025 11:34:00 +0300 Subject: [PATCH 2/3] readme upd --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 7fa2058..96925ba 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Examples of API requests for different captcha types are available on the [Java - [atbCAPTCHA](#atbcaptcha) - [CyberSiARA](#cybersiara) - [DataDome](#datadome) + - [Prosopo](#prosopo) - [Other methods](#other-methods) - [send / getResult](#send--getresult) - [balance](#balance) @@ -496,6 +497,16 @@ captcha.setUserAgent("Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHT captcha.setProxy("HTTPS", "login:password@IP_address:PORT"); ``` +### Prosopo +Use this method to solve Prosopo and obtain a token to bypass the protection. + +```java +TwoCaptcha solver = new TwoCaptcha(args[0]); // args[0] = "API KEY" +Prosopo captcha = new Prosopo(); +captcha.setSiteKey("5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); +captcha.setUrl("https://www.example.com/"); +``` + ## Other methods ### send / getResult From 26ef6b1255c99ecca58a5fd38837881430b83ffe Mon Sep 17 00:00:00 2001 From: victorkowalski Date: Wed, 5 Nov 2025 12:04:52 +0300 Subject: [PATCH 3/3] prosopo upd --- README.md | 4 ++-- src/main/java/examples/ProsopoExample.java | 4 ++-- src/test/java/com/twocaptcha/ProsopoTest.java | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 96925ba..906e677 100644 --- a/README.md +++ b/README.md @@ -503,8 +503,8 @@ Use this method to solve Prosopo and obtain a token to bypass the protection. ```java TwoCaptcha solver = new TwoCaptcha(args[0]); // args[0] = "API KEY" Prosopo captcha = new Prosopo(); -captcha.setSiteKey("5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); -captcha.setUrl("https://www.example.com/"); +captcha.setSiteKey("5EZVvsHMrKCFKp5NYNoTyDjTjetoVo1Z4UNNbTwJf1GfN6Xm"); +captcha.setUrl("https://www.twickets.live/"); ``` ## Other methods diff --git a/src/main/java/examples/ProsopoExample.java b/src/main/java/examples/ProsopoExample.java index 840e7c8..e0a8352 100644 --- a/src/main/java/examples/ProsopoExample.java +++ b/src/main/java/examples/ProsopoExample.java @@ -9,8 +9,8 @@ public static void main(String[] args) { TwoCaptcha solver = new TwoCaptcha(args[0]); Prosopo captcha = new Prosopo(); - captcha.setSiteKey("5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); - captcha.setUrl("https://www.example.com/"); + captcha.setSiteKey("5EZVvsHMrKCFKp5NYNoTyDjTjetoVo1Z4UNNbTwJf1GfN6Xm"); + captcha.setUrl("https://www.twickets.live/"); try { solver.solve(captcha); diff --git a/src/test/java/com/twocaptcha/ProsopoTest.java b/src/test/java/com/twocaptcha/ProsopoTest.java index 30efac1..99e862e 100644 --- a/src/test/java/com/twocaptcha/ProsopoTest.java +++ b/src/test/java/com/twocaptcha/ProsopoTest.java @@ -9,13 +9,13 @@ public class ProsopoTest extends AbstractWrapperTestCase { public void testAllOptions() throws Exception { Prosopo captcha = new Prosopo(); - captcha.setSiteKey("5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); - captcha.setUrl("https://www.example.com/"); + captcha.setSiteKey("5EZVvsHMrKCFKp5NYNoTyDjTjetoVo1Z4UNNbTwJf1GfN6Xm"); + captcha.setUrl("https://www.twickets.live/"); Map params = new HashMap<>(); params.put("method", "prosopo"); - params.put("sitekey", "5EPQoMZEDc5LpN7gtxMMzYPTzA6UeWqL2stk1rso9gy4Ahqt"); - params.put("pageurl", "https://www.example.com/"); + params.put("sitekey", "5EZVvsHMrKCFKp5NYNoTyDjTjetoVo1Z4UNNbTwJf1GfN6Xm"); + params.put("pageurl", "https://www.twickets.live/"); params.put("soft_id", "4581"); params.put("json", "0");