lachlanharrisdev/gonetsim
GitHub: lachlanharrisdev/gonetsim
GoNetSim 是 INetSim 的现代Go语言实现,用于在受控环境中模拟常见互联网服务(如DNS、HTTP、HTTPS),适用于恶意软件分析和安全研究。
Stars: 0 | Forks: 0
GoNetSim
Go 网络模拟器。作为 inetsim 项目的精神继承者(非官方),提供了一套在受控环境中模拟常见互联网服务的工具。
探索文档 »
[](https://github.com/lachlanharrisdev/gonetsim/stargazers)
[](https://github.com/lachlanharrisdev/gonetsim/?tab=Apache-2.0-1-ov-file)
[](https://github.com/lachlanharrisdev/gonetsim/)
[](https://github.com/lachlanharrisdev/gonetsim/actions)
[](https://github.com/lachlanharrisdev/gonetsim/releases/latest)
[](https://goreportcard.com/report/github.com/lachlanharrisdev/gonetsim)
## 使用方法 ### 安装 安装说明可在[此处](https://gonetsim.lachlanharris.dev/guides/installation)找到。 ### 快速开始 运行 `gonetsim` 会根据默认配置文件启动所有服务 ``` gonetsim ``` 或者,您可以指定要运行的单个服务 ``` gonetsim dns gonetsim http gonetsim https ```
## 配置 GoNetSim 使用 TOML 配置文件进行大部分配置,而不是强制记忆许多命令行参数。 首次运行时,如果没有找到配置文件,GoNetSim 会在 `$XDG_CONFIG_HOME/gonetsim/config.toml` 生成一个带注释的默认配置文件并使用它。 默认搜索位置: - `/etc/gonetsim/gonetsim.toml` - `$XDG_CONFIG_HOME/gonetsim/config.toml`(通常为 `~/.config/gonetsim/config.toml`) - `./gonetsim.toml` 要使用特定的配置文件: ``` gonetsim --config /path/to/gonetsim.toml ``` 有关配置的更多信息,请参阅[配置参考](https://gonetsim.lachlanharris.dev/references/configuration)
## Docker `docker/` 中有一个轻量级的无发行版容器设置。如果您需要长时间运行,或者您的系统与提供的二进制文件不兼容,这是推荐的安装方法。 完整的参考指南请参阅 [Docker 指南](https://gonetsim.lachlanharris.dev/guide/docker)
## 贡献 GoNetSim 遵循大多数标准的贡献约定,欢迎任何贡献,包括文档改进、bug 分类/修复、小功能或[待处理问题](https://github.com/lachlanharrisdev/gonetsim/issues?q=is%3Aissue)的任何更新。有关贡献的更多信息,请参阅 [CONTRIBUTING.md](https://github.com/lachlanharrisdev/gonetsim/blob/main/.github/CONTRIBUTING.md)。 ### Codespaces GoNetSim 完全支持 GitHub Codespaces。建议用于小型更改或没有开发环境的设备。您可以使用下面的按钮在基于 Web 的编辑器中打开仓库并开始使用。 [](https://codespaces.new/lachlanharrisdev/gonetsim?quickstart=1) ### 开发容器 我们还完全支持 Dev Containers。这些提供可重现的开发环境,自动隔离项目并安装官方支持的工具链。 点击下面的按钮将在本地机器上打开 VS Code,克隆此仓库并自动在开发容器中打开它。 [](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/lachlanharrisdev/gonetsim) ### 本地开发 有关本地开发,请参阅 [CONTRIBUTING.md](https://github.com/lachlanharrisdev/gonetsim/blob/main/.github/CONTRIBUTING.md)。同样,我们遵循大多数约定,因此本地开发涉及标准的 fork-PR-merge 流程。