A cross-platform programmable network tool
contains some experimental features
--serverLog format
{"bytes":"2190","dst":"8.8.8.8:53","from":"34.105.110.232:49514","network":"tcp","time":"2024-02-26T09:56:12Z"}
{"bytes":"2237","dst":"8.8.8.8:53","from":"34.105.110.232:49331","network":"udp","time":"2024-02-26T09:57:12Z"}
You can tally traffic from --serverLog, for example by using a jb
script to sum up the traffic from the /tmp/brook.log
log file.
jb 'var s=0; read_file("/tmp/brook.log").trim().split("\n").map(v=>JSON.parse(v)).forEach(v=> s+= v.bytes ? parseInt(v.bytes) : 0); echo(s)'
We known this:
brook server -l :9999 -p apple
Then, create a file /root/any_name
:
server -l :9999 -p apple
We can run it like this:
brook /root/any_name
含一些实验性功能
--serverLog 格式如下
{"bytes":"2190","dst":"8.8.8.8:53","from":"34.105.110.232:49514","network":"tcp","time":"2024-02-26T09:56:12Z"}
{"bytes":"2237","dst":"8.8.8.8:53","from":"34.105.110.232:49331","network":"udp","time":"2024-02-26T09:57:12Z"}
可以从 --serverLog 里统计流量,比如用 jb 脚本统计 /tmp/brook.log
日志里的流量总和
jb 'var s=0; read_file("/tmp/brook.log").trim().split("\n").map(v=>JSON.parse(v)).forEach(v=> s+= v.bytes ? parseInt(v.bytes) : 0); echo(s)'
我们知道这样:
brook server -l :9999 -p apple
现在, 创建一个文件 /root/any_name
:
server -l :9999 -p apple
我们就可以这样:
brook /root/any_name
--script same as GUI
https://txthinking.github.io/brook/
https://txthinking.github.io/brook/
🇬🇧 CLI Documentation 🇨🇳 CLI 文档
🇬🇧 GUI Documentation 🇨🇳 GUI 文档
Programmable
in_httprequest:
in_dnsquery:out:
brook module:
CLI
GUI
CLI
GUI
CLI
brook dns
renamed to brook dnsserveroverbrook
brook dnsserver
new subcommandbrook completion
new subcommandbrook markdown
new subcommandbrook manpage
new subcommandGUI
Capture me
new feature: You can try to see if your packet capture tool can capture this standard HTTP requestMITM
tentatively changed to strict address matching mode, and supports HTTP/2.0Everyone, every region, every time, you should follow this channel with the news here as the first news. Unless you are an adventurer.
ZH
命令行
brook dns
重命名为 brook dnsserveroverbrook
brook dnsserver
新子命令brook completion
新的子命令brook markdown
新的子命令brook manpage
新的子命令图形客户端
Capture me
新功能: 你可以试试你的抓包工具能不能捕获这个标准 HTTP 请求MITM
暂定改为严格匹配模式,并支持 HTTP/2.0每个人,每个地区,每个时间,你应该关注此 频道 以这里的消息作为第一消息。除非你是冒险者。