From 9fa26f2fcaba36a680caa1eb898d0fa24722b94e Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Tue, 18 Jul 2023 21:51:00 +0530 Subject: [PATCH] fix template --- http/technologies/springboot-detect.yaml | 27 ---------------- http/technologies/springboot-whitelabel.yaml | 34 ++++++++++++++++++++ 2 files changed, 34 insertions(+), 27 deletions(-) delete mode 100644 http/technologies/springboot-detect.yaml create mode 100644 http/technologies/springboot-whitelabel.yaml diff --git a/http/technologies/springboot-detect.yaml b/http/technologies/springboot-detect.yaml deleted file mode 100644 index 3cee946430..0000000000 --- a/http/technologies/springboot-detect.yaml +++ /dev/null @@ -1,27 +0,0 @@ -id: springboot-detect - -info: - name: Java Spring Boot Detection - author: Matt Miller - severity: info - reference: - - https://codingnconcepts.com/spring-boot/disable-whitelabel-error-page-spring-boot/ - tags: tech,java,spring,springboot - metadata: - max-request: 1 - -http: - - method: GET - path: - - "{{BaseURL}}" - - matchers-condition: and - matchers: - - type: word - part: body - words: - - "Whitelabel Error Page" - - - type: status - status: - - 404 diff --git a/http/technologies/springboot-whitelabel.yaml b/http/technologies/springboot-whitelabel.yaml new file mode 100644 index 0000000000..17fc4d6a85 --- /dev/null +++ b/http/technologies/springboot-whitelabel.yaml @@ -0,0 +1,34 @@ +id: springboot-whitelabel + +info: + name: SpringBoot WhiteLabel Error Page - Detect + author: Matt Miller + severity: info + reference: + - https://codingnconcepts.com/spring-boot/disable-whitelabel-error-page-spring-boot/ + metadata: + max-request: 1 + shodan:query: html:"Whitelabel Error Page" + verified: true + tags: tech,spring,springboot,errorpage + +http: + - raw: + - | + GET / HTTP/1.1 + Host: {{Hostname}} + Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 + + host-redirects: true + max-redirects: 3 + matchers-condition: and + matchers: + - type: word + part: body + words: + - "

Whitelabel Error Page

" + + - type: word + part: header + words: + - "text/html"