Hacking Tools

SharpRedirect : A Lightweight And Efficient .NET-Based TCP Redirector

SharpRedirect is a simple .NET Framework-based redirector from a specified local port to a destination host and port.

Features

  • Traffic Redirection: Redirects incoming TCP connections from a local port to a specified destination host and port.
  • Bidirectional Communication: Supports full duplex communication between the client and the destination.
  • Ease of Use: Simple command-line interface for quick setup.
  • Lightweight and Efficient: Designed with asynchronous operations for optimal performance.

Requirements

.NET Framework: Version 4.5 or later.

Installation

  1. Clone the repository or download the source code:
git clone https://github.com/your-repo/SharpRedirect.git
  1. Open the project in Visual Studio.
  2. Build the solution to generate the executable. (You can also used the precompiled ones inside Releases folder)

Usage

Run the executable from the command line with the following syntax:

SharpRedirect.exe <localPort> <destinationHost> <destinationPort>

Example: To redirect traffic from localhost:8080 to example.com:80:

SharpRedirect.exe 8080 example.com 80

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Bash Scripting Best Practices Every Beginner Should Know

Introduction Bash scripting is a powerful way to automate Linux tasks, but writing a script…

1 day ago

How To Create A Self-Signed SSL Certificate Using Bash And OpenSSL

Introduction A self-signed SSL certificate is a certificate that is created and signed by the…

1 day ago

How To Debug Bash Scripts Using bash -x And set Commands

Introduction Debugging is an important part of Bash scripting. When a script does not work…

1 day ago

How To Use Cron Jobs With Bash Scripts For Automation

Introduction Cron jobs are used in Linux to run commands or Bash scripts automatically at…

2 days ago

How To Use Pipes In Bash Scripts For Command Chaining

Introduction Pipes are an important feature in Linux and Bash scripting. A pipe allows you…

2 days ago

How To Use grep, awk, And sed In Bash Scripts

Introduction The grep, awk, and sed commands are powerful text-processing tools in Linux. They are…

2 days ago