https://github.com/bannsec/cosmosocks
Socks server written in Cosmopolitan libc
https://github.com/bannsec/cosmosocks
Last synced: over 1 year ago
JSON representation
Socks server written in Cosmopolitan libc
- Host: GitHub
- URL: https://github.com/bannsec/cosmosocks
- Owner: bannsec
- License: gpl-3.0
- Created: 2022-08-18T03:06:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T03:32:40.000Z (almost 4 years ago)
- Last Synced: 2025-03-26T07:22:58.293Z (over 1 year ago)
- Language: C
- Size: 6.72 MB
- Stars: 25
- Watchers: 3
- Forks: 3
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-cosmopolitan - cosmosocks - Socks server written in Cosmopolitan libc (Cosmopolitan / Projects)
README
[](https://github.com/bannsec/cosmosocks/actions/workflows/build.yml)







# Overview
`Cosmosocks` is a socks server written entirely in [Cosmopolitian libc](https://justine.lol/cosmopolitan). This allows the socks program to run across any platform cosmopolitan can run on, which includes Windows, Linux, MacOS and more.
# Running
The two binaries that are built are `cosmosocks_server` and `cosmosocks_server_ape`. The two binaries are functionally the same, but the former will unpack itself into a temporary directory while the later will dynamically overwrite itself.
```bash
# Basic run with no arguments will bind global on port 1080
cosmosocks_server
# Specify a port to bind to
cosmosocks_server -p 8080
# Specify a username/password for authentication
cosmosocks_server -U user -P password
```
# Downloading
Release binaries are available on [GitHub](https://github.com/bannsec/cosmosocks/releases/latest).
# Building
All dependencies are provided in this repository. Building the program is simple as running `make`.
If you want to use a different cosmopolitan amalgamation, you can specify it with `COSMO`:
```bash
make COSMO=amalgamation-dbg
make COSMO=amalgamation-tiny
```