Upload files to "templates"

This commit is contained in:
2024-11-28 00:55:02 -05:00
parent 9f90266716
commit cc9de49dba
13 changed files with 246 additions and 0 deletions

11
templates/autostart.html Normal file
View File

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<h1>Autostart Persistence</h1>
{% for section in content %}
<h2>{{ section.title }}</h2>
<pre>{{ section.content }}</pre>
{% endfor %}
<a href="/persistence">Back to Persistence Submenu</a>
{% endblock %}

42
templates/base.html Normal file
View File

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
<header>
<nav>
<a href="/">Home</a>
<a href="/methodology">Methodology</a>
<div class="dropdown">
<a href="#">OS</a>
<div class="dropdown-content">
<a href="/windows">Windows</a>
<a href="/linux">Linux</a>
</div>
</div>
<div class="dropdown">
<a href="/investigate">Investigate</a>
<div class="dropdown-content">
<a href="/investigate/threat">Threat Intel</a>
<a href="/investigate/ip">IP</a>
<a href="/investigate/domain">Domain</a>
<a href="/investigate/filehash">File Hash</a>
<a href="/investigate/malware">Malware</a>
</div>
</div>
<a href="/rule_creation">Rule Creation</a>
<a href="/notebook">Notebook</a>
</nav>
</header>
<div class="tip">
{{ random_tip }}
</div>
<main class="main-content">
{% block content %}{% endblock %}
</main>
</body>
</html>

28
templates/index.html Normal file
View File

@ -0,0 +1,28 @@
{% extends "base.html" %}
{% block content %}
<!-- Centered container -->
<div class="center-container">
<!-- Render Full ASCII Art -->
<pre class="ascii-art no-background">{{ full_ascii_art }}</pre>
<!-- Render Infinitei ASCII Art -->
<pre class="ascii-art no-background">{{ infinitei }}</pre>
<!-- Add image below Infinitei -->
<img src="{{ url_for('static', filename='threat_hunter.jpeg') }}" alt="Threat Hunter Image" class="ascii-image">
<h1>Welcome to Your Cybersecurity Tool</h1>
<!-- Render README Description -->
<p>{{ readme_description }}</p>
<!-- Links displayed side by side -->
<div class="link-container">
{% for link in links %}
<a class="link-button" href="{{ link.url }}" target="_blank">{{ link.name }}</a>
{% endfor %}
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ content.title }}</h1>
<p>{{ content.description }}</p>
<ul>
{% for resource in content.resources %}
<li><a href="{{ resource.url }}" target="_blank">{{ resource.name }}</a></li>
{% endfor %}
</ul>
{% endblock %}

11
templates/linux.html Normal file
View File

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<h1>Linux Indicators of Compromise (IOCs)</h1>
<p>Select a section to explore:</p>
<ul>
{% for section in sections %}
<li><a href="/linux/{{ section.title.replace(' ', '_') }}">{{ section.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block content %}
<h1>Methodology</h1>
<!-- Loop through all sections -->
{% for section in content %}
<div class="content-box">
<h2>{{ section.title }}</h2>
{% if section.description %}
<p>{{ section.description }}</p>
{% endif %}
{% if section.link %}
<a href="{{ section.link }}" target="_blank" class="link-button">Explore {{ section.title }}</a>
{% endif %}
{% if section.content %}
<div class="markdown-content">
<pre>{{ section.content }}</pre>
</div>
{% endif %}
{% if section.resources %}
<h3>Resources</h3>
<ul>
{% for resource in section.resources %}
<li><a href="{{ resource.url }}" target="_blank">{{ resource.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
</div>
<hr>
{% endfor %}
{% endblock %}

33
templates/notebook.html Normal file
View File

@ -0,0 +1,33 @@
{% extends "base.html" %}
{% block content %}
<h1>Notebook</h1>
<form method="POST">
<label for="category">Category:</label>
<select name="category" id="category">
<option value="notes">Notes</option>
<option value="ips">IPs</option>
<option value="domains">Domains</option>
<option value="services">Services</option>
<option value="tasks">Scheduled Tasks</option>
</select>
<label for="entry">Entry:</label>
<input type="text" name="entry" id="entry" required>
<button type="submit">Add</button>
</form>
<hr>
{% for category, entries in notebook.items() %}
<h2>{{ category.capitalize() }}</h2>
<ul>
{% for entry in entries %}
<li>
{{ entry }} <a href="{{ url_for('delete_entry', category=category, index=loop.index0) }}">Delete</a>
</li>
{% endfor %}
</ul>
{% if not entries %}
<p>No entries yet.</p>
{% endif %}
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ content[0].title }}</h1>
{% for section in content %}
<div class="content-box">
<h2>{{ section.title }}</h2>
<pre>{{ section.content }}</pre>
</div>
{% endfor %}
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ menu.title }}</h1>
<p>{{ menu.description }}</p>
<ul>
{% for method in menu.methods %}
<li><a href="{{ method.url }}">{{ method.name }}</a></li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block content %}
<h1>Rule Creation</h1>
<p>Track and manage your custom detection and prevention rules here.</p>
{% endblock %}

18
templates/section.html Normal file
View File

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
<h2>Content</h2>
<pre>{{ section.content }}</pre>
{% if section.resources %}
<h2>Resources</h2>
<ul>
{% for resource in section.resources %}
<li><a href="{{ resource }}" target="_blank">{{ resource }}</a></li>
{% endfor %}
</ul>
{% endif %}
<a href="/{{ request.path.split('/')[1] }}">Back to All Sections</a>
{% endblock %}

14
templates/submenu.html Normal file
View File

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ title }}</h1>
<p>Select a tool or resource below:</p>
<ul>
{% for action in submenu %}
<li>
<a href="#" onclick="event.preventDefault(); {{ action.function }}()">
{{ action.description }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}

23
templates/windows.html Normal file
View File

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block content %}
<h1>Windows Indicators of Compromise (IOCs)</h1>
<p>Select a section to explore:</p>
<ul>
{% for section in sections %}
<li><a href="/windows/{{ section.title.replace(' ', '_') }}">{{ section.title }}</a></li>
{% endfor %}
</ul>
{% for section in sections %}
{% if section.title == "Persistence Methods" %}
<h2>{{ section.title }}</h2>
<p>{{ section.content }}</p>
<ul>
{% for link in section.links %}
<li><a href="{{ link.url }}">{{ link.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endblock %}