mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
Manual push Fri Jun 9 12:16:37 AM CEST 2023
This commit is contained in:
@ -35,4 +35,10 @@ After this, I installed Windows 10 (a build from 2019 I have on a burned DVD alw
|
||||
|
||||
!! Hardening Windows
|
||||
|
||||
In this case "hardening" is meant as enhancing the privacy of our Windows against third-party apps, which we need to evade VM detection; we don't mean it as making the system more secure or robust for an exam purpose, which is something neutral to us (we as examinees don't care about it, it does neither benefit nor harm us).
|
||||
|
||||
[TODO] (https://pastebin.com/XEn7BykP)
|
||||
|
||||
!! No abuse
|
||||
|
||||
Be careful of only using this information if you actually need to run SEB on Linux or have other issues. Do not abuse the guide to create a VM for doing the exam and then getting out of it mid-session to use the host system normally and cheat. The procedure is not intended for cheating and if we start using it to do that, examiners will push for the holes that allow VM detection to be patched. If we only use it for valid reasons of OS compatibility, likely no one will protest and we will not be forced to use an OS we don't like as host on our computers. If you have to cheat at the written exam then you will fail the oral exam anyways, so study and don't use this method for cheating.
|
||||
|
@ -2,7 +2,7 @@
|
||||
. ./Src.*.sh || true
|
||||
|
||||
# Update time of last edit
|
||||
sh ./OcttKB.EmptyDate.sh || true
|
||||
sh ./EmptySetDate.sh || true
|
||||
|
||||
# Ensure important directories
|
||||
rm -rf ./Output.tmp || true
|
||||
|
@ -3,5 +3,5 @@ creator: Octt
|
||||
modified: 20230417120312165
|
||||
modifier: Octt
|
||||
tags:
|
||||
title: $:/OcttKB/Repo/GitHub.Main.sh
|
||||
type: text/plain
|
||||
title: $:/OcttKB/Repo/Deploy.Main.sh
|
||||
type: text/plain
|
@ -10,9 +10,9 @@ tiddlywiki \
|
||||
--rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
|
||||
|
||||
# Apply patches to the static HTML
|
||||
python3 ../PatchStatic.py
|
||||
python3 ../PatchStatic.py ./Static.html
|
||||
|
||||
# Deploy copies of immediately previous versions
|
||||
Url="https://kb.octt.eu.org"
|
||||
wget -O ./-1.html "$Url" || true
|
||||
wget -O ./-1.html "$Url" || true
|
||||
wget -O ./-2.html "$Url/-1.html" || true
|
||||
|
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
cat << EOF > ./Wiki-OcttKB/tiddlers/System/\$__OcttKB_Empty.tid
|
||||
created: 19700101000000000
|
||||
modified: $(date +%Y%m%d%H%M%S000)
|
||||
title: \$:/OcttKB/Empty
|
||||
EOF
|
@ -0,0 +1,6 @@
|
||||
created: 20230414104412035
|
||||
creator: Octt
|
||||
modified: 20230414104554549
|
||||
modifier: Octt
|
||||
title: $:/OcttKB/Repo/EmptySetDate.sh
|
||||
type: text/plain
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
. ./Src.*.sh || true
|
||||
sh ./BuildSPA.sh
|
||||
sh ./DeployAll.sh
|
||||
|
@ -1,12 +1,35 @@
|
||||
#!/usr/bin/env python3
|
||||
from base64 import b64encode
|
||||
from bs4 import BeautifulSoup
|
||||
from re import sub
|
||||
from sys import argv
|
||||
|
||||
File = 'Static.html'
|
||||
File = argv[-1]
|
||||
B64Prefix = 'data:text/html;base64,'
|
||||
|
||||
def b64encodeStr(Data):
|
||||
return b64encode(Data.encode()).decode()
|
||||
|
||||
def MkHtml(Content:str):
|
||||
return f'''\
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>{Content}</body>
|
||||
</html>
|
||||
'''
|
||||
|
||||
def Fix1(m):
|
||||
return f'<details><a name="{m.group(1)}"></a><summary>{m.group(2)}</summary>'
|
||||
|
||||
Source = str(BeautifulSoup(open(File, 'r'), 'html5lib'));
|
||||
def SafeIframe(m):
|
||||
SrcData = m.group(2)
|
||||
SrcData = b64encodeStr(MkHtml(f'<a href="{SrcData}">Click to load: {SrcData}</a>'))
|
||||
return f'<iframe {m.group(1)} src="{B64Prefix}{SrcData}"></iframe>'
|
||||
|
||||
open(File, 'w').write(sub('<details><a name="(.+)"><summary>(.+)<\/summary>\s*<\/a>', Fix1, Source));
|
||||
Html = str(BeautifulSoup(open(File, 'r'), 'html5lib'))
|
||||
|
||||
Html = sub('<details><a name="(.+)"><summary>(.+)<\/summary>\s*<\/a>', Fix1, Html)
|
||||
Html = sub('<iframe( +)src="(.+)"><\/iframe>', SafeIframe, Html)
|
||||
Html = sub('<iframe (.+) src="(.+)"><\/iframe>', SafeIframe, Html)
|
||||
|
||||
open(File, 'w').write(Html)
|
||||
|
@ -18,9 +18,9 @@ TryCrossRepoSync(){
|
||||
CommitMsg0="$("OcttKB Cross-Repo Sync" | ToLower)"
|
||||
[ "$CommitCheck" != "$CommitMsg0 (html to raw)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (raw to html)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (htm to raw)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (raw to htm)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (web to raw)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (raw to web)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (htm to raw)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (raw to htm)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (web to raw)" ] && \
|
||||
[ "$CommitCheck" != "$CommitMsg0 (raw to web)" ] && \
|
||||
sh ./GitLab.CrossRepoSync.sh || true
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
ToLower(){
|
||||
echo "$1" | tr "[:upper:]" "[:lower:]"
|
||||
}
|
||||
ToLower(){ echo "$1" | tr "[:upper:]" "[:lower:]"; }
|
||||
|
@ -54,7 +54,9 @@ title: $:/Styles/Breadcrumbs
|
||||
|
||||
.tc-static-story-river > .tc-tiddler-frame > .tc-tiddler-title details > summary,
|
||||
.View-Breadcrumbs details > summary {
|
||||
width: fit-content;
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
tc-table-of-contents
|
||||
|
@ -14,4 +14,4 @@
|
||||
"tiddlywiki/starlight",
|
||||
"tiddlywiki/vanilla"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user