A .NET client for CycleTLS.
Supports .NET 8.0 (Build available for other .Net versions)
- In Visual Studio, right-click on your project's Solution Explorer and select 'Manage NuGet Packages'.
- Go to the 'Browse' tab, search for
CycleTLSandCycleTLS.RestSharp. - Click 'Install' for each package.
- Accept the prompts to complete installation.
Or, via Package Manager Console:
Install-Package CycleTLS- Download the latest release of CycleTLS.NET's and import it into your project.
- Install CycleTLS using NPM:
- Open a terminal/command prompt.
- Navigate to your project directory (
cd your_project_path). - Run
npm install cycletls.
Locate the CycleTLS executable in the installation folder after installation.
using CycleTLS;
using CycleTLS.Interfaces;
using CycleTLS.Models;
ICycleServer server= new CycleServer(new()
{
Port= 9112,
Path= "D:\\Tools\\cycleTLS\\index.exe"
});
server.start()ICycleClient cycleClient = new CycleClient(new Uri($"ws://127.0.0.1:9112"));
var resGet = await cycleClient.SendAsync(new CycleRequestOptions()
{
Url= "https://httpbin.org/get"
});You can use the client without the server. You need to start the CycleTLS process and set the port using the WS_PORT variable. After that, set the URL of CycleTLS in the client.
You need to import the "CycleTLS.RestSharp" namespace into your project.
RestClient restClient = new(new RestClientOptions()
{
BaseUrl = new Uri("https://example.org"),
});
restClient.AddDefaultHeader("ja3", "ja3 value"); // Set JA3 all requests
RestRequest request = new RestRequest()
{
Method= Method.GET,
};
request.AddHeader("ja3", "ja3 value"); // Set JA3 for specific request
/* You can use all features of RestRequest object | For more information look examples */
var response= await restClient.ExecuteCycleAsync(request, cycleClient);- CylceTLS