tunnelx

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

TunnelX

TunnelX is a lightweight ingress tunneling tool designed to create a secure SOCKS5 proxy server for routing network traffic. TunnelX is created for enabling internal network scanning from the ProjectDiscovery platform, ensuring a seamless and isolated connection.

Features

  • Secure network ingress via SOCKS5 proxy.
  • Authenticated connections using your ProjectDiscovery API key.
  • Isolated traffic routing for internal scanning and discovery.

How It Works

TunnelX creates secure ingress tunnels using your ProjectDiscovery API key, enabling isolated internal scanning via a SOCKS5 proxy.

You can run TunnelX on different networks by specifying unique network names. This allows you to scan multiple networks independently, with each connection appearing as a selectable option in the network dropdown menu on the ProjectDiscovery Scans page.

Quick Start

  1. Run the Docker image:

    docker run --network host -d -e PDCP_API_KEY="your_api_key" projectdiscovery/tunnelx:latest
    

    Replace your_api_key with your ProjectDiscovery API key.

  2. Alternatively, build and run locally:

    docker build . -t tunnelx
    docker run --network host -d -e PDCP_API_KEY="your_api_key" tunnelx
    
Go
  1. Install and run:

    go install github.com/projectdiscovery/tunnelx@latest
    export PDCP_API_KEY="your_api_key"
    tunnelx
    
  2. Run directly from source:

    git clone https://github.com/projectdiscovery/tunnelx.git
    cd tunnelx
    export PDCP_API_KEY="your_api_key"
    go run .
    
  3. After successful connection, navigate to ProjectDiscovery Scans to create and manage scans using the established connection.

Internal Network

Command-Line Usage

Flags
Flag Description
-auth Your ProjectDiscovery API key (required).
-name (Optional) Specify a custom network name. Default is your machine’s hostname.

Example:

tunnelx -auth <your_api_key> -name <custom_network_name>

Output Example:

tunnelx -auth <your_api_key>

[INF] Session established. Leave this terminal open to enable continuous discovery and scanning.
[INF] Your network is protected—connection isolated and not exposed to the internet.
[INF] To create a scan, visit: https://cloud.projectdiscovery.io/scans

[HELP] To terminate, press Ctrl+C.

Running in the Background

To keep tunnelx running continuously in the background, follow these instructions based on your operating system:

# Linux & MacOS
nohup tunnelx -auth <your_api_key>

# Windows
start /B tunnelx -auth <your_api_key>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址