feat(http): implement short polling for reverse shell and create portal#2071
feat(http): implement short polling for reverse shell and create portal#2071
Conversation
…ortal Update the HTTP/1.1 transport to support bidirectional streaming via short polling for `ReverseShell` and `CreatePortal`. This enables interactive connections across agents restricted to HTTP-only communications. - Define new gRPC stream configs for ReverseShell and CreatePortal. - Add `handleShortPollStreaming` in `tavern` HTTP redirector for decoding POST payloads and replying with backend payloads. - Update `http.rs` in `imix` transport to frequently POST requests to send output or ping, receiving commands iteratively. Co-authored-by: hulto <7121375+hulto@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 |
This PR introduces short polling over HTTP/1.1 to implement Reverse Shell and Create Portal capabilities for agents connecting over HTTP rather than direct gRPC or DNS.
Changes include:
tavern/internal/redirectors/http1/grpc_stream.go: AddedReverseShellandCreatePortalstream config definitions.tavern/internal/redirectors/http1/redirector.go: Hooked up handlers for/c2.C2/ReverseShelland/c2.C2/CreatePortal.tavern/internal/redirectors/http1/handlers.go: ImplementedhandleShortPollStreamingwhich receives a request, sends any embedded gRPC payloads to the backend stream, reads waiting items, and flushes them as a response to the same POST cycle.implants/lib/transport/src/http.rs: Implementedhandle_short_poll_streamingand connected it toReverseShellandCreatePortalinterfaces. Agents loop repeatedly posting data buffers and waiting for server instruction.PR created automatically by Jules for task 7032004942279343568 started by @hulto