Situatie
Solutie
Pasi de urmat
. Instalare Ollama pe Kali
curl -fsSL https://ollama.com/install.sh | sh
sudo systemctl enable ollama
sudo systemctl start ollama
Modele Recomandate pentru Pentest
| Comandă | Descriere |
| ollama pull mistral | Model general – analiză text/rapoarte |
| ollama pull qwen2.5-coder:7b | Optim pentru scripting și cod pentest |
| ollama pull qwen2.5-coder:3b | Rapid – pentru sugestii in-line VS Code |
| ollama pull qwen2.5:14b | Analiză complexă / CTF writeups |
Creare Modelfile pentru asistent pentest:
nano ~/Modelfile.pentester
Conținut Modelfile:
FROM mistral
SYSTEM “””Esti un expert in penetration testing si securitate ofensiva.
Ajuti la analiza vulnerabilitatilor, scrierea de exploituri,
si documentarea testelor de penetrare. Raspunzi tehnic si concis.”””
PARAMETER temperature 0.3
PARAMETER top_p 0.9
Creare model:
ollama create pentester -f ~/Modelfile.pentester
ollama run pentester # test interactiv
Configurare Ollama Accesibil din Host Windows
# In /etc/systemd/system/ollama.service.d/override.conf:
[Service]
Environment=”OLLAMA_HOST=0.0.0.0:11434″
sudo systemctl daemon-reload
sudo systemctl restart ollama
Acces din Windows: http://127.0.0.1:11434 (via port forwarding 11434 → 11434)
Leave A Comment?