refactor: make nicer ui, web, log

This commit is contained in:
Dobin
2024-03-08 11:09:31 +00:00
parent c990a6699d
commit 215e24ffe0
11 changed files with 60 additions and 74 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<ul class="nav nav-tabs flex-column" id="myTab" role="tablist">
<div class="col-md-2">
<ul class="nav nav-pills flex-column" id="myTab" role="tablist">
{% for log_file in log_files %}
<li class="nav-item" role="presentation">
<button
class="nav-link {% if loop.last %}active{% endif %}"
class="nav-link btn btn-light {% if loop.last %}active{% endif %}"
id="project-{{log_file['id']}}-tab"
data-bs-toggle="tab"
data-bs-target="#project-{{log_file['id']}}"
@@ -20,7 +20,7 @@
</ul>
</div>
<div class="col-md-9">
<div class="col-md-10">
<div class="tab-content" id="myTabContent">
{% for log_file in log_files %}
<div
+25 -10
View File
@@ -7,12 +7,14 @@
{% include 'navigation.html' %}
<div class="indent">
<h1> Project {{project_name}} </h1>
<h2> {{project_name}} </h2>
<form method="POST" enctype="multipart/form-data" action="/add_project">
<input type="hidden" name="project_name" value="{{project_name}}">
<div class="row">
<div class="col-4">
<input type="text" name="project_name" class="hidden form-control" value="{{project_name}}"
placeholder="Projekt" aria-label="PROJECTNAME" aria-describedby="basic-addon1">
<div class="col-3">
<input type="text" name="comment" class="hidden form-control" value="{{project.comment}}"
placeholder="" aria-label="PROJECTNAME" aria-describedby="basic-addon1">
<select class="form-select" name="shellcode" aria-label="SHELLCODE">
{% for shellcode in shellcodes %}
@@ -33,7 +35,7 @@
{% endfor %}
</select>
</div>
<div class="col-4">
<div class="col-3">
<select class="form-select" name="source_style" aria-label="SOURCESTYLE">
{% for name, value in sourcestyles %}
@@ -52,7 +54,7 @@
</select>
</div>
<div class="col-4">
<div class="col-3">
<select class="form-select" name="alloc_style" aria-label="ALLOCSTYLE">
{% for name, value in allocstyles %}
<option value="{{name}}"
@@ -78,20 +80,33 @@
</select>
</div>
</div>
</form>
</form>
<div class="row">
<div class="col-4">
<div class="col-3">
<button class="btn btn-primary" type="submit" value="save">Save</button>
<form method="POST" enctype="multipart/form-data" action="/start_project">
<input type="hidden" name="project_name" value="{{project_name}}">
<div class="form-check">
<input class="form-check-input" name="try_start" type="checkbox" value="checked" id="flexCheckDefault" checked>
<label class="form-check-label" for="flexCheckDefault">
Start Infected Exe
</label>
</div>
<button class="btn btn-primary" type="submit" value="start">Start</button>
</form>
</div>
</div>
<div class="row">
<div class="col">
<div class="custom-line"></div> <!-- Here's the horizontal line -->
</div>
</div>
<div class="row">
<div class="col-md-12">
-1
View File
@@ -68,7 +68,6 @@
</div>
<button class="btn btn-primary" type="submit" value="save">Save</button>
<button class="btn btn-primary" type="submit" value="Verify">Verify</button>
</div>
</form>