socat的主要特点就是在两个数据流之间建立通道;且支持众多协议和链接方式:
ip, tcp, udp, ipv6, pipe,exec,system,open,proxy,openssl,socket等

安装

brew install socat

一个简单的例子

  • http server-命令行建立连接
sudo socat TCP-LISTEN:700 EXEC:/bin/bash
  • 测试
    socat 简单试用
    说明,从输出可以看出 http 的请求转换为了 命令执行 GET HOST 。。。

参考资料

http://www.dest-unreach.org/socat/
http://www.dest-unreach.org/socat/doc/socat.html#EXAMPLES

 
 
 
 

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-08-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-12-18
相关资源
相似解决方案