nuclei-templates/http/technologies/geth-server-detect.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2023-08-14 04:39:58 +00:00
id: geth-server-detect
2023-08-13 02:42:57 +00:00
info:
2023-08-14 06:32:59 +00:00
name: Go Ethereum JSON-RPC HTTP Server - Detect
2023-08-13 02:42:57 +00:00
author: Nullfuzz
severity: info
description: |
2023-10-14 11:27:55 +00:00
Go-ethereum (aka Geth) is an Ethereum client built in Go. Geth runs a JSON-RPC HTTP server on port 8545/TCP
2023-08-13 02:42:57 +00:00
reference:
- https://geth.ethereum.org/docs
- https://github.com/ethereum/go-ethereum
metadata:
2023-10-14 11:27:55 +00:00
verified: true
2023-08-13 02:42:57 +00:00
max-request: 1
shodan-query: product:"Geth"
tags: tech,geth,ethereum,web3,blockchain
http:
- raw:
- |
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(header, "application/json")'
- 'contains(body, "Geth")'
condition: and
extractors:
- type: regex
part: body
group: 1
regex:
2023-08-14 04:39:58 +00:00
- '(v[0-9a-z-_.]+)'
# digest: 4a0a00473045022100d2f3564e305a54e66b200c6868ebbd62fab2342ce73eeac64d0a5ec4e5016b3402204a788d1bb647ec03064e3f4ea496d5a270709c27bcf35f95a5f46a5f5ad7ad43:922c64590222798bb761d5b6d8e72950