项目地址: https://github.com/inbug-team/SweetBabyScan 0x01 工具定位 内网资产探测、通用漏洞扫描、弱口令爆破 0x02 工具截图
端口扫描可以写端口号、端口范围或者常用端口类型 ./SbScan -h 192.168.188.0/24 -p 80,22,81-89
0x03 编译 递归克隆项目,获取最新poc git clone https://github.com/inbug-team/SweetBabyScan.git --recursive 初始化module
Windows set GOOS=windows set GOARCH=amd64 go build -ldflags='-s -w' -trimpath -o SbScan.exe
set GOOS=windows set GOARCH=386 go build -ldflags='-s -w' -trimpath -o SbScan.exe Mac or Linux
0x04 运行 自动扫描 ./SbScan 根据指定IP段扫描
根据指定IP+端口扫描 ./SbScan -h=192.168.188.1/24 -p=tiny ./SbScan -h=192.168.188.1/24,10.0.0.1/16 -p=22,80,443 修改并发提高性能
跳过主机存活检测(nsh)、POC漏洞探测(nsp)、弱口令爆破(nsw)、高危漏洞探测(nsv) ./SbScan -h=192.168.188.1/24 -p=22,80 --nsh --nsp --nsw --nsv 指定IP文件、密码文件、账号文件、输出excel文件、指定爆破协议
0x05 参数 ./SbScan --help
Usage: ./SbScan [flags]
Flags: -il, -isLog 是否显示日志 (default true) -is, -isScreen 是否启用截图 (default true) -sf, -saveFile string 指定保存文件路径[以.xlsx结尾] -h, -host string 检测网段或者txt文件[以.txt结尾,一行一组回车换行] (default '192.168.0.0/16,172.16.0.0/12,10.0.0.0/8') -p, -port string 端口范围:tiny[精简]、normal[常用]、database[数据库]、caffe[咖啡厅/酒店/机场]、iot[物联网]、all[全部]、自定义 (default 'tiny') -pt, -protocol string 端口范围:tcp、udp、tcp+udp (default 'tcp+udp') -hb, -hostBlack string 排除网段 -msh, -methodScanHost string 验存方式:PING、ICMP (default 'PING') -wsh, -workerScanHost int 存活并发 (default 250) -tsh, -timeOutScanHost int 存活超时 (default 3) -r, -rarity int 优先级 (default 10) -wsp, -workerScanPort int 扫描并发 (default 250) -tspc, -timeOutScanPortConnect int 端口扫描连接超时 (default 3) -tsps, -timeOutScanPortSend int 端口扫描发包超时 (default 3) -tspr, -timeOutScanPortRead int 端口扫描读取超时 (default 3) -inpo, -isNULLProbeOnly 使用空探针 -iuap, -isUseAllProbes 使用全量探针 -wss, -workerScanSite int 爬虫并发 (default 16) -tss, -timeOutScanSite int 爬虫超时 (default 3) -ts, -timeOutScreen int 截图超时 (default 60) -lpn, -listPocNuclei 是否列举Poc Nuclei -lpx, -ListPocXray 是否列举Poc Xray -fpn, -filterPocName string 筛选POC名称,多个关键字英文逗号隔开 -fvl, -filterVulLevel string 筛选POC严重等级:critical[严重] > high[高危] > medium[中危] > low[低危] > info[信息]、unknown[未知]、all[全部],多个关键字英文逗号隔开 -tspn, -timeOutScanPocNuclei int PocNuclei扫描超时 (default 6) -wsPoc, -workerScanPoc int Poc并发 (default 100) -wsw, -workerScanWeak int 爆破并发 (default 6) -gsw, -groupScanWeak int 爆破分组 (default 10) -tsw, -timeOutScanWeak int 爆破超时 (default 6) -nsh, -noScanHost 跳过主机存活检测 -nsw, -noScanWeak 跳过弱口令爆破 -nsp, -noScanPoc 跳过POC漏洞验证 -nsv, -noScanVul 跳过高危系统漏洞探测 -ssw, -serviceScanWeak string 指定爆破协议:ssh,smb,snmp,sqlserver,mysql,mongodb,postgres,redis,ftp,clickhouse,elasticsearch,多个协议英文逗号分隔,默认全部 -au, -aUser string 追加弱口令账号字典[以.txt结尾] -ap, -aPass string 追加弱口令密码字典[以.txt结尾] -wu, -wUser string 覆盖弱口令账号字典[以.txt结尾] -wp, -wPass string 覆盖弱口令密码字典[以.txt结尾] 0x06 更新日志
0x07 参考项目 致谢 nuclei:https://github.com/projectdiscovery/nuclei xray:https://github.com/chaitin/xray |
|