Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing port in javascript result #5023

Merged
merged 3 commits into from
Apr 8, 2024
Merged

Conversation

tarunKoyalwar
Copy link
Member

@tarunKoyalwar tarunKoyalwar commented Apr 8, 2024

Proposed Changes

$  ./nuclei  -u https://scanme.sh -or -id ssh-auth-methods -j | jq .

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.2.3

		projectdiscovery.io

[INF] Current nuclei version: v3.2.3 (latest)
[INF] Current nuclei-templates version: v9.8.1 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 77
[INF] Templates loaded for current scan: 1
[INF] Executing 1 signed templates from projectdiscovery/nuclei-templates
[INF] Targets loaded for current scan: 1
{
  "template": "javascript/detection/ssh-auth-methods.yaml",
  "template-url": "https://cloud.projectdiscovery.io/public/ssh-auth-methods",
  "template-id": "ssh-auth-methods",
  "template-path": "/Users/tarun/nuclei-templates/javascript/detection/ssh-auth-methods.yaml",
  "info": {
    "name": "SSH Auth Methods - Detection",
    "author": [
      "ice3man543"
    ],
    "tags": [
      "js",
      "detect",
      "ssh",
      "enum",
      "network"
    ],
    "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.\n",
    "reference": [
      "https://nmap.org/nsedoc/scripts/ssh-auth-methods.html"
    ],
    "severity": "info",
    "metadata": {
      "max-request": 1,
      "shodan-query": "product:\"OpenSSH\""
    }
  },
  "type": "javascript",
  "host": "scanme.sh:22",
  "port": "22",
  "url": "scanme.sh:22",
  "matched-at": "scanme.sh:22",
  "extracted-results": [
    "[\"publickey\",\"password\"]"
  ],
  "ip": "128.199.158.128",
  "timestamp": "2024-04-09T01:30:17.180274+05:30",
  "matcher-status": true
}
$  echo www.hackerone.com:8443 | ./nuclei -id ssl-issuer -j -silent|  jq .port
"8443"

@tarunKoyalwar tarunKoyalwar self-assigned this Apr 8, 2024
@tarunKoyalwar tarunKoyalwar changed the title issue 5021 js protocol ip fix missing port in javascript result Apr 8, 2024
@tarunKoyalwar tarunKoyalwar requested a review from ehsandeep April 8, 2024 20:01
@tarunKoyalwar tarunKoyalwar marked this pull request as ready for review April 8, 2024 20:01
@ehsandeep ehsandeep merged commit 375d1dd into dev Apr 8, 2024
12 checks passed
@ehsandeep ehsandeep deleted the issue-5021-js-protocol-ip branch April 8, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ip in result output in javascript protocol similar to http protocol
2 participants