Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/integration_tests/protocols/javascript/multi-ports.yaml
2843 views
1
id: multi-ports
2
3
info:
4
name: Multi Ports - Detection
5
author: pdteam
6
severity: info
7
description: |
8
Multi Ports template for testing
9
metadata:
10
max-request: 1
11
tags: js,detect,multi-ports,enum,network
12
13
javascript:
14
- pre-condition: |
15
isPortOpen(Host,Port);
16
code: |
17
var m = require("nuclei/ssh");
18
var c = m.SSHClient();
19
var response = c.ConnectSSHInfoMode(Host, Port);
20
Export(response);
21
args:
22
Host: "{{Host}}"
23
Port: "2222,22" # Port 22 should match
24
25
extractors:
26
- type: json
27
json:
28
- '.UserAuth'
29