Giter Site home page Giter Site logo

trauma's Introduction

Deploy Trojan using a Serverless CF-Workers & Pages

🇮🇷 Persian | 🇹🇷 Turkish

🇬🇧 English | 🇩🇪 Germany

This is a script based on the Cloudflare Worker platform. Based on the original version, it is modified to display Trojan configuration information and convert it into subscription content. Using this script, you can easily convert Trojan configuration information to tools such as Clash or Singbox using online configuration.

TG Channel

rainbow

Table of Contents

Use
  • This project is designed and developed for learning, research and safety testing purposes only. It aims to provide security researchers, academics and technology enthusiasts with a tool to understand and practice network communication technology.
Legality
  • Users must comply with local laws and regulations when downloading and using this project.
  • Users are responsible for ensuring that their actions comply with the laws, regulations and other applicable requirements of their region
Risk warning - Avoid leaking node configuration information by submitting false node configurations to the subscription service

Workers deployment method

  1. Deploy Cloudflare Worker:
    • Create a new Worker in the Cloudflare Worker console.

    • Will worker.js Paste the contents into the Worker editor.

    • Change line 3 password Modify it to your own password

    • Alternatively, you can click the button below to deploy directly.

Deploy to Cloudflare Workers

  1. Add preferred route:

    • Give addresses Add the preferred domain name/preferred clean IP according to the format. If there is no port number, the default TLS port is 443, and the # sign is the remark alias, for example:
      let addresses = [
      	// Everything you want, Cloudflare Domains & Clean IP addresses.
      	'www.speedtest.net:443#Ni1',
      	'time.is#Ni2',
      	'zula.ir#Ni3',
      	'www.visa.com.sg:2053#Ni4',
      ];
  2. Access subscription content:

    • access https://[YOUR-WORKERS-URL]/[password] Get subscription content.
    • For example https://vless.trauma.workers.dev/auto This is your universal adaptive subscription address.
    • For example https://vless.trauma.workers.dev/auto?sub Base64 subscription format, suitable for PassWall, SSR+, etc.
    • For example https://vless.trauma.workers.dev/auto?clash Clash subscription format, suitable for OpenClash, etc.
    • For example https://vless.trauma.workers.dev/auto?sb singbox subscription format, suitable for singbox, etc.
  3. Bind a custom domain to workers:

    • In the workers console trigger tab, click below Add a custom domain
    • Fill in the secondary domain name that you have transferred to the CloudFlare domain name resolution service, for example: vless.trauma.com After click Add a custom domain , just wait for the certificate to take effect.

rainbow

Pages deployment method

  1. Deploy Cloudflare Pages:

    • Fork this project on Github
    • Select in the Cloudflare Pages console Connected to Git After that, select trauma Click after the item Start setting up
    • exist Setting up build and deployment At the bottom of the page, select Environment variables (advanced) merge later Add variables,
    • Fill in the variable name PASSWORD , the value is your password, then click Save and deploy That’s it.
  2. Add preferred route:

    • Add variables ADD Local static preferred line, if there is no port number, the default TLS port is 443, and the # number is followed by a remark alias, for example:
       discord.com#You can just put the domain name as follows
       www.speedtest.net:443#Ni1
       time.is#Ni2
       zula.ir#Ni3
       www.visa.com.sg:2053#Ni4
       104.17.152.41#IP Also available
       [2606:4700:e7:25:4b9:f8f8:9bfb:774a]#IPv6 also OK
  3. Access subscription content:

    • access https://[YOUR-PAGES-URL]/[password] Subscription content is available.
    • For example https://trauma.pages.dev/auto This is your universal adaptive subscription address.
    • For example https://trauma.pages.dev/auto?sub Base64 subscription format, suitable for PassWall, SSR+, etc.
    • For example https://trauma.pages.dev/auto?clash Clash subscription format, suitable for OpenClash, etc.
    • For example https://trauma.pages.dev/auto?sb singbox subscription format, suitable for singbox, etc.
  4. Bind CNAME custom domain to Pages:

    • In the Pages console Custom domains tab, click below Set up a custom domain.
    • Fill in your custom secondary domain name, be careful not to use your root domain name, for example:
    • The domain name you are assigned is fuck.cloudns.biz, then add a custom field to fill in iran.fuck.cloudns.biz That’s it;
    • According to Cloudflare's requirements, your domain name DNS service provider will be returned and the custom domain will be added. trauma CNAME record of trauma.pages.dev After that, click Activate Domain That’s it.

rainbow

ProxyIP

  1. When deploy in cloudflare pages, you can set proxyIP in 4th line of _worker.js file. or set environment variable, variable name is PROXYIP

  2. When deploy in worker.dev, you can set proxyIP in 4th line of _worker.js file. or set environment variable, variable name is proxyIP

How to find proxyIP

(SOURCE)

Environment variables description

Note

Only set two of them is sufficient, the first variable PASSWORD and the second PROXYIP , variables listed in the table below are only for educational purposes and additional explanations. rainbow

variable name Example Remark
PASSWORD auto Can take any value
PROXYIP click here or Use ni.radically.pro As a proxy node to access the CloudFlareCDN site (supports multiple ProxyIPs, used between ProxyIPs,or line feed as interval)
ADD zula.ir,www.csgo.com:2087 Local preferred domain name/preferred IP (supports multiple elements,or line feed as interval)
ADDAPI https://raw.githubusercontent.com/NiREvil/Trauma/main/cleanIPs.txt No need to explain, everyone understands
ADDCSV No need to explain, everyone understands
DLS 8 No need to explain, everyone understands
TGTOKEN 6894123456:XXXXXXXXXX0qExVsBPUhHDAbXXXXXqWXgBA Robot token for sending TG notifications
YOU DO 6946912345 Account digital ID to receive TG notifications
SUB trojan.fxxk.dedyn.io Preferred subscription generator address (using the subscriber will give upADDlocal premium subscription content within )
SUBAPI apiurl.v1.mk clash, singbox, etc. subscription conversion backend
SUBCONFIG https://raw.github.../ACL4SSR_Online_Mini.ini clash, singbox, etc. Subscription conversion profiles
SUBNAME REvil Subscription name
02 https://t.me/F_NiREvil Home page 302 jump (supports multiple URLs, used between URLs),Or line break as a spacer, don’t use it if you are new to it)
URL https://t.me/F_NiREvil Homepage disguise (supports multiple URLs, used between URLs),Or use line breaks as intervals, random settings can easily trigger anti-fraud)
rainbow

Video tutorials

Fork.and.deploy.cloudfare.Pages.dev.mp4

rainbow

Set.Environment.variables.mp4

rainbow

Get.config.-.subscription.link.and.test.ip.mp4

rainbow

proxyIP.env.replacement.and.retry.deployment.mp4

rainbow

grateful

ca110us | Sterilize it | zizifn | Yemen 178 | ACL4SSR | Shegs1999

rainbow

trauma's People

Contributors

github-actions[bot] avatar nirevil avatar actions-user avatar ca110us avatar sahar-km avatar

Stargazers

deli 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.