-
Nuclei version:v3.2.2 Current Behavior:When I run: nuclei -t template-get.yaml -u 127.0.0.1:5000 It returns a success result:
But when I run the same command with
Expected Behavior:The scan should return the expected result:
Steps To Reproduce:I created a simple python api: from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/hello', methods=['GET'])
def hello():
return jsonify({'message': 'Hello, World!'}) It's running on And write this template: id: my-hello-request
info:
name: Sample Login Request
author: guiadeappsec
severity: info
description: Execute a basic request to /hello on a web application.
tags: hello
http:
- method: GET
path:
- "{{BaseURL}}/hello"
matchers:
- type: status
status:
- 200
Run those commands:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@bhrott if you are not specifying url scheme, nuclei try to auto probe as default which is happening in 1st case, and you are disabling probbing behavior by specifying if you wanted to use |
Beta Was this translation helpful? Give feedback.
@bhrott if you are not specifying url scheme, nuclei try to auto probe as default which is happening in 1st case, and you are disabling probbing behavior by specifying
-nh
option, as result nuclei will not probe and fail, so this is working as expected, it's not working in 2nd case, as you are specifically disabling the auto probe.if you wanted to use
-nh
option you need to pass input with URL scheme i.enuclei -t template-get.yaml -u http://127.0.0.1:5000 -nh