mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
id: ssh-auth-methods
|
|
|
|
info:
|
|
name: SSH Auth Methods - Detection
|
|
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"
|
|
tags: ssh,js,enum,network
|
|
javascript:
|
|
- code: |
|
|
var m = require("nuclei/ssh");
|
|
var c = m.SSHClient();
|
|
var response = c.ConnectSSHInfoMode(Host, Port);
|
|
to_json(response);
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "22"
|
|
|
|
extractors:
|
|
- type: json
|
|
json:
|
|
- '.UserAuth'
|
|
|
|
# digest: 4a0a00473045022100cf24a1c4ecd0d5b3518306c1cf828a13717cfa5ae1ad43d7ee921f4a17adff0602206cbe5cde1733382d1922b595e79ad7e976cb3d6d1e156d634d8708ab113044a8:922c64590222798bb761d5b6d8e72950
|