MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / all_module_names

Function all_module_names

api/server.py:617–646  ·  view source on GitHub ↗

Get the list of modules --- responses: '200': description: Ok examples: application/json: [ "ftp/strong_password", "ftp/weak_password", "http/basic_auth_strong_password",

()

Source from the content-addressed store, hash-verified

615
616@app.route("/api/core/list/modules", methods=["GET"])
617def all_module_names():
618 """
619 Get the list of modules
620 ---
621 responses:
622 '200':
623 description: Ok
624 examples:
625 application/json:
626 [
627 "ftp/strong_password",
628 "ftp/weak_password",
629 "http/basic_auth_strong_password",
630 "http/basic_auth_weak_password",
631 "ics/veeder_root_guardian_ast",
632 "smtp/strong_password",
633 "ssh/strong_password",
634 "ssh/weak_password"
635 ]
636 '500':
637 description: Internal Server Error
638 examples:
639 application/json: { "msg": "file/path not found!", "status": "error" }
640 """
641 try:
642 return jsonify(
643 load_all_modules()
644 ), 200
645 except Exception:
646 abort(500)
647
648
649@app.route("/docs-configuration")

Callers

nothing calls this directly

Calls 1

load_all_modulesFunction · 0.90

Tested by

no test coverage detected