diff --git a/sass/_variables.scss b/sass/_variables.scss index 4e604c5..ffcc7cc 100644 --- a/sass/_variables.scss +++ b/sass/_variables.scss @@ -4,6 +4,7 @@ --text-color: #1a1a1a; --text-muted: #6b7280; --accent-color: #10b981; // Emerald + --accent-hover: #059669; // Emerald darker --surface-color: #ffffff; --border-color: rgba(0, 0, 0, 0.05); --shadow-color: rgba(0, 0, 0, 0.05); diff --git a/static/js/404.js b/static/js/404.js index bc49082..58ac0c9 100644 --- a/static/js/404.js +++ b/static/js/404.js @@ -4,7 +4,10 @@ var body = document.getElementById('term-body'); if (!body) return; - var path = window.location.pathname; + var path = window.location.pathname; + var promptUser = body.dataset.prompt || 'user@pwnbox'; + var hostname = body.dataset.hostname || 'pwnbox'; + var whoami = body.dataset.whoami || 'l0st_r3ader'; var links = [ { href: body.dataset.linkHome, label: '~/home' }, @@ -16,7 +19,7 @@ { type: 'cmd', text: 'cd ' + path }, { type: 'out-error', text: 'bash: cd: ' + path + ': No such file or directory' }, { type: 'cmd', text: 'whoami' }, - { type: 'out', text: 'l0st_r3ader' }, + { type: 'out', text: whoami }, { type: 'cmd', text: 'ls ~/recovery/' }, { type: 'ls' } ]; @@ -27,7 +30,7 @@ function ps1() { var s = document.createElement('span'); s.className = 'term-ps1'; - s.textContent = 'user@blackout:~$ '; + s.textContent = promptUser + '@' + hostname + ':~$ '; return s; } diff --git a/templates/404.html b/templates/404.html index 1e2cf37..de23cac 100644 --- a/templates/404.html +++ b/templates/404.html @@ -13,13 +13,16 @@ - bash — pwnbox + bash — {{ config.extra.terminal_hostname | default(value="pwnbox") }}
+ data-link-tags="{{ get_url(path="/tags") }}" + data-prompt="{{ config.extra.terminal_prompt_user | default(value="user@pwnbox") }}" + data-hostname="{{ config.extra.terminal_hostname | default(value="pwnbox") }}" + data-whoami="{{ config.extra.terminal_whoami | default(value="l0st_r3ader") }}">
diff --git a/templates/base.html b/templates/base.html index 4c34e28..5a33b8f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,7 +25,7 @@ - + @@ -180,16 +180,16 @@ }); - + {% block head %}{% endblock head %} @@ -261,7 +261,7 @@