Feature: Implement report.screenshot() support#1919
Conversation
- **Implants:**
- Added `xcap` and `image` dependencies to `eldritch-libreport`.
- Implemented `screenshot()` method in `ReportLibrary` to capture and stream screenshots of all monitors.
- Updated `fake` report library for testing.
- **Tavern Backend:**
- Created `Screenshot` Ent schema with `name`, `size`, `hash`, `content` fields.
- Added `screenshots` edges to `Host`, `Task`, and `ShellTask`.
- Updated `ReportFile` C2 handler to route `ReportFileKind_REPORT_FILE_KIND_SCREENSHOT` to the `Screenshot` entity.
- Added `NewScreenshotDownloadHandler` for authenticated screenshot downloads at `/cdn/screenshots/`.
- **Infrastructure:**
- Updated `.devcontainer/Dockerfile` and `.github/workflows/tests.yml` to install Linux dependencies (`libx11-dev`, `libxcb1-dev`, etc.) required by `xcap`.
Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Summary
Previous Results
Insights
Slowest Tests
🎉 No failed tests in this run. | 🍂 No flaky tests in this run. Github Test Reporter by CTRF 💚 🔄 This comment has been updated |
Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com>
Implemented full-stack screenshot support. The agent now has a
report.screenshot()method that captures all monitors and streams them to the C2 server. The backend stores these in a dedicatedScreenshotentity and provides an authenticated download endpoint.Testing:
ReportFilelogic with unit tests (tavern/internal/c2/api_report_file_test.go).cargo check.go build.PR created automatically by Jules for task 12489053985665727235 started by @KCarretto