Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spoofed TLS/JA3 fingerprint is detected by CloudFlare Detection #90

Closed
dunaevv opened this issue May 15, 2022 · 1 comment
Closed

Spoofed TLS/JA3 fingerprint is detected by CloudFlare Detection #90

dunaevv opened this issue May 15, 2022 · 1 comment

Comments

@dunaevv
Copy link

dunaevv commented May 15, 2022

Hi Danny!
You project works well and there is no problem with GET requests, until u need to send POST request
For example =:>

const initCycleTLS = require('cycletls');
// Typescript: import initCycleTLS from 'cycletls';
(async() => {
    // Initiate CycleTLS
    const cycleTLS = await initCycleTLS();
    // Send request
    const response = await cycleTLS('https://betway.com/en/sports/evt/9578187', {
        body: '{"EventId":9578187,"LanguageId":1,"ClientTypeId":2,"BrandId":3,"JurisdictionId":2,"ClientIntegratorId":1,"ScoreboardRequest":{"ScoreboardType":0,"IncidentRequest":{}},"BrowserId":5,"ApplicationVersion":"","BrowserVersion":"100.0","SessionId":null,"TerritoryId":165,"CorrelationId":"59ff2df8-6099-425b-9293-a454121b8fe7","VisitId":"1085fcbc-400d-4aa9-a0fc-89a04e5a9a9b","ViewName":"sports","JourneyId":"bb37cce7-3703-48db-b51f-c6d18fba73c3"}',
        ja3: '771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0',
        headers: {
            "Host": "sportsapi.betway.com",
            "Accept": "application/json; charset=UTF-8",
            "Accept-Language": "en-US,en;q=0.5",
            "Connection": "keep-alive",
            "Content-Length": "440",
            "Content-Type": "application/json; charset=UTF-8",
            "Origin": "https://betway.com",
            "Referer": "https://betway.com/",
            "Sec-Fetch-Dest": "empty",
            "Sec-Fetch-Mode": "cors",
            "Sec-Fetch-Site": "same-site",
            "TE": "trailers",
        },
        cookies: [{
            "_fbp": "fb.1.1650841035798.971215073",
            "_ga:": "GA1.2.1003986219.1650841035",
            "_gcl_au": "1.1.1603919891.1651529638",
            "_scid": "94056155-3550-446b-8fba-74f38783cc9e",
            "_tgci": "483ed97e-c031-528c-b9b5-a69746d796d5",
            "_tglksd": "eyJzIjoiYjc1ZDBmNjQtNGQ2Ny01ZWVlLWIzNTItOGRhYWM4NDYxYzg4Iiwic3QiOjE2NTE1NzYxMjg4OTh9",
            "_tgpc": "44b2b253-23f7-5162-915c-d4381a35f1d7",
            "aam_uuid": "39152609555483373423854102918648869002",
            "AMCV_74756B615BE2FD4A0A495EB8@AdobeOrg": "359503849|MCIDTS|19115|MCMID|39390739662373507403855976085626163040|MCAAMLH-1652180928|6|MCAAMB-1652180928|6G1ynYcLPuiQxYZrsz_pkqfLG9yMXBpb2zX5dvJdYQJzPXImdj0y|MCCIDH|-897270710|MCOPTOUT-1651583328s|NONE|MCAID|NONE|vVersion|5.0.1",
            "BETWAY_ENSIGHTEN_PRIVACY_Analytics": "1",
            "BETWAY_ENSIGHTEN_PRIVACY_Marketing": "1",
            "bw_BrowserId": "76501619282281851930349603208014741540",
            "bw_SessionId": "ea1e718a-00ec-4652-b15f-c02f98ff6854",
            "bwui_cookieToastDismissed": "true",
            "COOKIE_POLICY_ACCEPTED": "true",
            "ens_firstVisit": "1651533525209",
            "s_ecid": "MCMID|39390739662373507403855976085626163040",
            "SpinSportVisitId": "1085fcbc-400d-4aa9-a0fc-89a04e5a9a9b",
            "ssc_btag": "58bf7482-9750-46ac-84ea-545f0b8e6690",
            "ssc_DeviceId": "ad92ae8e-39af-47fa-b0c8-5237452e9620",
            "ssc_DeviceId_HttpOnly": "ad92ae8e-39af-47fa-b0c8-5237452e9620",
            "StaticResourcesVersion": "12.41.0.6",
            "TrackingVisitId": "58bf7482-9750-46ac-84ea-545f0b8e6690",
            "userLanguage": "en"
        }],
        userAgent: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0',
        // proxy: 'http://username:password@hostname.com:443'
    }, 'post');

    console.log(response);

    // Cleanly exit CycleTLS
    cycleTLS.exit();

})();

I have '403' error

@Danny-Dasilva
Copy link
Owner

Danny-Dasilva commented May 16, 2022

Just published a release. This exact request on the latest package version 0.0.20 returns a 200 for me. Feel free to open if the issue persists after updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants