Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CycleTLS.NETs

A .NET client for CycleTLS.

GitHub Workflow CycleTLS.NET CycleTLS.NET.RestSharp GitHub tag

Supports .NET 8.0 (Build available for other .Net versions)

Installation

With Nuget

  1. In Visual Studio, right-click on your project's Solution Explorer and select 'Manage NuGet Packages'.
  2. Go to the 'Browse' tab, search for CycleTLS and CycleTLS.RestSharp.
  3. Click 'Install' for each package.
  4. Accept the prompts to complete installation.

Or, via Package Manager Console:

Install-Package CycleTLS

Manual Installation

  1. Download the latest release of CycleTLS.NET's and import it into your project.
  2. 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.

Usage

Server

using CycleTLS;
using CycleTLS.Interfaces;
using CycleTLS.Models;

ICycleServer server= new CycleServer(new()
{
    Port= 9112,
    Path= "D:\\Tools\\cycleTLS\\index.exe"
});
server.start()

Client

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.

ResClient Support

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);

Files you use

Developer

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages