![]() |
|
Using TDS to bypass detection tutorial - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47) +----- Thread: Using TDS to bypass detection tutorial (/showthread.php?tid=6251879) |
Using TDS to bypass detection tutorial - littlephish420 - Sep 18, 2023 "If you do not have a TDS API, you can join the free beta program here: https://hackforums.net/showthread.php?tid=6251680 and get a TDS API" Introduction Today we will explore how to harness the power of a Traffic Distribution System (TDS) using a custom reverse proxy implemented in the Go programming language (Golang). A Traffic Distribution System (TDS) is a sophisticated tool designed to efficiently manage incoming network traffic. It can be used in both business scenarios, where it aids in preventing fraudulent activities, and in the realm of penetration testing, where it plays a crucial role in remaining undetected during legitimate engagements. Understanding the Significance of TDS TDS has gained widespread adoption in the business world due to its ability to mitigate risks such as fraud. Additionally, some TDS solutions even assist in detecting temporary email addresses and phone numbers. This versatility makes TDS an indispensable asset for organizations worldwide, helping them safeguard their operations and reputations. Practical Application in Penetration Testing In this article, we will dive into the practical application of the reverse proxy linked here within the context of a theoretical penetration testing engagement. We will employ a reverse proxy as an intermediary, intercepting requests from clients and efficiently routing them to the appropriate backend servers. By configuring this setup, we can ensure that our website remains invisible to requests from web crawlers, bots, antivirus systems (AVs), endpoint detection and response solutions (EDRs), and mechanisms like SafeBrowsing. This approach not only shields your backend but also safeguards it against being labeled as suspicious as known as "anti-red" in certain circles. By the end of this article, you'll know how to leverage a TDS using a custom Golang reverse proxy, enhancing your ability to manage and protect your backend from malicious network traffic effectively. Let's dive into it... Compiling the Reverse Proxy Project and Setting Up a TDS-Enabled Environment In this section, we'll walk you through the process of compiling the reverse proxy project and creating an environment with Traffic Distribution System (TDS) capabilities. We'll be using a Debian Virtual Private Server (VPS) for this purpose and leverage the Go programming language to compile the reverse proxy binary. 1. Installing Git and Go Begin by ensuring that Git is installed on your server. You can check everything working by running git in your console. If Git is not installed, install it using the following command: Code sudo apt install gitCode git clone https://github.com/kerolloz/go-installer.gitNavigate to the cloned directory: Code cd go-installerExecute the installer script to set up Go: Code ./go.sh2. Creating the Reverse Proxy Directory and Configuration With Go installed, it's time to create a directory for your reverse proxy project. Navigate to your desired location and create the "proxy" directory: Code mkdir proxyInside the "proxy" directory, you'll want to create a file named "proxy.go" to host your reverse proxy code: Code touch proxy.goUse your preferred text editor to edit "proxy.go" (we'll use nano in this example): Code nano proxy.goPaste your reverse proxy code into this file and make any necessary adjustments, such as configuring the endpoint to point to the backend hosting your web files and specifying the TDS API. Save the changes. 3. Setting Up the Go Project Initialize a Go module for your project: Code go mod init proxyEnsure that all required packages are installed: Code go mod tidy4. Compiling the Reverse Proxy Compile your reverse proxy by running the following command: Code go buildThe following command will generate an ELF binary that you can run. Execute the binary with: Code ./proxyYour reverse proxy will now be up and running, listening on port 80. 5. Configuring Your Backend Server On your backend server, add security by configuring your firewall to only permit incoming traffic from your reverse proxy. This step ensures that your website's files are accessible to the reverse proxy so it can serve it so that your backend will not get detected as suspicious. 6. Pointing Your Domain to Your Debian VPS Once your domain is ready, configure A records to point to your Debian VPS's IP address. After the domain propagates, share it with your intended audience. You'll notice that only legitimate visitors are granted access to your website files, thanks to the Traffic Distribution System (TDS) capabilities of your reverse proxy. By following these steps, you'll have successfully set up a TDS-enabled environment using a custom Golang reverse proxy, bolstering your website's security and performance. This prevents detection as suspicious during legitimate pentesting engagements. Proxy.go source code Code package main |