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