Giter VIP home page Giter VIP logo

x-gorgon-tt-encrypt's Introduction

TikTok X-Gorgon & TTEncrypt in NodeJS, Python & PHP variants

X-Gorgon/X-Khronos headers are required for mobile app api requests. The library provides standalone solution without any external or special requirements to do the calculations

TTEncrypt is required to do device registrations, applog for valid api requests.

The script can run as library/module on any platform with Python v3.8+, PHP v7+ & NodeJS v12+ without any dependency with Frida/Emulators/ADB of any kind

X-Gorgon:

  • NodeJS
  • Python
  • PHP

X Gorgon Versions:

  • v03 (NodeJS)
  • v0404 (NodeJS/Python/PHP)

TTEncrypt

TT Encrypt available for device registration and applog with no dependency of any device/emulators

  • PHP
  • NodeJS
  • Python

X-Gorgon Response Object:

{
    "X-Gorgon": "0404d0e400010f39aa7f1704a5760372721ccf34c4f2ad41546b",
    "X-Khronos": 1619330839
}

Usage:

NodeJS

// X-Gorgon Generation
const gorgon=require('./lib/gorgon');
const params="URL PARAMS STRINGIFIED"; // only GET request parameters
const cookies="TIKTOK COOKIES"; // may be blank if you don't want to use session
const data="POST DATA";
const stub=md5(data);
const xGorgonHeaders=gorgon(params,cookies,stub);

// TTEncrypt post data
const ttEncrypt=require('./lib/tt_encrypt');
const tt_encrypt_body=await ttEncrypt("POST_BODY_IN_JSON_FORMAT");

PHP

// X-Gorgon Generation
$xgorgon= new Gorgon();
$gorgonHeader=$gorgon->calculate("URL_PARAM_STRINGIFIED",$cookies,$stub);

// TTEncrypt post data
$encrypt=new Encrypt();
$tt_data=$encrypt->encrypt("POST_BODY_IN_JSON_FORMAT");

Contact

x-gorgon-tt-encrypt's People

Contributors

ssovit avatar

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.