2024-04-01 20:35:40 +00:00
|
|
|
id: yourls-detect
|
|
|
|
|
|
|
|
info:
|
2024-04-02 03:38:13 +00:00
|
|
|
name: YOURLS - Detection
|
2024-04-01 20:35:40 +00:00
|
|
|
author: lstatro
|
|
|
|
severity: info
|
2024-04-02 03:38:13 +00:00
|
|
|
description: |
|
|
|
|
Detects if the target is running a YOURLS (Your Own URL Shortener) server
|
|
|
|
reference:
|
|
|
|
- https://github.com/YOURLS/YOURLS
|
|
|
|
metadata:
|
2024-04-08 11:30:07 +00:00
|
|
|
max-request: 1
|
2024-04-08 11:34:33 +00:00
|
|
|
verified: true
|
2024-04-03 04:48:05 +00:00
|
|
|
shodan-query: title:"Your Own URL Shortener"
|
2024-04-02 03:38:13 +00:00
|
|
|
fofa-query: title="Your Own URL Shortener"
|
2024-04-01 20:35:40 +00:00
|
|
|
tags: tech,yourls
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2024-04-03 04:48:05 +00:00
|
|
|
- "{{BaseURL}}"
|
2024-04-02 03:38:13 +00:00
|
|
|
|
2024-04-01 20:35:40 +00:00
|
|
|
redirects: true
|
|
|
|
max-redirects: 3
|
2024-04-02 03:38:13 +00:00
|
|
|
|
2024-04-01 20:35:40 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2024-04-03 04:48:05 +00:00
|
|
|
- '<title>YOURLS'
|
|
|
|
- 'content="YOURLS'
|
|
|
|
- 'alt="YOURLS'
|
|
|
|
- '/yourls-logo'
|
|
|
|
condition: or
|
2024-04-02 03:38:13 +00:00
|
|
|
|
2024-04-01 20:35:40 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2024-04-03 04:48:05 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- 'YOURLS<\/a>([ a-z0-9.-]+)'
|
|
|
|
- 'content="YOURLS([ 0-9.]+)"'
|
2024-04-03 04:56:06 +00:00
|
|
|
# digest: 4b0a00483046022100d0f53474b0c78aeb984bf0631fd7ba7a89bf31c12bb488f82d08d21868fe7501022100ab85336fbf6580eab70432051e040c41b9b2eea87ebbdc78c65917b0f1bd612b:922c64590222798bb761d5b6d8e72950
|