Commit 2bc9522
authored
Add OTP interceptor for Email and SMS (#76)
Add a dashboard and main dashboard widget for OTP interceptor for Email
and SMS OTP interceptions.
* **Add OTP Interceptor Module**
- Create `modules/otp_interceptor.py` to handle OTP interception for
Email and SMS.
- Implement methods to connect to email and Twilio services.
- Implement methods to intercept OTP from emails and SMS messages.
- Add logging for OTP interception events.
* **Update Main Application**
- Modify `app.py` to import and initialize `OTPInterceptor`.
- Integrate `OTPInterceptor` into the main dashboard.
- Add OTP interception methods to the main dashboard layout.
* **Update Dashboard**
- Modify `dashboard/dashboard.py` to import and initialize
`OTPInterceptor`.
- Add a new section in the dashboard for OTP interception.
- Display intercepted OTPs and provide controls for interception.
* **Update Dashboard Template**
- Modify `templates/dashboard.html` to include a new widget for OTP
interception.
- Add buttons to intercept Email and SMS OTPs.
- Display intercepted OTPs in the dashboard.
---
For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/ProjectZeroDays/Project-Red-Sword/pull/76?shareId=589b505b-3c9f-4a68-ba98-962063c0b044).File tree
4 files changed
+111
-2
lines changed- dashboard
- modules
- templates
4 files changed
+111
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
275 | 288 | | |
276 | 289 | | |
277 | 290 | | |
| |||
517 | 530 | | |
518 | 531 | | |
519 | 532 | | |
| 533 | + | |
| 534 | + | |
520 | 535 | | |
521 | 536 | | |
522 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
130 | 142 | | |
131 | 143 | | |
132 | | - | |
| 144 | + | |
133 | 145 | | |
134 | 146 | | |
135 | 147 | | |
| |||
248 | 260 | | |
249 | 261 | | |
250 | 262 | | |
251 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
252 | 266 | | |
253 | 267 | | |
254 | 268 | | |
| |||
300 | 314 | | |
301 | 315 | | |
302 | 316 | | |
| 317 | + | |
| 318 | + | |
303 | 319 | | |
304 | 320 | | |
305 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
249 | 258 | | |
250 | 259 | | |
251 | 260 | | |
| |||
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
324 | 343 | | |
325 | 344 | | |
326 | 345 | | |
| |||
0 commit comments