evil-ollama 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,330 @@
1
+ Metadata-Version: 2.1
2
+ Name: evil-ollama
3
+ Version: 3.0.0
4
+ Summary: ๐Ÿฆ™ Exposed Ollama Instance Hunter, Proxy & API Manipulation Tool
5
+ Home-page: https://github.com/evogix/Evil-Ollama
6
+ Author: evogix
7
+ Author-email:
8
+ Project-URL: Documentation, https://github.com/evogix/Evil-Ollama/blob/main/DOCS.md
9
+ Project-URL: Source, https://github.com/evogix/Evil-Ollama
10
+ Keywords: ollama,security,bug-bounty,llm,ai,pentesting,red-team
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Information Technology
13
+ Classifier: Topic :: Security :: Penetration Testing
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: License :: OSI Approved :: MIT License
21
+ Classifier: Operating System :: OS Independent
22
+ Requires-Python: >=3.8
23
+ Description-Content-Type: text/markdown
24
+ Requires-Dist: aiohttp>=3.8.0
25
+ Requires-Dist: flask>=2.0.0
26
+ Requires-Dist: requests>=2.28.0
27
+
28
+ ```
29
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
30
+ โ•‘ โ•‘
31
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•‘
32
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ•‘
33
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ•‘
34
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ• โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ โ•‘
35
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ•‘
36
+ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ• โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ• โ•‘
37
+ โ•‘ โ•‘
38
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•‘
39
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ•‘
40
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ•‘
41
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ โ•‘
42
+ โ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ•‘
43
+ โ•‘ โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ• โ•‘
44
+ โ•‘ โ•‘
45
+ โ•‘ ๐Ÿ”ฅ Exposed Ollama Instance Hunter v3.0 ๐Ÿ”ฅ โ•‘
46
+ โ•‘ Find ยท Exploit ยท Proxy ยท PWN โ•‘
47
+ โ•‘ โ•‘
48
+ โ•‘ [ For Authorized Security Testing Only ] โ•‘
49
+ โ•‘ โ•‘
50
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
51
+ ```
52
+
53
+ # ๐Ÿฆ™ EVIL-OLLAMA
54
+
55
+ > **Next-Gen Exposed Ollama Instance Finder, Vulnerability Scanner & Proxy Tool**
56
+ >
57
+ > Find publicly exposed Ollama LLM instances across the internet, scan for vulnerabilities, proxy through them, and more.
58
+
59
+ ```
60
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
61
+ โ•‘ [+] TARGET: Any exposed Ollama instance โ•‘
62
+ โ•‘ [+] METHOD: Async TCP ยท DNS ยท CT Logs ยท Shodan ยท Censys ยท FOFA โ•‘
63
+ โ•‘ [+] VULN SCAN: Auth ยท CVE-2024-37032 ยท SSRF ยท CORS ยท Metrics โ•‘
64
+ โ•‘ [+] PROXY: OpenAI-compatible ยท Chat ยท Generate โ•‘
65
+ โ•‘ [+] STATUS: ACTIVE โ•‘
66
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
67
+ ```
68
+
69
+ ---
70
+
71
+ ## ๐Ÿ”ฅ FEATURES
72
+
73
+ | Category | Features |
74
+ |----------|----------|
75
+ | **๐Ÿ” SCANNING** | Random IP (weighted) ยท CIDR ยท IP List ยท DNS Discovery ยท CT Logs ยท Shodan ยท Censys ยท FOFA ยท **9 methods total** |
76
+ | **๐Ÿ’€ VULNERABILITY** | Auth check ยท CVE-2024-37032 (RCE) ยท Model Create/Delete ยท CORS ยท SSRF ยท Metrics ยท Info Disclosure ยท Timing ยท **10 checks** |
77
+ | **๐Ÿ”Œ PROXY** | OpenAI SDK compatible ยท Streaming ยท Full API forward ยท All HTTP methods |
78
+ | **๐Ÿ’ฌ CHAT** | Interactive ยท Batch mode ยท System prompts ยท Temperature ยท Raw API |
79
+ | **๐Ÿ”Ž FINGERPRINT** | 18 endpoints ยท GPU detection ยท Model analysis ยท Size calc ยท Running models |
80
+ | **๐Ÿ“ฆ MODELS** | List ยท Pull info ยท Deep analyze ยท Size breakdown |
81
+ | **๐Ÿ“Š EXPORT** | HTML (beautiful) ยท CSV ยท JSON ยท Vuln stats ยท Geo distribution |
82
+ | **๐Ÿค– AUTO-PWN** | Scan โ†’ Vuln Scan โ†’ Geolocate โ†’ Proxy โ†’ Report โ€” **one command** |
83
+ | **๐Ÿ“ก MONITOR** | CLI-only daemon ยท Telegram alerts ยท Auto-export |
84
+
85
+ ---
86
+
87
+ ## โšก QUICK START
88
+
89
+ ### ๐Ÿ›  Installation
90
+
91
+ ```bash
92
+ git clone https://github.com/evogix/Evil-Ollama
93
+ cd Evil-Ollama
94
+ pip install aiohttp flask requests
95
+ chmod +x launcher.sh
96
+ ```
97
+
98
+ ### ๐ŸŽฏ Basic Scan
99
+
100
+ ```bash
101
+ # Scan 10,000 random IPs for Ollama instances
102
+ ./launcher.sh scan --random 10000
103
+
104
+ # Scan with geolocation + export
105
+ ./launcher.sh scan --random 10000 --geo --export html --notify
106
+ ```
107
+
108
+ ---
109
+
110
+ ## ๐Ÿ’€ COMMANDS
111
+
112
+ ### ๐Ÿ” SCANNING
113
+
114
+ ```bash
115
+ # Random IP scan (weighted for real-world density)
116
+ ./launcher.sh scan --random 10000
117
+
118
+ # CIDR range scan
119
+ ./launcher.sh scan --cidr 0.0.0.0/8
120
+
121
+ # DNS discovery โ€” find ollama.example.com, ai.example.com, etc.
122
+ ./launcher.sh scan --dns example.com
123
+
124
+ # Certificate Transparency log discovery
125
+ ./launcher.sh scan --ct example.com
126
+
127
+ # Internet DB search
128
+ ./launcher.sh scan --shodan API_KEY
129
+ ./launcher.sh scan --censys ID:SECRET
130
+ ./launcher.sh scan --fofa EMAIL:KEY
131
+
132
+ # Scan with extras
133
+ ./launcher.sh scan --random 5000 --geo --export html --notify
134
+ ```
135
+
136
+ ### ๐Ÿ’€ VULNERABILITY SCANNING
137
+
138
+ ```bash
139
+ # Scan a specific instance
140
+ ./launcher.sh vuln --target 1.2.3.4:11434
141
+
142
+ # Scan ALL found instances
143
+ ./launcher.sh vuln --all
144
+
145
+ # Exploit a specific CVE
146
+ ./launcher.sh exploit --cve CVE-2024-37032 --target 1.2.3.4:11434
147
+ ```
148
+
149
+ Vulnerability checks:
150
+
151
+ ```
152
+ ๐Ÿ’€ [CRITICAL] CVE-2024-37032 โ€” RCE via Crafted Model Import
153
+ ๐Ÿ’€ [HIGH ] No Authentication โ€” Open API access
154
+ ๐Ÿ’€ [HIGH ] Unauthenticated Model Creation
155
+ ๐Ÿ’€ [HIGH ] Unauthenticated Model Deletion
156
+ ๐Ÿ’€ [HIGH ] CVE-2024-39721 โ€” SSRF in Model Pulling
157
+ ๐Ÿ’€ [MEDIUM ] CORS Misconfiguration
158
+ ๐Ÿ’€ [MEDIUM ] Prometheus Metrics Exposed
159
+ ๐Ÿ’€ [LOW ] Server Information Disclosure
160
+ ๐Ÿ’€ [LOW ] No CSRF Protection
161
+ ๐Ÿ’€ [LOW ] Response Timing Leak
162
+ ```
163
+
164
+ ### ๐Ÿ”Œ PROXY (OpenAI Compatible)
165
+
166
+ ```bash
167
+ # Start proxy to remote Ollama
168
+ ./launcher.sh proxy --target 1.2.3.4:11434 --port 8080
169
+
170
+ # Use with OpenAI SDK:
171
+ # from openai import OpenAI
172
+ # client = OpenAI(base_url="http://127.0.0.1:8080/v1/", api_key="ollama")
173
+ ```
174
+
175
+ ### ๐Ÿ’ฌ INTERACTIVE CHAT
176
+
177
+ ```bash
178
+ # Chat with a remote model
179
+ ./launcher.sh chat --target 1.2.3.4:11434
180
+
181
+ # Batch execute prompts from file
182
+ ./launcher.sh chat --batch prompts.txt --target 1.2.3.4:11434
183
+
184
+ # Chat commands: /help, /models, /clear, /model N, /system, /temp, /raw, /info, /export
185
+ ```
186
+
187
+ ### ๐Ÿ”Ž DEEP FINGERPRINT
188
+
189
+ ```bash
190
+ # Fingerprint a single instance
191
+ ./launcher.sh fingerprint --target 1.2.3.4:11434
192
+
193
+ # Fingerprint ALL found instances
194
+ ./launcher.sh fingerprint --all
195
+ ```
196
+
197
+ Checks 18 endpoints including: `/api/tags`, `/api/version`, `/api/ps`, `/api/show`, `/api/blobs`, `/api/pull`, `/api/push`, `/api/create`, `/api/delete`, `/api/copy`, `/api/embed`, `/v1/models`, `/docs`, `/metrics`, `/debug`, `/health`, `/status`
198
+
199
+ ### ๐Ÿ“ฆ MODEL OPERATIONS
200
+
201
+ ```bash
202
+ # List models with details
203
+ ./launcher.sh models --target 1.2.3.4:11434
204
+
205
+ # Pull model info/config
206
+ ./launcher.sh models --pull 1.2.3.4:11434 llama3.2
207
+
208
+ # Deep analyze a model
209
+ ./launcher.sh models --analyze 1.2.3.4:11434 llama3.2
210
+ ```
211
+
212
+ ### ๐Ÿ“Š EXPORT
213
+
214
+ ```bash
215
+ ./launcher.sh export --format html # Beautiful HTML report with geo & vuln stats
216
+ ./launcher.sh export --format csv # CSV for analysis
217
+ ./launcher.sh export --format json # Raw JSON
218
+ ./launcher.sh export --format all # All formats
219
+ ```
220
+
221
+ ### ๐Ÿค– AUTO-PWN (One Command)
222
+
223
+ ```bash
224
+ # Scan โ†’ Vuln Scan โ†’ Geolocate โ†’ Proxy โ†’ Report
225
+ ./launcher.sh autopwn --random 5000
226
+ ```
227
+
228
+ ### ๐Ÿ“ก MONITOR DAEMON
229
+
230
+ ```bash
231
+ # Continuous scanning (CLI only, no web)
232
+ ./launcher.sh monitor --interval 3600 --random 5000 --notify --export html
233
+ ```
234
+
235
+ ### โš™๏ธ CONFIGURATION
236
+
237
+ ```bash
238
+ ./launcher.sh config --show # Show config
239
+ ./launcher.sh config --telegram-token "BOT_TOKEN" # Telegram alerts
240
+ ./launcher.sh config --telegram-chat "CHAT_ID"
241
+ ./launcher.sh config --shodan-key "API_KEY"
242
+ ./launcher.sh config --set scan_timeout 3 # Custom setting
243
+ ```
244
+
245
+ ---
246
+
247
+ ## ๐Ÿ“Š SAMPLE OUTPUT
248
+
249
+ ```
250
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
251
+ โ•‘ ๐Ÿฆ™ EVIL-OLLAMA v3.0 โ•‘
252
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
253
+
254
+ [12:30:01] [โ–ถ STEP ] Step 1/4: Scanning 5000 random IPs...
255
+ [12:30:01] [๐ŸŽฏ INFO] Scanning 5000 hosts on port 11434 (concurrency: 1000)
256
+ [โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 45% | 2250/5000 | 850/s | Found: 12 | ETA: 3.2s
257
+ [12:30:07] [๐Ÿฆ™ FOUND] 203.0.113.42:11434 | v0.1.32 | llama3.2, mistral, codellama
258
+ [12:30:07] [๐Ÿฆ™ FOUND] 198.51.100.73:11434 | v0.3.0 | llama3.1, nomic-embed-text
259
+ [...]
260
+
261
+ [12:30:10] [โ–ถ STEP ] Step 2/4: Geolocating...
262
+ [12:30:10] [๐Ÿ“ GEO ] 203.0.113.42 โ†’ San Francisco, US | DigitalOcean
263
+ [12:30:11] [๐Ÿ“ GEO ] 198.51.100.73 โ†’ London, UK | Hetzner
264
+
265
+ [12:30:11] [โ–ถ STEP ] Step 3/4: Vulnerability scanning...
266
+ [12:30:11] [๐Ÿ”ด VULN] 203.0.113.42:11434
267
+ ๐Ÿ’€ [HIGH ] No Authentication Required
268
+ ๐Ÿ’€ [CRITICAL] Potential RCE via Crafted Model Import (CVE-2024-37032)
269
+ ๐Ÿ’€ [HIGH ] Unauthenticated Model Creation
270
+
271
+ [12:30:14] [โ–ถ STEP ] Step 4/4: Generating report...
272
+ [12:30:14] [๐Ÿ“„ OK ] HTML report saved: evilollama_report.html (45.2 KB)
273
+
274
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
275
+ โ•‘ ๐Ÿš€ AUTO-PWN COMPLETE โ•‘
276
+ โ•‘ Instances found: 7 โ•‘
277
+ โ•‘ Total models: 23 โ•‘
278
+ โ•‘ Vulnerabilities: 12 โ•‘
279
+ โ•‘ CVEs detected: 5 โ•‘
280
+ โ•‘ Report: evilollama_report.html โ•‘
281
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
282
+
283
+ [12:30:15] [๐Ÿ”Œ PROXY] Proxy โ†’ 127.0.0.1:9090 โ†’ 203.0.113.42:11434
284
+ ```
285
+
286
+ ---
287
+
288
+ ## ๐Ÿ›ก๏ธ CVE DATABASE
289
+
290
+ | CVE ID | Severity | CVSS | Description | Affected Versions |
291
+ |--------|----------|------|-------------|-------------------|
292
+ | CVE-2024-37032 | **CRITICAL** | 9.1 | RCE via crafted model file (path traversal) | < 0.1.47 |
293
+ | CVE-2024-39720 | **HIGH** | 7.5 | Prompt injection via crafted system prompt | < 0.1.34 |
294
+ | CVE-2024-39721 | **HIGH** | 7.5 | SSRF in model pulling mechanism | < 0.1.34 |
295
+ | CVE-2024-39722 | **HIGH** | 7.3 | Path traversal in API endpoints | < 0.1.34 |
296
+ | CVE-2025-23104 | **HIGH** | 8.2 | API authentication bypass in /api/pull | < 0.3.0 |
297
+
298
+ ---
299
+
300
+ ## ๐Ÿ“‹ REQUIREMENTS
301
+
302
+ ```
303
+ pip install aiohttp flask requests
304
+ ```
305
+
306
+ ---
307
+
308
+ ## โš ๏ธ LEGAL DISCLAIMER
309
+
310
+ ```
311
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
312
+ โ•‘ โ•‘
313
+ โ•‘ This tool is for AUTHORIZED SECURITY TESTING only. โ•‘
314
+ โ•‘ โ•‘
315
+ โ•‘ Only use on systems you own or have explicit written permission โ•‘
316
+ โ•‘ to test. Unauthorized scanning or exploitation is ILLEGAL. โ•‘
317
+ โ•‘ โ•‘
318
+ โ•‘ The authors assume no liability for misuse. โ•‘
319
+ โ•‘ โ•‘
320
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
321
+ ```
322
+
323
+ ---
324
+
325
+ ```
326
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
327
+ โ•‘ EVIL-OLLAMA v3.0 ยท https://github.com/evogix/Evil-Ollama โ•‘
328
+ โ•‘ For authorized security research & bug bounty purposes only โ•‘
329
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
330
+ ```
@@ -0,0 +1,303 @@
1
+ ```
2
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
3
+ โ•‘ โ•‘
4
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•‘
5
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ•‘
6
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ•‘
7
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ• โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ โ•‘
8
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ•‘
9
+ โ•‘ โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ• โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ• โ•‘
10
+ โ•‘ โ•‘
11
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ•‘
12
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ•‘
13
+ โ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘ โ•‘
14
+ โ•‘ โ–ˆโ–ˆโ•”โ•โ•โ•โ• โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘ โ•‘
15
+ โ•‘ โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘ โ•‘
16
+ โ•‘ โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ•โ•šโ•โ• โ•šโ•โ• โ•‘
17
+ โ•‘ โ•‘
18
+ โ•‘ ๐Ÿ”ฅ Exposed Ollama Instance Hunter v3.0 ๐Ÿ”ฅ โ•‘
19
+ โ•‘ Find ยท Exploit ยท Proxy ยท PWN โ•‘
20
+ โ•‘ โ•‘
21
+ โ•‘ [ For Authorized Security Testing Only ] โ•‘
22
+ โ•‘ โ•‘
23
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
24
+ ```
25
+
26
+ # ๐Ÿฆ™ EVIL-OLLAMA
27
+
28
+ > **Next-Gen Exposed Ollama Instance Finder, Vulnerability Scanner & Proxy Tool**
29
+ >
30
+ > Find publicly exposed Ollama LLM instances across the internet, scan for vulnerabilities, proxy through them, and more.
31
+
32
+ ```
33
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
34
+ โ•‘ [+] TARGET: Any exposed Ollama instance โ•‘
35
+ โ•‘ [+] METHOD: Async TCP ยท DNS ยท CT Logs ยท Shodan ยท Censys ยท FOFA โ•‘
36
+ โ•‘ [+] VULN SCAN: Auth ยท CVE-2024-37032 ยท SSRF ยท CORS ยท Metrics โ•‘
37
+ โ•‘ [+] PROXY: OpenAI-compatible ยท Chat ยท Generate โ•‘
38
+ โ•‘ [+] STATUS: ACTIVE โ•‘
39
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
40
+ ```
41
+
42
+ ---
43
+
44
+ ## ๐Ÿ”ฅ FEATURES
45
+
46
+ | Category | Features |
47
+ |----------|----------|
48
+ | **๐Ÿ” SCANNING** | Random IP (weighted) ยท CIDR ยท IP List ยท DNS Discovery ยท CT Logs ยท Shodan ยท Censys ยท FOFA ยท **9 methods total** |
49
+ | **๐Ÿ’€ VULNERABILITY** | Auth check ยท CVE-2024-37032 (RCE) ยท Model Create/Delete ยท CORS ยท SSRF ยท Metrics ยท Info Disclosure ยท Timing ยท **10 checks** |
50
+ | **๐Ÿ”Œ PROXY** | OpenAI SDK compatible ยท Streaming ยท Full API forward ยท All HTTP methods |
51
+ | **๐Ÿ’ฌ CHAT** | Interactive ยท Batch mode ยท System prompts ยท Temperature ยท Raw API |
52
+ | **๐Ÿ”Ž FINGERPRINT** | 18 endpoints ยท GPU detection ยท Model analysis ยท Size calc ยท Running models |
53
+ | **๐Ÿ“ฆ MODELS** | List ยท Pull info ยท Deep analyze ยท Size breakdown |
54
+ | **๐Ÿ“Š EXPORT** | HTML (beautiful) ยท CSV ยท JSON ยท Vuln stats ยท Geo distribution |
55
+ | **๐Ÿค– AUTO-PWN** | Scan โ†’ Vuln Scan โ†’ Geolocate โ†’ Proxy โ†’ Report โ€” **one command** |
56
+ | **๐Ÿ“ก MONITOR** | CLI-only daemon ยท Telegram alerts ยท Auto-export |
57
+
58
+ ---
59
+
60
+ ## โšก QUICK START
61
+
62
+ ### ๐Ÿ›  Installation
63
+
64
+ ```bash
65
+ git clone https://github.com/evogix/Evil-Ollama
66
+ cd Evil-Ollama
67
+ pip install aiohttp flask requests
68
+ chmod +x launcher.sh
69
+ ```
70
+
71
+ ### ๐ŸŽฏ Basic Scan
72
+
73
+ ```bash
74
+ # Scan 10,000 random IPs for Ollama instances
75
+ ./launcher.sh scan --random 10000
76
+
77
+ # Scan with geolocation + export
78
+ ./launcher.sh scan --random 10000 --geo --export html --notify
79
+ ```
80
+
81
+ ---
82
+
83
+ ## ๐Ÿ’€ COMMANDS
84
+
85
+ ### ๐Ÿ” SCANNING
86
+
87
+ ```bash
88
+ # Random IP scan (weighted for real-world density)
89
+ ./launcher.sh scan --random 10000
90
+
91
+ # CIDR range scan
92
+ ./launcher.sh scan --cidr 0.0.0.0/8
93
+
94
+ # DNS discovery โ€” find ollama.example.com, ai.example.com, etc.
95
+ ./launcher.sh scan --dns example.com
96
+
97
+ # Certificate Transparency log discovery
98
+ ./launcher.sh scan --ct example.com
99
+
100
+ # Internet DB search
101
+ ./launcher.sh scan --shodan API_KEY
102
+ ./launcher.sh scan --censys ID:SECRET
103
+ ./launcher.sh scan --fofa EMAIL:KEY
104
+
105
+ # Scan with extras
106
+ ./launcher.sh scan --random 5000 --geo --export html --notify
107
+ ```
108
+
109
+ ### ๐Ÿ’€ VULNERABILITY SCANNING
110
+
111
+ ```bash
112
+ # Scan a specific instance
113
+ ./launcher.sh vuln --target 1.2.3.4:11434
114
+
115
+ # Scan ALL found instances
116
+ ./launcher.sh vuln --all
117
+
118
+ # Exploit a specific CVE
119
+ ./launcher.sh exploit --cve CVE-2024-37032 --target 1.2.3.4:11434
120
+ ```
121
+
122
+ Vulnerability checks:
123
+
124
+ ```
125
+ ๐Ÿ’€ [CRITICAL] CVE-2024-37032 โ€” RCE via Crafted Model Import
126
+ ๐Ÿ’€ [HIGH ] No Authentication โ€” Open API access
127
+ ๐Ÿ’€ [HIGH ] Unauthenticated Model Creation
128
+ ๐Ÿ’€ [HIGH ] Unauthenticated Model Deletion
129
+ ๐Ÿ’€ [HIGH ] CVE-2024-39721 โ€” SSRF in Model Pulling
130
+ ๐Ÿ’€ [MEDIUM ] CORS Misconfiguration
131
+ ๐Ÿ’€ [MEDIUM ] Prometheus Metrics Exposed
132
+ ๐Ÿ’€ [LOW ] Server Information Disclosure
133
+ ๐Ÿ’€ [LOW ] No CSRF Protection
134
+ ๐Ÿ’€ [LOW ] Response Timing Leak
135
+ ```
136
+
137
+ ### ๐Ÿ”Œ PROXY (OpenAI Compatible)
138
+
139
+ ```bash
140
+ # Start proxy to remote Ollama
141
+ ./launcher.sh proxy --target 1.2.3.4:11434 --port 8080
142
+
143
+ # Use with OpenAI SDK:
144
+ # from openai import OpenAI
145
+ # client = OpenAI(base_url="http://127.0.0.1:8080/v1/", api_key="ollama")
146
+ ```
147
+
148
+ ### ๐Ÿ’ฌ INTERACTIVE CHAT
149
+
150
+ ```bash
151
+ # Chat with a remote model
152
+ ./launcher.sh chat --target 1.2.3.4:11434
153
+
154
+ # Batch execute prompts from file
155
+ ./launcher.sh chat --batch prompts.txt --target 1.2.3.4:11434
156
+
157
+ # Chat commands: /help, /models, /clear, /model N, /system, /temp, /raw, /info, /export
158
+ ```
159
+
160
+ ### ๐Ÿ”Ž DEEP FINGERPRINT
161
+
162
+ ```bash
163
+ # Fingerprint a single instance
164
+ ./launcher.sh fingerprint --target 1.2.3.4:11434
165
+
166
+ # Fingerprint ALL found instances
167
+ ./launcher.sh fingerprint --all
168
+ ```
169
+
170
+ Checks 18 endpoints including: `/api/tags`, `/api/version`, `/api/ps`, `/api/show`, `/api/blobs`, `/api/pull`, `/api/push`, `/api/create`, `/api/delete`, `/api/copy`, `/api/embed`, `/v1/models`, `/docs`, `/metrics`, `/debug`, `/health`, `/status`
171
+
172
+ ### ๐Ÿ“ฆ MODEL OPERATIONS
173
+
174
+ ```bash
175
+ # List models with details
176
+ ./launcher.sh models --target 1.2.3.4:11434
177
+
178
+ # Pull model info/config
179
+ ./launcher.sh models --pull 1.2.3.4:11434 llama3.2
180
+
181
+ # Deep analyze a model
182
+ ./launcher.sh models --analyze 1.2.3.4:11434 llama3.2
183
+ ```
184
+
185
+ ### ๐Ÿ“Š EXPORT
186
+
187
+ ```bash
188
+ ./launcher.sh export --format html # Beautiful HTML report with geo & vuln stats
189
+ ./launcher.sh export --format csv # CSV for analysis
190
+ ./launcher.sh export --format json # Raw JSON
191
+ ./launcher.sh export --format all # All formats
192
+ ```
193
+
194
+ ### ๐Ÿค– AUTO-PWN (One Command)
195
+
196
+ ```bash
197
+ # Scan โ†’ Vuln Scan โ†’ Geolocate โ†’ Proxy โ†’ Report
198
+ ./launcher.sh autopwn --random 5000
199
+ ```
200
+
201
+ ### ๐Ÿ“ก MONITOR DAEMON
202
+
203
+ ```bash
204
+ # Continuous scanning (CLI only, no web)
205
+ ./launcher.sh monitor --interval 3600 --random 5000 --notify --export html
206
+ ```
207
+
208
+ ### โš™๏ธ CONFIGURATION
209
+
210
+ ```bash
211
+ ./launcher.sh config --show # Show config
212
+ ./launcher.sh config --telegram-token "BOT_TOKEN" # Telegram alerts
213
+ ./launcher.sh config --telegram-chat "CHAT_ID"
214
+ ./launcher.sh config --shodan-key "API_KEY"
215
+ ./launcher.sh config --set scan_timeout 3 # Custom setting
216
+ ```
217
+
218
+ ---
219
+
220
+ ## ๐Ÿ“Š SAMPLE OUTPUT
221
+
222
+ ```
223
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
224
+ โ•‘ ๐Ÿฆ™ EVIL-OLLAMA v3.0 โ•‘
225
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
226
+
227
+ [12:30:01] [โ–ถ STEP ] Step 1/4: Scanning 5000 random IPs...
228
+ [12:30:01] [๐ŸŽฏ INFO] Scanning 5000 hosts on port 11434 (concurrency: 1000)
229
+ [โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘] 45% | 2250/5000 | 850/s | Found: 12 | ETA: 3.2s
230
+ [12:30:07] [๐Ÿฆ™ FOUND] 203.0.113.42:11434 | v0.1.32 | llama3.2, mistral, codellama
231
+ [12:30:07] [๐Ÿฆ™ FOUND] 198.51.100.73:11434 | v0.3.0 | llama3.1, nomic-embed-text
232
+ [...]
233
+
234
+ [12:30:10] [โ–ถ STEP ] Step 2/4: Geolocating...
235
+ [12:30:10] [๐Ÿ“ GEO ] 203.0.113.42 โ†’ San Francisco, US | DigitalOcean
236
+ [12:30:11] [๐Ÿ“ GEO ] 198.51.100.73 โ†’ London, UK | Hetzner
237
+
238
+ [12:30:11] [โ–ถ STEP ] Step 3/4: Vulnerability scanning...
239
+ [12:30:11] [๐Ÿ”ด VULN] 203.0.113.42:11434
240
+ ๐Ÿ’€ [HIGH ] No Authentication Required
241
+ ๐Ÿ’€ [CRITICAL] Potential RCE via Crafted Model Import (CVE-2024-37032)
242
+ ๐Ÿ’€ [HIGH ] Unauthenticated Model Creation
243
+
244
+ [12:30:14] [โ–ถ STEP ] Step 4/4: Generating report...
245
+ [12:30:14] [๐Ÿ“„ OK ] HTML report saved: evilollama_report.html (45.2 KB)
246
+
247
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
248
+ โ•‘ ๐Ÿš€ AUTO-PWN COMPLETE โ•‘
249
+ โ•‘ Instances found: 7 โ•‘
250
+ โ•‘ Total models: 23 โ•‘
251
+ โ•‘ Vulnerabilities: 12 โ•‘
252
+ โ•‘ CVEs detected: 5 โ•‘
253
+ โ•‘ Report: evilollama_report.html โ•‘
254
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
255
+
256
+ [12:30:15] [๐Ÿ”Œ PROXY] Proxy โ†’ 127.0.0.1:9090 โ†’ 203.0.113.42:11434
257
+ ```
258
+
259
+ ---
260
+
261
+ ## ๐Ÿ›ก๏ธ CVE DATABASE
262
+
263
+ | CVE ID | Severity | CVSS | Description | Affected Versions |
264
+ |--------|----------|------|-------------|-------------------|
265
+ | CVE-2024-37032 | **CRITICAL** | 9.1 | RCE via crafted model file (path traversal) | < 0.1.47 |
266
+ | CVE-2024-39720 | **HIGH** | 7.5 | Prompt injection via crafted system prompt | < 0.1.34 |
267
+ | CVE-2024-39721 | **HIGH** | 7.5 | SSRF in model pulling mechanism | < 0.1.34 |
268
+ | CVE-2024-39722 | **HIGH** | 7.3 | Path traversal in API endpoints | < 0.1.34 |
269
+ | CVE-2025-23104 | **HIGH** | 8.2 | API authentication bypass in /api/pull | < 0.3.0 |
270
+
271
+ ---
272
+
273
+ ## ๐Ÿ“‹ REQUIREMENTS
274
+
275
+ ```
276
+ pip install aiohttp flask requests
277
+ ```
278
+
279
+ ---
280
+
281
+ ## โš ๏ธ LEGAL DISCLAIMER
282
+
283
+ ```
284
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
285
+ โ•‘ โ•‘
286
+ โ•‘ This tool is for AUTHORIZED SECURITY TESTING only. โ•‘
287
+ โ•‘ โ•‘
288
+ โ•‘ Only use on systems you own or have explicit written permission โ•‘
289
+ โ•‘ to test. Unauthorized scanning or exploitation is ILLEGAL. โ•‘
290
+ โ•‘ โ•‘
291
+ โ•‘ The authors assume no liability for misuse. โ•‘
292
+ โ•‘ โ•‘
293
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
294
+ ```
295
+
296
+ ---
297
+
298
+ ```
299
+ โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
300
+ โ•‘ EVIL-OLLAMA v3.0 ยท https://github.com/evogix/Evil-Ollama โ•‘
301
+ โ•‘ For authorized security research & bug bounty purposes only โ•‘
302
+ โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
303
+ ```