feat: forensic main page
This commit is contained in:
parent
7c068e0c89
commit
0a70a407e5
36
app.py
36
app.py
@ -80,8 +80,8 @@ def webssti():
|
|||||||
def webpsguide():
|
def webpsguide():
|
||||||
return render_template('portswigger-guide.html')
|
return render_template('portswigger-guide.html')
|
||||||
|
|
||||||
@app.route("/forensic/task1-metadata")
|
@app.route("/forensic/metadata")
|
||||||
def forensictask1():
|
def fmetadata():
|
||||||
session['task1_id'] = id = hex(getrandbits(45))[2:]
|
session['task1_id'] = id = hex(getrandbits(45))[2:]
|
||||||
session['task1_flag'] = flag_task1 = f'C4TchFl4g{{{hex(getrandbits(45))[2:]}}}'
|
session['task1_flag'] = flag_task1 = f'C4TchFl4g{{{hex(getrandbits(45))[2:]}}}'
|
||||||
task1_flag(flag_task1, id)
|
task1_flag(flag_task1, id)
|
||||||
@ -95,11 +95,39 @@ def forensictask1():
|
|||||||
abort(404)
|
abort(404)
|
||||||
return render_template('task1-metadata.html')
|
return render_template('task1-metadata.html')
|
||||||
|
|
||||||
@app.route("/found-me/task1")
|
@app.route("/found-me/task1") #TODO
|
||||||
def forensic_task1():
|
def forensic_task1():
|
||||||
return send_file(f'/tmp/task1/{session['task1_id']}.jpg')
|
return send_file(f'/tmp/task1/{session['task1_id']}.jpg')
|
||||||
|
|
||||||
@app.route("/success_login", methods=('GET', 'POST'))
|
@app.route("/forensic/base-guide")
|
||||||
|
def fbase():
|
||||||
|
return render_template('base.html')
|
||||||
|
|
||||||
|
@app.route("/forensic/.docx_files")
|
||||||
|
def fbinwalk():
|
||||||
|
return render_template('binwalk.html')
|
||||||
|
|
||||||
|
@app.route("/forensic/hex")
|
||||||
|
def fhex():
|
||||||
|
return render_template('hex.html')
|
||||||
|
|
||||||
|
@app.route("/forensic/hash")
|
||||||
|
def fhash():
|
||||||
|
return render_template('hash.html')
|
||||||
|
|
||||||
|
@app.route("/osint/questions")
|
||||||
|
def osintquestions():
|
||||||
|
return render_template('osint-questions.html')
|
||||||
|
|
||||||
|
@app.route("/osint/geoguessr")
|
||||||
|
def osintgeoguessr():
|
||||||
|
return render_template('osint-geoguessr.html')
|
||||||
|
|
||||||
|
@app.route("/osint/really_hard_task")
|
||||||
|
def osintrht():
|
||||||
|
return render_template('osint-hardtask.html')
|
||||||
|
|
||||||
|
@app.route("/success_login-sqltask", methods=('GET', 'POST'))
|
||||||
def success_login():
|
def success_login():
|
||||||
flag = session.get('sql_flag')
|
flag = session.get('sql_flag')
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
|
@ -1,6 +1,22 @@
|
|||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
{% include '_head.html' %}
|
{% include '_head.html' %}
|
||||||
<body>
|
<body>
|
||||||
{% include '_header.html' %}
|
{% include '_header.html' %}
|
||||||
{% include '_sidenav.html' %}
|
{% include '_sidenav.html' %}
|
||||||
|
<div class="container">
|
||||||
|
<div class="small info1 capsule-window">
|
||||||
|
<p class="simpletext">< Задания категории Форензика ></p>
|
||||||
|
<nav class="navbtn">
|
||||||
|
{%- for name, descr in (
|
||||||
|
('fmetadata', "Метаданные и как их найти"),
|
||||||
|
('fbinwalk', "Что не так с моим докладом?"),
|
||||||
|
('fbase', "0K3RgtC+INCx0LDQt9Cw"),
|
||||||
|
('fhex', "Hex в картинках"),
|
||||||
|
('fhash', "Зачем Cat нужен hash"),
|
||||||
|
) %}
|
||||||
|
<a href="{{ url_for(name) }}" class="btn1">{{ descr }}</a>
|
||||||
|
{%- endfor %}
|
||||||
|
</div>
|
||||||
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
|
<img id="help" src="{{ url_for('static', filename='imgs/icon.png') }}">
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user