Projects STRLCPY Maryam Commits ab42e601
🤬
  • ■ ■ ■ ■ ■
    gui/static/css/index.css
     1 +body{
     2 + background-color: red;
     3 + color: white
     4 +}
     5 + 
  • ■ ■ ■ ■ ■ ■
    gui/static/js/index.js
     1 +console.log("JS working!")
     2 + 
  • ■ ■ ■ ■ ■ ■
    gui/templates/index.html
     1 +<!DOCTYPE html>
     2 +<html lang="en">
     3 +<head>
     4 + <meta charset="UTF-8">
     5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
     6 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
     7 + 
     8 + <link rel="stylesheet" href="{{url_for('static', filename = 'css/index.css')}}">
     9 + <script src="{{url_for('static', filename='js/index.js')}}" type="module" defer></script>
     10 + <title>Maryam</title>
     11 +</head>
     12 +<body>
     13 + <h1>Owasp Maryam</h1>
     14 + 
     15 +</body>
     16 +</html>
     17 + 
  • ■ ■ ■ ■ ■ ■
    maryam/core/web/api.py
    skipped 15 lines
    16 16  """
    17 17   
    18 18  import flask
    19  -from flask import request, jsonify
     19 +from flask import request, jsonify, render_template
    20 20   
    21 21  framework = None
    22  -app = flask.Flask('OWASP Maryam')
     22 +app = flask.Flask('OWASP Maryam', template_folder='gui/templates', static_folder='gui/static')
     23 + 
     24 +@app.route('/iris_cluster')
     25 +def iris_cluster():
     26 + return render_template('index.html')
    23 27   
    24 28  @app.route('/', methods=['GET', 'POST'])
    25 29  def home():
    26  - page = '<pre>current pages:<br>/api/modules => running modules<br>/api/framework => framework commands</pre>'
     30 + page = '<pre>current pages:<br>/api/modules => running modules<br>/api/framework => framework commands<br>/iris_cluster => search your query and get iris and cluster results</pre>'
    27 31   return page
    28 32   
    29 33   
    skipped 110 lines
    140 144   framework = core_obj
    141 145   app.run(host=host, port=port)
    142 146   
     147 + 
Please wait...
Page is in error, reload to recover