Skip to content

vvswift/ReverseSocks5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Client Socks5

Building the Client

Quick start for testing:

chmod +x build.sh
./build.sh

The build.sh script automatically:

  • Checks for the presence of Xcode command-line tools
  • Verifies all necessary source files
  • Locally signs the binary file
  • Launches the built app bundle

Client Operation

The module is launched once per bot_id using a mutex.

  1. POST /config — receives an encrypted Salsa20 response containing {login, password, address, version}
  2. Reverse SOCKS5: establishes a persistent connection to the server, performs SOCKS5 authentication, and supports CONNECT, BIND, and UDP_ASSOCIATE commands.
  3. In parallel, polls the control stream every 10 seconds; on HTTP 200 response, stops and exits.

In main.m:

  • dynamicBotId — automatically generated based on the MAC address in a specified format.
  • servers\":[\"https://127.0.0.1:50443\"] — C2 server address.
  • Salsa20 key (32 bytes):
    (uint8_t*)"\x00\x01\x02\x03\x04\x05\x06\x07"
              "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"
              "\x10\x11\x12\x13\x14\x15\x16\x17"
              "\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F",
    
  • servers\":[\"http://127.0.0.1:1080\"] — backup.

Requirements

  • macOS (Apple Silicon M1/M2 or Intel)
  • Xcode command-line tools (clang)

GUI Builder

Allows editing parameters and customizing the build process.

Automatically checks and installs dependencies: Python, PyQt5, Xcode CLT, Homebrew, create-dmg, ImageMagick.
Supports modes: debug binary, release .app bundle, DMG (with/without installer), PKG.
Compiles with clang, signs with codesign, adds icons/backgrounds, creates bundles with AppleScript for DMG.

Files:

  • build.py: Main Python script with PyQt5 GUI for configuration and building.

About

Client-Server infrastructure for reverse SOCKS5 proxy designed for Mac OS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published