Code Monkey home page Code Monkey logo

haku-fork-nothing's Introduction

nothing

A network tool to help you establish a secure tunnel proxy in an insecure network environment.

The key used for each connection is different. During the handshake, the key is randomly generated by the server, then use RAS encrypted and sent to the client

Supported encryption methods:

  • aesgcm128
  • aesgcm256
  • chacha20poly1305
  • xchacha20poly1305
  • xsalsa20poly1305

Install

Linux:

git clone https://github.com/Si-Huan/nothing.git nothing & cd nothing
go build

Usage

$  nothing -h
Usage of nothing:
  -c string
        client connect adress
  -e string
        cipher type (default "chacha20poly1305")
  -genkey
        Generate key file
  -key string
        self privatekey file path (default "nothing.key")
  -listcipher
        List supported ciphers
  -pub string
        the other publickey file path (default "nothing.pub")
  -s string
        server listen address

Generate keys

Use nothing -genkey to generate two pairs of keys.

$ ls
$ nothing -genkey
$ ls
  nothing_c.key  nothing_c.pub  nothing_s.key  nothing_s.pub

The default file names are nothing_c.key , nothing_c.pub , nothing_s.key and nothing_s.pub.

The server use nothing_c.pub and nothing_s.key while the client use nothing_c.key and nothing_s.pub

Server

Run as a server and listen at port 11106.

nothing -s 0.0.0.0:11106 -key nothing_s.key -pub nothing_c.pub

Client

Run as a client

nothing -c 127.0.0.1:1680 -s `your server ip`:11106 -key nothing_c.key -pub nothing_s.pub

It will start a socks5 proxy on 127.0.0.1:1680

License

MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.