Skip to content

Commit ad1e020

Browse files
authored
Update adaptix_struct.go
1 parent b17905b commit ad1e020

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

adaptix_struct.go

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ const (
5151
SOCKS5_ADDR_TYPE_NOT_SUPPORTED byte = 8
5252
)
5353

54+
type PluginService interface {
55+
Call(operator string, function string, args string)
56+
}
57+
5458
type PluginListener interface {
5559
Create(name, config string, customData []byte) (ExtenderListener, ListenerData, []byte, error)
5660
}
@@ -64,8 +68,8 @@ type ExtenderListener interface {
6468
}
6569

6670
type PluginAgent interface {
67-
GenerateConfig(config string, listenerWM string, listenerProfile []byte) ([]byte, error)
68-
BuildPayload(config string, agentConfig []byte, listenerProfile []byte, builderId string) ([]byte, string, error)
71+
GenerateProfiles(profile BuildProfile) ([][]byte, error)
72+
BuildPayload(profile BuildProfile, agentProfiles [][]byte) ([]byte, string, error)
6973

7074
GetExtender() ExtenderAgent
7175
CreateAgent(beat []byte) (AgentData, ExtenderAgent, error)
@@ -301,3 +305,14 @@ type TargetData struct {
301305
Alive bool `json:"t_alive"`
302306
Agents []string `json:"t_agents"`
303307
}
308+
309+
type TransportProfile struct {
310+
Watermark string `json:"watermark"`
311+
Profile []byte `json:"profile"`
312+
}
313+
314+
type BuildProfile struct {
315+
BuilderId string `json:"build_id"`
316+
AgentConfig string `json:"agent_params"`
317+
ListenerProfiles []TransportProfile `json:"listener_profiles"`
318+
}

0 commit comments

Comments
 (0)