Tighten branding and decoy fixes
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,7 +1,4 @@
|
||||
references_for_redisign
|
||||
src/main/resources/static/*
|
||||
!src/main/resources/static/fake
|
||||
!src/main/resources/static/fake/**
|
||||
*.pcap
|
||||
data
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
FROM node:19-alpine
|
||||
WORKDIR /tmp/build/
|
||||
RUN apk add --no-cache python3 make g++
|
||||
COPY ./frontend/ .
|
||||
RUN export NODE_OPTIONS=--openssl-legacy-provider && npm install && npm run build
|
||||
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
<div class="d-flex align-items-center pl-3">
|
||||
<span class="navbar-brand mb-0 ml-2">
|
||||
<span class="brand-dot"></span>
|
||||
0xb00b5 team Packmate
|
||||
0xb00b5 PM
|
||||
</span>
|
||||
<span class="navbar-sub">@danosito</span>
|
||||
</div>
|
||||
|
||||
<div class="navbar-metrics">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<b-dropdown no-flip text="Patterns" block variant="dark" class="col-sm-1 mr-0 p-0">
|
||||
<b-dropdown no-flip text="Patterns" block variant="dark" class="col-sm-1 mr-0 p-0 patterns-dropdown">
|
||||
<li role="presentation" style="padding-left: 0.5em; padding-right: 0.5em;">
|
||||
<button role="menuitem" type="button" class="btn btn-sm btn-primary btn-block"
|
||||
@click.stop.prevent="showAddPattern">
|
||||
@@ -196,6 +196,10 @@
|
||||
font-family: "Ubuntu Mono", "Lucida Console", monospace;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
.patterns-dropdown > .btn {
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.ignore-pattern button {
|
||||
|
||||
@@ -126,6 +126,8 @@
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
font-family: var(--pixel-font);
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
|
||||
@@ -65,7 +65,7 @@ public class FakeAdminResponder {
|
||||
public String funPageHtml() {
|
||||
String phrases = toJson(getFunPhrases());
|
||||
String images = toJson(encodedImages);
|
||||
return """
|
||||
String template = """
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -190,8 +190,8 @@ public class FakeAdminResponder {
|
||||
<div class="footer-note">Real packets stay locked. This is your glitch gallery.</div>
|
||||
</div>
|
||||
<script>
|
||||
const phrases = %s;
|
||||
const images = %s;
|
||||
const phrases = __PHRASES__;
|
||||
const images = __IMAGES__;
|
||||
const canvas = document.getElementById('snap-canvas');
|
||||
const ctx = canvas.getContext('2d');
|
||||
const textEl = document.getElementById('typed-text');
|
||||
@@ -269,7 +269,10 @@ public class FakeAdminResponder {
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
""".formatted(phrases, images);
|
||||
""";
|
||||
return template
|
||||
.replace("__PHRASES__", phrases)
|
||||
.replace("__IMAGES__", images);
|
||||
}
|
||||
|
||||
public String fakePacketsHtml() {
|
||||
@@ -454,7 +457,7 @@ public class FakeAdminResponder {
|
||||
"b00b5 is not a fresh meat:(",
|
||||
"marcus, send your packmate credits pls",
|
||||
"Marcus, fuck off",
|
||||
"<a href=\\"https://youtu.be/rrw-Pv3rc0E?si=-ZQmhZVxh4HF6luD\\">Your special guide to get flag!</a>"
|
||||
"<a href='https://youtu.be/rrw-Pv3rc0E?si=-ZQmhZVxh4HF6luD'>Your special guide to get flag!</a>"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user