mirror of https://github.com/OWASP/Nettacker.git
enhancements
This commit is contained in:
parent
e949fed984
commit
4e83ff2ae4
|
|
@ -0,0 +1 @@
|
||||||
|
### Mettacker's data path
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
### Nettacker's results path
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
### Nettacker's tmp path
|
||||||
|
|
@ -17,7 +17,6 @@ logs.txt
|
||||||
*.log
|
*.log
|
||||||
results.*
|
results.*
|
||||||
.owasp-nettacker*
|
.owasp-nettacker*
|
||||||
.data*
|
|
||||||
*.html
|
*.html
|
||||||
*.htm
|
*.htm
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ def get_results():
|
||||||
try:
|
try:
|
||||||
page = int(get_value(flask_request, "page"))
|
page = int(get_value(flask_request, "page"))
|
||||||
if page > 0:
|
if page > 0:
|
||||||
page-=1
|
page -= 1
|
||||||
except Exception:
|
except Exception:
|
||||||
page = 0
|
page = 0
|
||||||
return jsonify(
|
return jsonify(
|
||||||
|
|
@ -330,7 +330,7 @@ def get_results():
|
||||||
|
|
||||||
|
|
||||||
@app.route("/results/get", methods=["GET"])
|
@app.route("/results/get", methods=["GET"])
|
||||||
def get_result_content(): ## todo: working now but improvement for filename
|
def get_result_content():
|
||||||
"""
|
"""
|
||||||
get a result HTML/TEXT/JSON content
|
get a result HTML/TEXT/JSON content
|
||||||
|
|
||||||
|
|
@ -351,7 +351,7 @@ def get_result_content(): ## todo: working now but improvement for filename
|
||||||
|
|
||||||
|
|
||||||
@app.route("/results/get_json", methods=["GET"])
|
@app.route("/results/get_json", methods=["GET"])
|
||||||
def get_results_json(): ##working fine
|
def get_results_json(): # todo: fix
|
||||||
"""
|
"""
|
||||||
get host's logs through the API in JSON type
|
get host's logs through the API in JSON type
|
||||||
|
|
||||||
|
|
@ -450,7 +450,7 @@ def get_last_host_logs(): ## working
|
||||||
try:
|
try:
|
||||||
page = int(get_value(flask_request, "page"))
|
page = int(get_value(flask_request, "page"))
|
||||||
if page > 0:
|
if page > 0:
|
||||||
page-=1
|
page -= 1
|
||||||
except Exception:
|
except Exception:
|
||||||
page = 0
|
page = 0
|
||||||
return jsonify(last_host_logs(page)), 200
|
return jsonify(last_host_logs(page)), 200
|
||||||
|
|
@ -540,7 +540,7 @@ def go_for_search_logs(): ## working fine
|
||||||
try:
|
try:
|
||||||
page = int(get_value(flask_request, "page"))
|
page = int(get_value(flask_request, "page"))
|
||||||
if page > 0:
|
if page > 0:
|
||||||
page-=1
|
page -= 1
|
||||||
except Exception:
|
except Exception:
|
||||||
page = 0
|
page = 0
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue