【文件属性】:
文件名称:goBox:GO沙箱以运行不受信任的代码
文件大小:4KB
文件格式:ZIP
更新时间:2021-03-10 07:02:40
golang security sandbox security-tools systemcalls
goBox
GO沙箱以运行不受信任的代码。
goBox使用Ptrace挂钩到READ系统调用,使您可以选择在执行之前接受或拒绝系统调用。
用法
Usage of ./gobox:
gobox [FLAGS] command
flags:
-h Print Usage.
-n value
A glob pattern for automatically blocking file reads.
-y value
A glob pattern for automatically allowing file reads.
用例
您想安装任何东西
> gobox -n " /etc/password.txt " npm install sketchy-module
BLOCKED READ on /etc/password.t
【文件预览】:
goBox-master
----go.mod(80B)
----go.sum(163B)
----pass.txt(8B)
----README.md(1KB)
----Makefile(220B)
----gobox.go(3KB)
----.gitignore(17B)
----gobox_test.go(2KB)