This commit is contained in:
Sivert V. Sæther
2025-09-26 15:54:44 +02:00
commit ef77991a1f
9 changed files with 126 additions and 0 deletions

11
templates/base.j2 Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/static/style.css" />
<title>{% block title %}{% endblock %} - C2py</title>
{% block head %}{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>

16
templates/index.j2 Normal file
View File

@@ -0,0 +1,16 @@
{% extends "base.j2" %}
{% block title %}Home{% endblock %}
{% block head %}
{% endblock %}
{% block body %}
<h1>C2py</h1>
<p class="important">
Welcome to my awesome command and control admin panel!
</p>
<h3>Active bots;</h3>
{% for bot in bots %}
<a href='/shell/{{ bot }}' target='_blank'><p>{{ bot }}</p></a>
{% else %}
<p>None</p>
{% endfor %}
{% endblock %}

14
templates/shell.j2 Normal file
View File

@@ -0,0 +1,14 @@
{% extends "base.j2" %}
{% block title %}shell - {{ name }}{% endblock %}
{% block head %}
{% endblock %}
{% block body %}
<h1>C2py - shell - {{ name }}</h1>
<form method="get" name="{{ name }}">
<input type="text" name="cmd" autofocus id="cmd" size="80">
<input type="submit" value="Execute">
</form>
{% if res %}
<p>{{ res }}</p>
{% endif %}
{% endblock %}