mytls
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

myTls

Mimic TLS/JA3 fingerprint inside Node with help from Go

Installation

$ npm install mytls

Usage

const initMyTls = require('mytls');
 
// Typescript: import initMyTls from 'mytls';
 
(async () => {
  const myTls = await initMyTls();
 
  const response = await myTls('https://ja3er.com/json', {
    body: '',
    headers: {
      'user-agent': 'customheaders',
    },
    ja3: '771,255-49195-49199-49196-49200-49171-49172-156-157-47-53,0-10-11-13,23-24,0',
    proxy: 'http://user@pass:ip:port'
  });
})();
 
// => {
// =>   status: 200,
// =>   body: '{"ja3_hash":"6fa3244afc6bb6f9fad207b6b52af26b", "ja3": "771,255-49195-49199-49196-49200-49171-49172-156-157-47-53,0-10-11-13,23-24,0", "User-Agent": "customheaders"}',
// =>   headers: {
// =>     'Access-Control-Allow-Origin': '*',
// =>     Connection: 'keep-alive',
// =>     'Content-Length': '285',
// =>     'Content-Type': 'application/json',
// =>     Date: 'Sat, 25 Jul 2020 20:43:43 GMT',
// =>     Server: 'nginx',
// =>     'Set-Cookie': [ 'visited=6fa3244agc6xx6f9fad007b6b52af26b' ]
// => }

Maintainer

ZedDev

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

JA3Transport & uTls used for the go service

Package Sidebar

Install

npm i mytls

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

26.3 MB

Total Files

10

Last publish

Collaborators

  • zeddev