GithubHelp home page GithubHelp logo

cloudproxysharp's People

Contributors

jbou avatar ngosang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cloudproxysharp's Issues

CloudProxySharp.Exceptions.CloudProxyException: The cookies provided by CloudProxy are not valid

I try to access: https://www.spigotmc.org/resources/hubkick.2/download?version=203285

Console output of CloudProxy:

2020-11-03T22:17:45.832Z INFO REQ-5 Incoming request: POST /v1
2020-11-03T22:17:45.832Z INFO REQ-5 Params: {"cmd":"request.get","url":"https://www.spigotmc.org/?version=203285","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","maxTimeout":60000,"headers":null,"cookies":null}
2020-11-03T22:17:45.833Z DEBUG REQ-5 Launching headless browser...
2020-11-03T22:17:46.225Z DEBUG REQ-5 Using custom UA: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0
2020-11-03T22:17:46.226Z DEBUG REQ-5 Adding custom headers: {}
2020-11-03T22:17:46.226Z DEBUG REQ-5 { headers: [Function] }
2020-11-03T22:17:46.228Z DEBUG REQ-5 Navegating to... https://www.spigotmc.org/?version=203285
2020-11-03T22:17:46.242Z DEBUG REQ-5 {
headers: {
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0'
}
}
2020-11-03T22:17:47.218Z INFO REQ-5 Cloudflare detected
2020-11-03T22:17:47.258Z INFO REQ-5 Successful response in 1.426 s

The code i use:

public async Task<Stream> GetPluginAsync(string url)
{
    ClearanceHandler handler = new ClearanceHandler("http://localhost:8191/")
    {
        UserAgent = "Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0",
        MaxTimeout = 60000
    };
    HttpClient client = new HttpClient(handler);
    Uri uri = new Uri(url);
    return await client.GetStreamAsync(uri);
}

The only thing i noticed is that the url i pass to the function "https://www.spigotmc.org/resources/hubkick.2/download?version=203285" is not the one that is shown in the logs of CloudProxy.

Can you tell me if this is an error with your c# lib or with CloudProxy?

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.