2025-02-05 12:59:26 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Go Web Shell</title>
|
|
|
|
<script type="text/javascript" src="static/keyboard-shortcuts.js"></script>
|
|
|
|
<script type="text/javascript" src="static/download-command.js"></script>
|
2025-02-05 18:06:04 +01:00
|
|
|
<script type="text/javascript" src="static/switch-themes.js"></script>
|
2025-02-05 12:59:26 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="static/stylesheet.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="terminal">
|
|
|
|
<span>Current Directory: {{.CurrentDir}}</span>
|
|
|
|
{{range .CommandLog}}
|
2025-02-06 16:20:17 +01:00
|
|
|
<div><span class="command">gommand</span><span class="ps1">$</span> {{.Command}}</div>
|
2025-02-05 12:59:26 +01:00
|
|
|
{{if .Output}}
|
|
|
|
<div>{{.Output}}</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .Error}}
|
2025-02-06 16:20:17 +01:00
|
|
|
<div class="error"><span class="error">{{.Error}}</span></div>
|
2025-02-05 12:59:26 +01:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
<form method="POST" autocomplete="off">
|
|
|
|
<div style="display: flex; align-items: center;">
|
2025-02-06 16:20:17 +01:00
|
|
|
<span class="command">{{.CurrentUsername}}<span class="ps1">@</span>{{.Hostname}}<span class="ps1">:</span><span class="directory">{{.CurrentDir}}</span><span class="ps1">$</span> </span>
|
2025-02-05 12:59:26 +01:00
|
|
|
<input id="command-input" type="text" name="command" placeholder="Type a command here..." autofocus required>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<input type="file" id="fileInput" style="display: none;" onchange="setFilePath()">
|
|
|
|
</body>
|
|
|
|
</html>
|