免责声明:
⽂中所涉及的技术、思路和⼯具仅供以安全为⽬的的学习交流使⽤,任何⼈不得将其⽤于⾮法⽤途以及盈利等⽬的,否则后果⾃⾏承担。所有渗透都需获取授权!
Fingers:app="Ollama" && is_domain=false
根据Ollma官方接口可知
GET /api/tags HTTP/1.1
Host: 127.0.0.1
只需借助测绘,通过脚本提取对应model以及quantization_level即可
id: OllmaDS-informatin-schemainfo:name: OllmaDS-informatin-schemaauthor: xxxseverity: infodescription: descriptionreference:- 127.0.0.1metadata:fofa-query: ""tags: ollmahttp:- method: GETpath:- "{{BaseURL}}/api/tags"extractors:- type: jsonpart: bodyjson: - '.models[] | {model: .model, quantization_level: .details.quantization_level}'
id: OllmaDS-binfo:name: OllmaDS-bauthor: xxxseverity: infodescription: descriptionreference:- 127.0.0.1metadata:fofa-query: ""tags: ollmahttp:- method: GETpath:- "{{BaseURL}}/api/tags"matchers-condition: andmatchers:- type: dsldsl:- 'contains_any(body,"671b")'
id: OllmaDS-Finfo:name: OllmaDS-Fauthor: xxxseverity: infodescription: descriptionreference:- 127.0.0.1metadata:fofa-query: ""tags: ollmahttp:- method: GETpath:- "{{BaseURL}}/api/tags"matchers-condition: andmatchers:- type: dsldsl:- 'contains_any(body,"F32")'
可根据自身需求,自行修改上述脚本。方便进一步调用,我们可以使用LLM或其他开源工具即可。
这里以ollama-web-management为例
Ref:
https://github.com/lemonit-eric-mao/ollama-web-management
下载脚本,本地启动对应服务。
WebUI访问:http://127.0.0.1:11345/frontend/index/index.html
在此输入服务端调用地址:
实测速度慢很多,当然也可以用其他在线或开源工具调用。
原创 白帽子左一