batman
This commit is contained in:
11
templates/base.j2
Normal file
11
templates/base.j2
Normal 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
16
templates/index.j2
Normal 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
14
templates/shell.j2
Normal 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 %}
|
||||
Reference in New Issue
Block a user