Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion website/management/commands/create_sql_injection_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def handle(self, *args, **kwargs):
self.stdout.write(self.style.ERROR("SQL Injection lab not found. Please run create_initial_labs first."))
return

# Define the 10 SQL injection tasks
tasks_data = [
{
"name": "Introduction to SQL Injection",
Expand Down
1 change: 1 addition & 0 deletions website/templates/Simulation.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!-- website/templates/dashboard.html -->
{% extends 'base.html' %}
{% block content %}
{% include "includes/sidenav.html" %}
<div class="min-h-screen bg-gray-100">
<!-- Header -->
<header class="bg-white shadow">
Expand Down
7 changes: 7 additions & 0 deletions website/templates/includes/sidenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,13 @@
</div>
<span class="truncate">{% trans "Education" %}</span>
</a>
<a href="{% url 'simulation_dashboard' %}"
class="group flex items-center px-2 py-2 text-lg font-medium rounded-md {% if request.resolver_match.url_name == 'simulation_dashboard' or 'simulation/' in request.path %}bg-[#feeae9] text-[#e74c3c]{% else %}text-gray-700 hover:bg-gray-100 hover:text-[#e74c3c]{% endif %} transition-all duration-200">
<div class="mr-3 flex-shrink-0 w-5 h-5 flex items-center justify-center {% if request.resolver_match.url_name == 'simulation_dashboard' or 'simulation/' in request.path %}text-[#e74c3c]{% else %}text-gray-500 group-hover:text-[#e74c3c]{% endif %} transition-all duration-200">
<i class="fas fa-flask"></i>
</div>
<span class="truncate">{% trans "Security Labs" %}</span>
</a>
<a href="{% url 'ossh_home' %}"
class="group flex items-center px-2 py-2 text-lg font-medium rounded-md {% if request.resolver_match.url_name == 'ossh_home' %}bg-[#feeae9] text-[#e74c3c]{% else %}text-gray-700 hover:bg-gray-100 hover:text-[#e74c3c]{% endif %} transition-all duration-200">
<div class="mr-3 flex-shrink-0 w-5 h-5 flex items-center justify-center {% if request.resolver_match.url_name == 'ossh_home' %}text-[#e74c3c]{% else %}text-gray-500 group-hover:text-[#e74c3c]{% endif %} transition-all duration-200">
Expand Down
1 change: 1 addition & 0 deletions website/templates/lab_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends 'base.html' %}
{% block content %}
{% include "includes/sidenav.html" %}
<div class="min-h-screen bg-gray-100">
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
Expand Down
1 change: 1 addition & 0 deletions website/templates/task_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends 'base.html' %}
{% block content %}
{% include "includes/sidenav.html" %}
<div class="min-h-screen bg-gray-100">
<header class="bg-white shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
Expand Down