snltty 7963552dd0 sync
2024-06-20 10:50:19 +08:00
2024-06-20 00:16:06 +08:00
2024-06-19 16:49:33 +08:00
2024-05-15 11:52:20 +08:00
2024-05-30 16:21:11 +08:00
2024-06-02 15:58:40 +08:00
2024-06-02 15:58:40 +08:00
2024-06-02 15:58:40 +08:00
2024-06-02 15:58:40 +08:00
2024-06-02 15:58:40 +08:00
2024-06-08 23:18:48 +08:00
2024-06-10 23:53:54 +08:00
2024-06-20 10:50:19 +08:00
2024-06-02 15:58:40 +08:00
2024-06-17 16:49:14 +08:00
2024-06-18 00:25:16 +08:00
2024-06-14 17:14:05 +08:00
2023-09-19 10:01:42 +08:00
2024-05-31 10:52:52 +08:00
2024-05-10 16:53:49 +08:00
2024-06-06 22:42:19 +08:00
2023-09-19 02:01:13 +00:00
2024-05-14 15:06:12 +08:00
2024-06-04 16:06:57 +08:00
2024-06-17 16:49:14 +08:00
2024-05-10 22:24:54 +08:00
2024-05-10 22:26:59 +08:00
2024-06-19 23:50:06 +08:00

cmonitor

Visual Studio 2022 LTSC 17.8

QQ 群1121552990

GitHub Repo stars GitHub Repo forks star fork

两个模式:监控组网

简单说明

  1. 组件式
  2. SSL加密
  3. 使用了一些第三方库 MemoryPacktun2socksmsquicSharpDXNAudio
  4. 使用了winform、aardio 做窗体

公共功能

监控、内网穿透,都包含以下功能
  • 打洞连接客户端之间打洞连接TCP打洞、MsQuic打洞 tunnel

    1. 默认msquic.dll win11+ 官方库说明win10 请删除 msquic.dll将 msquic-openssl.dll 更名为 msquic.dll
    2. linux 请按官方说明安装msquic
  • 中继连接,客户端之间通过服务器转发连接 relay

内网穿透

仅内网穿透发布下,或者全功能发布下,包含以下功能
  • 虚拟组网,使用虚拟网卡,将各个客户端组建为局域网络 tuntap,使用 tun2socks
  • 端口转发,将客户端的端口转发到其它客户端的端口 forward
  • 服务器穿透,在服务器注册端口或域名,通过访问服务器端口或域名,访问内网服务 sforward

监控功能

仅监控发布下,或者全功能发布下,包含以下功能
  • 桌面捕获,捕获鼠标,screen,使用 SharpDX
  • 功能禁用,禁用各种系统功能 system
  • 音量控制,音量和静音 volume,使用 NAudio
  • 系统亮度,暂不支持外界显示器 light
  • 模拟键盘键盘操作模拟ctrl+alt+delete模拟win+l等等 keyboard
  • 发送命令执行cmd命令等等 command
  • 程序限制,分为禁止打开程序,和自定检测关闭程序 active
  • 网络限制程序域名IP 黑白名单 hijack
  • 自动连接wifi wlan
  • 消息提醒,向设备发送消息提醒 message
  • 全局广播,向所有设备发送广播 notify
  • 互动答题,snatch
  • 屏幕共享,以某一设备为主机,向其它设备共享屏幕,用于演示 viewer,使用 RdpSession+RdpViewer
  • 壁纸程序,为所有设备设置统一壁纸,以程序的方式 wallpaper
  • 锁屏程序,打开锁屏程序,禁用键盘 llock

配置文件

  1. 修改common.json确定要运行什么模式
  2. 运行程序,在配置文件目录下会生成 client.json server.json
  3. 关闭程序,修改对应配置文件,再次运行程序
1、 公共配置 common.json
{
  //运行在哪个模式下,多个模式可同时存在
  "Modes": ["client","server"]
}
2、 客户端配置 client.json
客户端配置可以在 web 中配置运行模式存在client时可以浏览器打开 http://127.0.0.1:1804 进行初始化配置
3、 服务端配置 server.json
{
  //中继加密秘钥,当客户端与服务端秘钥不一致时,无法使用中继
  "Relay": {
    "SecretKey": "snltty"
  },
  //监听端口
  "ServicePort": 1802,
  //服务器代理穿透配置
  "SForward": {
    //服务器代理秘钥
    "SecretKey": "snltty",
    //网页端口,可以根据域名区分不同客户端
    "WebPort": 8088,
    //隧道端口范围,根据不同端口区分不同客户端
    "TunnelPortRange": [
      10000,
      60000
    ]
  },
}

安装示例

1、windows
使用 cmonitor.tray.win.exe
2、linux systemd
//1、下载linux版本程序放到 /usr/local/cmonitor 文件夹,并在文件夹下创建一个 log 目录

//2、 修改文件权限
chmod 0777 cmonitor
chmoe 0777 plugins/tuntap/tun2socks

//3、写配置文件
vim /etc/systemd/system/cmonitor.service

[Unit]
Description=cmonitor

[Service]
WorkingDirectory=/usr/local/cmonitor
ExecStart=/usr/local/cmonitor/cmonitor
ExecStop=/bin/kill $MAINPID
ExecReload=/bin/kill -HUP $MAINPID
Restart=always

[Install]
WantedBy=multi-user.target


//4、重新加载配置文件
systemctl daemon-reload

//5、启动或者重新启动
systemctl start cmonitor
systemctl restart cmonitor

//6、设置为自启动
systemctl enable cmonitor
linux docker
snltty/cmonitor-alpine-x64
snltty/cmonitor-alpine-arm64

发布项目

1、主项目 cmonitor 项目分为三个发布配置
  1. Release 全功能
  2. ReleaseMonitor 只包含监控功能
  3. ReleaseNetwork 只包含组网功能
2、发布脚本
publish-extends.bat   生成web和winform
publish.bat  发布主程序

public/publish 目录下查看已发布程序

支持作者

请作者喝一杯咖啡,使其更有精力更新代码

Description
.NET8、p2p打洞(tcp+udp),和异地组网(点对点,点对网,网对网),和内网穿透,.NET8 NAT transfer, Virtual Private Network,P2P Tunnel
Readme GPL-3.0 430 MiB
Languages
JavaScript 74.6%
C# 19.5%
Vue 4.1%
HTML 0.9%
Shell 0.4%
Other 0.4%