tiagorlampert / CHAOS

:fire: CHAOS is a free and open-source Remote Administration Tool that allow generate binaries to control remote operating systems.
MIT License
2.35k stars 522 forks source link

在windows下部署CHAOS平台 #132

Open DuBaiJunCS opened 1 year ago

DuBaiJunCS commented 1 year ago

0. 安装 GO环境 https://blog.csdn.net/Mr_Dong_cson/article/details/130411887

0.5. 安装minw64 将 mingw64\bin 写入系统变量

image

gcc -v 测试配置是否成功

1.克隆CHAOS项目 Git clone https://github.com/tiagorlampert/CHAOS

2. 终端进入项目目录

image

终端执行命令下载项目依赖 go mod download

终端执行命令设置环境 set PORT=8080 set SQLITE_DATABASE = chaos

3. 在项目下新建Database目录 其下新建名为chaos的sqlite数据库文件

image

4. 在chaos路径 go run cmd/chaos/main.go

image

image

出现这些就运行成功,

若在generate操作返回 exec: "sh": executable file not found in %PATH%: 请将sh.exe 配置到系统环境变量 (推荐使用Git\bin中的sh.exe)