Giter Club home page Giter Club logo

buut's Introduction

BUUT

https://github.com/YDHCUI/buut

介绍

一款使用rust开发的高性能正反向代理隧道工具,基于yamux多路复用技术。

工作原理

+------+      +-------------+      +-----------+      +-------------+      +----------+      +------+
|hacker| <--> | Socks5 VPS  | <--> |Yamux frame| <--> |Noise stream | <--> |TCP stream| <--> |TARGET|
+------+      +-------------+      +-----------+      +-------------+      +----------+      +------+

参数介绍

    opts.optopt("l", "server_listen",   "", "服务监听地址,默认0.0.0.0:443");
    opts.optopt("s", "remote_addr",     "", "远程地址,默认127.0.0.1:443");
    opts.optopt("p", "proxy_port",      "", "代理端口,默认10086");
    opts.optopt("m", "transport",       "", "协议类型,默认TCP");//|KCP|WS|ICMP|DNS
    opts.optopt("k", "key",             "", "加密密钥");
    opts.optopt("n", "channel",         "", "通道数量,默认1");
    opts.optopt("c", "config",          "", "配置文件路径");
    opts.optopt("",  "sockspass",       "", "代理密码,默认不验证,用户名buut"); 
    opts.optflagopt("F", "forward",     "", "是否正向模式");
    opts.optflagopt("S", "server",      "", "是否服务模式");

特点:

速度快,使用多路复用技术 将带宽利用到极致。rust开发,速度、稳定性和安全性都有保证。

体积小,编译只有不到几百k, 使用upx后还能更小,相比golang写的程序动辄10多M还是很有优势的。

无特征,程序使用Noise定制加密,可使用动态密钥保证无任何特征。

单文件,客户端和服务端使用同样的单文件、多模式自由组合切换。

多协议,目前release 0.4已支持tcp、kcp、websocket,后续把icmp、dns协议支持加进去。

使用方法

正向隧道:

    target执行:./buut -F -l 443 
    vps执行 :./buut -F -S -s target:443 -p 10086
    hacker连接socks5  vps:10086 

反向隧道

    vps执行:./buut -S -l 443 -p 10086
    target执行:./buut -s vps:443
    hacker连接socks5  vps:10086 

Tips

1、设置BUUT变量隐藏vps。 如: 原本的 ./buut -s vps:1234 可改成 export BUUT=vps:1234 && ./buut

2、使用websocket协议时,连接地址应设为ws://xxx格式 如: ./buut -m ws -s ws://target:8081/xx

3、sockspass是对client端生效,所以设置时应该在client设置,如 ./buut -s 127.0.0.1:443 --sockspass 123456

更新

0.4.1

1、修改使KCP协议也使用noise加密。

2、修复正向代理不能使用kcp协议的问题。

0.4

1、加入websocket, kcp 协议支持。

2、修复client端不会自动重连的bug。

3、优化参数配置。

0.3.1

1、加入windows支持。

2、修改默认参数。

3、优化体积。

todo

1、增加icmp、dns协议支持

2、增加自动设置端口复用模式参数

3、加入多级代理支持

4、优化参数体验

buut's People

Contributors

ydhcui avatar

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.