From 3373976e28f2efdb4bb0d1083fec0747ee22e977 Mon Sep 17 00:00:00 2001 From: pussycat0x <65701233+pussycat0x@users.noreply.github.com> Date: Wed, 27 Dec 2023 13:15:53 +0530 Subject: [PATCH] dsl - update --- http/exposures/docker-daemon-exposed.yaml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/http/exposures/docker-daemon-exposed.yaml b/http/exposures/docker-daemon-exposed.yaml index 152f9daaf0..e62b53f228 100644 --- a/http/exposures/docker-daemon-exposed.yaml +++ b/http/exposures/docker-daemon-exposed.yaml @@ -23,23 +23,12 @@ http: GET /v{{version}}/containers/json HTTP/1.1 Host: {{Hostname}} - matchers-condition: or matchers: - - type: word - part: body_2 - words: - - "Id" - - "Names" - - "Image" - - "Command" - - "PrivatePort" - - "PublicPort" - condition: and - - - type: word - part: body_2 - words: - - '[]' + - type: dsl + dsl: + - 'status_code_2 == 200' + - 'contains(body_1, "ApiVersion") && contains(body_1, "GitCommit") && contains(body_1, "GoVersion") && contains(body_1, "KernelVersion")' + - 'contains(body_2, "Id") && contains(body_2, "Names") && contains(body_2, "Image") && contains(body_2, "Command") && contains(body_2, "PrivatePort") && contains(body_2, "PublicPort") || contains(body_2, "[]")' condition: and extractors: @@ -48,4 +37,4 @@ http: group: 1 regex: - '"ApiVersion":"(.*?)"' - internal: true + internal: true \ No newline at end of file