2024-03-09 14:23:42 +00:00
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"
2024-04-08 11:34:33 +00:00
verified : true
2024-03-09 14:23:42 +00:00
tags : js,network,pop3,enum
2024-04-08 11:34:33 +00:00
2024-03-09 14:23:42 +00:00
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, " ");
2024-04-05 07:56:00 +00:00
console.log(Export(cleanedData))
2024-03-09 14:23:42 +00:00
args :
Host : "{{Host}}"
Port : 110
2024-04-05 07:56:00 +00:00
matchers-condition : and
2024-03-09 14:23:42 +00:00
matchers :
- type : dsl
dsl :
- "success == true"
2024-04-05 07:56:00 +00:00
- type : word
words :
- "HTTP/1.1"
2024-04-05 08:00:24 +00:00
negative : true
2024-04-05 07:56:00 +00:00
2024-03-09 14:23:42 +00:00
extractors :
- type : dsl
name :
dsl :
- response
2024-04-05 08:27:00 +00:00
# digest: 4a0a00473045022100c6e43b222a90204f57d0cb949f774e69b162741de5f8fa7e00e3486e3c8e459c022069add72265a2601f9c2e86d26367e0961a781520ac9eadb40d0c8f79636933aa:922c64590222798bb761d5b6d8e72950