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

32 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2023-11-06 18:46:22 +00:00
id: ssh-auth-methods
info:
2023-11-09 08:07:17 +00:00
name: SSH Auth Methods - Detection
2023-11-06 18:46:22 +00:00
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
shodan-query: product:"OpenSSH"
2024-01-14 09:21:50 +00:00
tags: js,detect,ssh,enum,network
2024-01-04 06:46:23 +00:00
2023-11-06 18:46:22 +00:00
javascript:
2024-07-10 12:08:01 +00:00
- pre-condition: |
isPortOpen(Host,Port);
code: |
2023-11-06 18:46:22 +00:00
var m = require("nuclei/ssh");
var c = m.SSHClient();
var response = c.ConnectSSHInfoMode(Host, Port);
2024-02-29 08:05:22 +00:00
Export(response);
2023-11-06 18:46:22 +00:00
args:
Host: "{{Host}}"
Port: "22"
extractors:
- type: json
json:
- '.UserAuth'
# digest: 4a0a00473045022100f0e4202900ecbf8db38eebe76a699cc1fbf5eb04a774de69c89ca027cd877d9d02202d1ea9b051c206ec5a34aa78b45973bdef80120d71c468aaf6a12c9a87f8609d:922c64590222798bb761d5b6d8e72950