I need help converting blob link to base64 format to upload to captcha service

Learn2023

Пользователь
Регистрация
18.03.2023
Сообщения
40
Благодарностей
1
Баллы
8
I need help converting blob link to base64 format to upload to captcha service


I don't know how to convert.
Please send me the c# or js code for me to use.
Thank you


Help me please
lokiys
VladZen
 

Вложения

BAZAg

Client
Регистрация
08.11.2015
Сообщения
1 743
Благодарностей
2 382
Баллы
113
I need help converting blob link to base64 format to upload to captcha service


I don't know how to convert.
Please send me the c# or js code for me to use.
Thank you


Help me please
lokiys
VladZen
To work without a browser.
But, we need cookies and headers that need to be generated.
First Code:
string url = "https://client-api.arkoselabs.com/rtig/image?challenge=0&sessionToken=2561783140e354cf2.1086845305&gameToken=72964fbbea3d197a6.8950471505";var bytes = ZennoPoster.HTTP.RequestBytes( 
    method:ZennoLab.InterfacesLibrary.Enums.Http.HttpMethod.GET,      url:url, content:"", contentPostingType:"",Cookies: "",
    proxy:string.Empty,      AdditionalHeaders: new[]{"Accept: application/json, text/plain, */*",
"Accept-Language: en-US,en;q=0.8","Cookie: _cfuvid=BeZu4EKbxtnpUuCYy6USHYiVg1kQlaP6Dsy7tsjD.xc-1694218670558-0-604800000; timestamp=169421900943402",
"Referer: https://client-api.arkoselabs.com/fc/assets/ec-game-core/game-core/1.14.1/standard/index.html?session=2561783140e354cf2.1086845305&r=eu-west-1&meta=3&meta_width=558&meta_height=523&metabgclr=transparent&metaiconclr=%23555555&guitextcolor=%23000000&pk=0152B4EB-D2DC-460A-89A1-629838B529C9&at=40&ag=101&cdn_url=https%3A%2F%2Fclient-api.arkoselabs.com%2Fcdn%2Ffc&lurl=https%3A%2F%2Faudio-eu-west-1.arkoselabs.com&surl=https%3A%2F%2Fclient-api.arkoselabs.com&smurl=https%3A%2F%2Fclient-api.arkoselabs.com%2Fcdn%2Ffc%2Fassets%2Fstyle-manager&theme=default","Connection: keep-alive"});
return Convert.ToBase64String(bytes);

To work in the browser, it is enough to intercept the request and return the body contents to a variable in the form of base64.

Second Code:
instance.UseTrafficMonitoring = true;
Go to the site, then click on the button to make the captcha appear.
Second Code:
instance.ActiveTab.Navigate("https://iframe.arkoselabs.com/0152B4EB-D2DC-460A-89A1-629838B529C9");
Returning the image in base64
Second Code:
var traffic = instance.ActiveTab.GetTraffic();
foreach(var t in traffic) {    if (t.Url.Contains("https://client-api.arkoselabs.com/rtig/image")) {
        return Convert.ToBase64String(t.ResponseBody);    }
}return "0";
111373
 
  • Спасибо
Реакции: kawae и volody00

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)