Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Delphi_TOR_SOCKETS

Easy to use Drag and drop VCL TOR Socket components!

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

🧅 TOR Socket Components for Delphi

Professional Native TOR Client & Server Components


TOR Components

🚀 Overview

TOR Socket Components for Delphi is a fully native TOR networking component suite written entirely in Delphi.

It allows your applications to:

• Connect to TOR hidden services (.onion)
• Host TOR hidden services
• Build anonymous servers and clients
• Run TOR networking without external libraries, Only the initial tor.exe binary is required!

No OpenSSL.
No external DLL dependencies.

Only tor.exe is required.


✨ Features

Native TOR Engine

• Fully written in Delphi
• Automatic tor.exe management
• SOCKS5 protocol implementation
• TOR Control Protocol support
• Bootstrap monitoring
• Hidden service creation (for the TOR.exe Binary)


TTorClientSocket

Connect to hidden services easily.

Capabilities:

• Connect to .onion addresses
• Fully asynchronous
• Threaded networking
• Event‑driven architecture
• Automatic TOR startup

Events:

OnConnected
OnDisconnected
OnDataReceived
OnError


TTorServerSocket

Host your own TOR hidden service.

Capabilities:

• Automatic onion service creation
• Accept anonymous clients
• Multi‑client support
• Fully threaded
• Send and receive data


📦 Package Contents

TorEngine.pas --- Core TOR engine
TorClientSocket.pas --- Client component
TorServerSocket.pas --- Server component
TorSocketReg.pas --- Component registration
TorSocketComponents.dpk --- Delphi package


🛠 Installation

Step 1

Open in Delphi:

TorSocketComponents.dpk

Build & Install

Components appear in Component Palette → TOR Sockets


Step 2

Download TOR Expert Bundle:

https://www.torproject.org/download/tor/

Place tor.exe in your application folder. (or use whatever method you wish Ex: Exe resources ect... ect...)


⚡ Client Example

pascal
TorClient := TTorClientSocket.Create(Self);
TorClient.TorExePath := 'tor.exe';
TorClient.DataDirectory := 'tor_data';
TorClient.OnionAddress := 'example.onion';
TorClient.OnionPort := 80;
TorClient.Active := True;

🧅 Server Example

pascal
TorServer := TTorServerSocket.Create(Self);
TorServer.TorExePath := 'tor.exe';
TorServer.DataDirectory := 'tor_service';
TorServer.Active := True;

⚙ Requirements

Delphi 12+
Windows 10/11
tor.exe


🛡 Security

Provides full TOR anonymity.

Your real IP address is never exposed.


🧑‍💻 Author

BitmasterXor

Malware Researcher
Delphi Developer

GitHub
https://github.com/BitmasterXor


⭐ Support

Star the project if you find it useful.