52 lines
2.3 KiB
HTML
52 lines
2.3 KiB
HTML
![]() |
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>LOIC Web UI</title>
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container mt-5">
|
||
|
<h1 class="mb-4">LOIC Control Panel</h1>
|
||
|
<div class="card">
|
||
|
<div class="card-body">
|
||
|
<h5 class="card-title">Start Test</h5>
|
||
|
<form action="/start" method="post">
|
||
|
<div class="mb-3">
|
||
|
<label for="target_url" class="form-label">Target URL</label>
|
||
|
<input type="text" class="form-control" id="target_url" name="target_url" placeholder="http://example.com">
|
||
|
</div>
|
||
|
<div class="mb-3">
|
||
|
<label for="concurrency" class="form-label">Concurrency</label>
|
||
|
<input type="number" class="form-control" id="concurrency" name="concurrency" value="10">
|
||
|
</div>
|
||
|
<div class="mb-3">
|
||
|
<label for="duration" class="form-label">Duration (e.g., 1m, 30s)</label>
|
||
|
<input type="text" class="form-control" id="duration" name="duration" value="1m">
|
||
|
</div>
|
||
|
<div class="mb-3">
|
||
|
<label for="ramp_up" class="form-label">Ramp-Up Time (e.g., 30s)</label>
|
||
|
<input type="text" class="form-control" id="ramp_up" name="ramp_up" value="30s">
|
||
|
</div>
|
||
|
<button type="submit" class="btn btn-primary">Start Test</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card mt-3">
|
||
|
<div class="card-body">
|
||
|
<h5 class="card-title">Stop Test</h5>
|
||
|
<form action="/stop" method="post">
|
||
|
<button type="submit" class="btn btn-danger">Stop Test</button>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card mt-3">
|
||
|
<div class="card-body">
|
||
|
<h5 class="card-title">Status</h5>
|
||
|
<p>Current Status: {{ .Status }}</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||
|
</body>
|
||
|
</html>
|