Files
nuclei-templates/javascript/detection/ssh-auth-methods.yaml

32 lines
1.4 KiB
YAML
Raw Normal View History

2023-11-07 00:16:22 +05:30
id: ssh-auth-methods
info:
2023-11-09 13:37:17 +05:30
name: SSH Auth Methods - Detection
2023-11-07 00:16:22 +05:30
author: Ice3man543
severity: info
description: |
SSH (Secure Shell) authentication modes are methods used to verify the identity of users and ensure secure access to remote systems. Common SSH authentication modes include password-based authentication, which relies on a secret passphrase, and public key authentication, which uses cryptographic keys for a more secure and convenient login process. Additionally, multi-factor authentication (MFA) can be employed to enhance security by requiring users to provide multiple forms of authentication, such as a password and a one-time code.
reference:
- https://nmap.org/nsedoc/scripts/ssh-auth-methods.html
metadata:
max-request: 1
2023-11-07 00:16:22 +05:30
shodan-query: product:"OpenSSH"
tags: js,detect,ssh,enum,network,discovery
2024-01-04 12:16:23 +05:30
2023-11-07 00:16:22 +05:30
javascript:
2024-07-10 17:38:01 +05:30
- pre-condition: |
isPortOpen(Host,Port);
code: |
2023-11-07 00:16:22 +05:30
var m = require("nuclei/ssh");
var c = m.SSHClient();
var response = c.ConnectSSHInfoMode(Host, Port);
2024-02-29 13:35:22 +05:30
Export(response);
2023-11-07 00:16:22 +05:30
args:
Host: "{{Host}}"
Port: "22"
extractors:
- type: json
json:
- '.UserAuth'
2025-10-26 16:17:34 +00:00
# digest: 4b0a00483046022100a4359bc3a0e2abd7eea0e30141287f832f1626cb66a8f68147a4ab493631fa38022100b001b5662359b7795868feed2478b7cade0b2d07929c90bb7dbb17e79b6ef702:922c64590222798bb761d5b6d8e72950