47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
id: pop3-capabilities-enum
|
|
|
|
info:
|
|
name: POP3 Capabilities - Enumeration
|
|
author: pussycat0x
|
|
severity: info
|
|
description: |
|
|
POP3 capabilities are defined in RFC 2449. The CAPA command allows a client to ask a server what commands it supports and possibly any site-specific policy. Besides the list of supported commands, the IMPLEMENTATION string giving the server version may be available.
|
|
reference:
|
|
- https://nmap.org/nsedoc/scripts/pop3-capabilities.html
|
|
metadata:
|
|
max-request: 1
|
|
shodan-query: "port:110"
|
|
verified: true
|
|
tags: js,network,pop3,enum
|
|
|
|
javascript:
|
|
- code: |
|
|
let data = "CAPA\r\n"
|
|
let c = require("nuclei/net");
|
|
let conn = c.Open('tcp', `${Host}:${Port}`);
|
|
conn.Send(data);
|
|
let result = conn.RecvString();
|
|
let cleanedData = result.replace(/\+OK Dovecot ready\.\r\n\+OK|\r\n|\s/g, " ");
|
|
console.log(Export(cleanedData))
|
|
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: 110
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "success == true"
|
|
|
|
- type: word
|
|
words:
|
|
- "HTTP/1.1"
|
|
negative: true
|
|
|
|
extractors:
|
|
- type: dsl
|
|
name:
|
|
dsl:
|
|
- response
|