【DevTunnels】微软一款内网穿透神器

admin 2024年5月15日00:24:09评论30 views字数 1705阅读5分41秒阅读模式
  • 0x01 免责声明

请勿使用本文中所提供的任何技术信息或代码工具进行非法测试和违法行为。若使用者利用本文中技术信息或代码工具对任何计算机系统造成的任何直接或者间接的后果及损失,均由使用者本人负责。本文所提供的技术信息或代码工具仅供于学习,一切不良后果与文章作者无关。使用者应该遵守法律法规,并尊重他人的合法权益。Matrix SEC

  • 0x02 工具介绍

【DevTunnels】微软一款内网穿透神器

DevTunnels是一个功能强大的工具,可以安全地将本地主机端口开放到互联网并控制访问权。

  • 0x03 工具安装

Windows:

https://aka.ms/TunnelsCliDownload/win-x64

Linux:

https://aka.ms/TunnelsCliDownload/linux-x64

macOS:

https://aka.ms/TunnelsCliDownload/osx-arm64-ziphttps://aka.ms/TunnelsCliDownload/osx-x64-zip
  • 0x04 使用方法

参数说明

Usage:  devtunnel [options] [command]Options:  -v, --verbose   Enable verbose output  --version       Show version information  -?, -h, --help  Show help and usage informationCommands:  list                         List tunnels  show <tunnel-id-or-name>     Show tunnel details  create                       Create a tunnel  update <tunnel-id-or-name>   Update tunnel properties  delete <tunnel-id-or-name>   Delete a tunnel  delete-all                   Delete all tunnels  token <tunnel-id-or-name>    Issue tunnel access token  set <tunnel-id-or-name>      Set default tunnel  unset                        Clear default tunnel  access                       Manage tunnel access control entries  user                         Manage user credentials  port                         Manage tunnel ports  host <tunnel-id-or-name>     Host a tunnel, if tunnel ID or name is not specified a new tunnel will be created  connect <tunnel-id-or-name>  Connect to an existing tunnel  limits                       List user limits  clusters                     List available service clusters by location  echo <protocol>              Run a diagnostic echo server on a local port  ping <uri>                   Send diagnostic messages to a remote echo server

快速开始

1. 条件: 需要有一个Microsoft账户

devtunnel user login -d

【DevTunnels】微软一款内网穿透神器

2. 服务端指定需要转发的端口,会生成Tunnel ID

devtunnel host -p 3389 --allow-anonymousdevtunnel host -p 3389 --allow-anonymous --protocol https

【DevTunnels】微软一款内网穿透神器

3. 客户端用Tunnel ID与服务端连接

devtunnel connect (Tunnel ID)

【DevTunnels】微软一款内网穿透神器

4. 成功连接

【DevTunnels】微软一款内网穿透神器

5. 由于每次会重新创建,使用以下方法可以创建持久的30天隧道

devtunnel create -adevtunnel port create (Tunnel ID) -p 3389devtunnel host (Tunnel ID)
  • 0x05 参考

https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/get-started

原文始发于微信公众号(Matrix SEC):【DevTunnels】微软一款内网穿透神器

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年5月15日00:24:09
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   【DevTunnels】微软一款内网穿透神器https://cn-sec.com/archives/2052279.html

发表评论

匿名网友 填写信息