Skip to content

0xbug/biu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

构建

go mod download
go build -o biu-cli ./cmd/biu-cli

安装(从 GitHub)

go install github.com/0xbug/biu-cli/cmd/biu-cli@latest

默认会安装到 $(go env GOPATH)/bin,可执行文件名为 biu-cli

初始化配置

访问个人中心->安全设置 生成新的API密钥

biu-cli -ak API密钥 -host biu地址(https://x.x.x.x)

进阶配置

BIU_AK="API密钥"
BIU_HOST="biu地址"
BIU_PORTS="新建项目使用的端口范围"

使用

  • JSON 输出 默认输出为表格/文本格式,添加 -json 后会输出结构化 JSON,便于脚本处理。
biu-cli -json
biu-cli -ip 1.1.1.1 -json
biu-cli -ip 1.1.1.1/24 -json
biu-cli -pid 项目ID -pv -json
cat ip.txt|biu-cli -s -json
  • 查询IP
biu-cli -ip 1.1.1.1
biu-cli -ip 1.1.1.1/24
  • 查询多个IP或域名
cat ip.txt|biu-cli -s
  • 进入查询模式
biu-cli -s
  • 查看已有项目
biu-cli
  • 创建项目
biu-cli -pnew 项目名称
  • 添加目标到已有项目中
cat ip.txt|biu-cli -pid 项目ID
cat domain.txt|biu-cli -pid 项目ID

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages