Giter Site home page Giter Site logo

ronaldinhol / cycletls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danny-dasilva/cycletls

0.0 2.0 0.0 31.49 MB

Spoof TLS/JA3 fingerprints in GO and Javascript with added support for proxies.

Go 82.86% Shell 0.06% TypeScript 11.26% JavaScript 5.82%

cycletls's Introduction

CycleTLS

Currently in Active development

todo:

  • fix TS api
  • redo-socket request api in go(now fully async
  • cleanup async code
  • test requests
  • bugfixes for error (wrong https proxy, incorrect JA3 and so on)
  • state checks for golang
  • concurrency and speedtests

Setup

npm install --dev

npm run build

if windows

npm run build:windows

if linux

npm run build:linux

if mac

npm run build:mac:

Example for Golang

package main

import (
    "log"
    "github.com/Danny-Dasilva/cycletls"
)
var FirefoxAuto = cycletls.Browser{
	JA3:       "771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-156-157-47-53-10,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0",
	UserAgent: "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0",
}

func main() {

    // Optional client, err := cycletls.NewClient(FirefoxAuto, "https://username:[email protected]:443")
    client, err := cycletls.NewClient(FirefoxAuto,)
    if err != nil {
        log.Fatal(err)
    }

    resp, err := client.Get("https://www.google.com/")
    if err != nil {
        log.Fatal(err)
    }
    resp.Body.Close()

    log.Println(resp.Status)
}

Example for TS

this is in tests/main.ts

see run.sh script for local testing

// const initCycleTLS = require('./src/index');
import initCycleTLS from '../dist/index.js'
// Typescript: import initCycleTLS from 'cycletls';

(async () => {
  const cycleTLS = await initCycleTLS();

  const response = await cycleTLS('https://ja3er.com/json', {
    body: '',
    ja3: '771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,0-23-65281-10-11-35-16-5-13-18-51-45-43-27-21,29-23-24,0',
    userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36',
    proxy: 'https://username:[email protected]:443',
  });
  console.log(response)
})();

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.