How mythicc2profiles/httpx works
httpx is a configurable Mythic C2 profile with a Mythic-facing profile service and a separate HTTP(S) listener. The main workflow loads profile definitions into Mythic, then the listener loads instance and agent configuration, registers HTTP routes, and proxies agent messages to Mythic. Configurable message placement and transforms shape that traffic; payload hosting and domain-rotation options are documented capabilities. Some builder and GraphQL implementation details were only partially sampled, so those relationships are not expanded beyond visible evidence.
Main entry points: initialize.go Route and proxy setup · c2_code/main.go Listener entry · builder.go Profile builder · httpx/main.go Profile service entry
Components 13
Mythic integration
- Profile service entry
C2_Profiles/httpx/main.go - Profile builder
C2_Profiles/httpx/httpx/c2functions/builder.go - Payload query
C2_Profiles/httpx/httpx/c2functions/graphql_queries.go - GraphQL client types
C2_Profiles/httpx/httpx/c2functions/generated.go - Authenticated GraphQL transport
C2_Profiles/httpx/httpx/mythicGraphql/utils.go
HTTP runtime
- Listener entry
C2_Profiles/httpx/httpx/c2_code/main.go - Route and proxy setup
C2_Profiles/httpx/httpx/c2_code/webserver/initialize.go - Wire transforms
C2_Profiles/httpx/httpx/c2_code/webserver/transforms.go
Profile configuration
- Instance configuration
C2_Profiles/httpx/httpx/c2_code/webserver/config.go - Agent message config
C2_Profiles/httpx/httpx/c2_code/webserver/config.go
Other components
- Mythic platform
- Mythic server
- HTTP(S) agent
Connections 13
- Profile service entry → Profile builder: initializes definitions
C2_Profiles/httpx/main.go - Profile service entry → Mythic platform: starts C2 service
C2_Profiles/httpx/main.go - Listener entry → Instance configuration: loads instance settings
C2_Profiles/httpx/httpx/c2_code/main.go - Listener entry → Agent message config: loads agent settings
C2_Profiles/httpx/httpx/c2_code/main.go - Listener entry → Route and proxy setup: initializes routes
C2_Profiles/httpx/httpx/c2_code/main.go - Listener entry → Route and proxy setup: starts listener
C2_Profiles/httpx/httpx/c2_code/main.go - HTTP(S) agent → Route and proxy setup: sends HTTP traffic
- Route and proxy setup → Mythic server: proxies agent messages
C2_Profiles/httpx/httpx/c2_code/webserver/initialize.go - Route and proxy setup → Wire transforms: decodes client messages
C2_Profiles/httpx/httpx/c2_code/webserver/initialize.go - Route and proxy setup → Wire transforms: encodes server messages
C2_Profiles/httpx/httpx/c2_code/webserver/initialize.go - Profile builder → Mythic platform: gets config files
C2_Profiles/httpx/httpx/c2functions/builder.go - Profile builder → Authenticated GraphQL transport: uses GraphQL client
- Payload query → GraphQL client types: generates query types
C2_Profiles/httpx/httpx/c2functions/graphql_queries.go