Easter egg: The Outfield - Your Love (1985)
A hidden _archives/1985 folder in the Public share with a README and a .url shortcut that opens the official video, a TXT record on the domain (nslookup -type=TXT yourlove.norbourg.lab), and a breadcrumb in the home page source. No copyrighted media is stored: the shortcut is a link. IIS has no MIME mapping for .url, so fs01.ps1 adds one.
This commit is contained in:
@@ -97,7 +97,7 @@ _start_lab() {
|
||||
else
|
||||
backend_launch dc01 run || { fail "dc01 did not start"; return 1; }
|
||||
fi
|
||||
_wait_winrm "$LAB_DC_IP" 240 || warn "dc01 did not answer WinRM in time"
|
||||
backend_ready dc01 240 || warn "dc01 did not answer in time"
|
||||
fi
|
||||
|
||||
for name in "${VM_NAMES[@]}"; do
|
||||
|
||||
@@ -57,8 +57,8 @@ _web_sync() {
|
||||
-c "prompt OFF; recurse ON; mkdir norbourg; mkdir norbourg\\site; lcd $site; cd norbourg\\site; mput *" \
|
||||
>/dev/null 2>&1 || true
|
||||
|
||||
_wait_winrm "$ip" 120 || die "fs01 did not answer WinRM"
|
||||
_winrm_retry "$ip" ps "Copy-Item -Path 'C:\\norbourg\\site\\*' -Destination 'C:\\inetpub\\wwwroot' -Recurse -Force; Test-Path 'C:\\inetpub\\wwwroot\\index.html'" \
|
||||
backend_ready fs01 300 || die "fs01 did not answer"
|
||||
backend_ps fs01 "Copy-Item -Path 'C:\\norbourg\\site\\*' -Destination 'C:\\inetpub\\wwwroot' -Recurse -Force; Test-Path 'C:\\inetpub\\wwwroot\\index.html'" \
|
||||
| grep -qi true || die "copy failed on fs01"
|
||||
|
||||
ok "site published to C:\\inetpub\\wwwroot"
|
||||
|
||||
@@ -80,6 +80,7 @@ load_config() {
|
||||
: "${LAB_BRIDGE:?no lab bridge configured (BRIDGE or PVE_BRIDGE)}"
|
||||
MIN_FREE_GB=${MIN_FREE_GB:-20}
|
||||
SEED_DIR=${SEED_DIR:-$LAB_ROOT/seeds}
|
||||
LAB_USER=${LAB_USER:-Administrator}
|
||||
DISK_FILL_RATIO=${DISK_FILL_RATIO:-60}
|
||||
ISO_BUDGET_GB=${ISO_BUDGET_GB:-8}
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ HITCOUNTER_ANY = re.compile(r"""["']/webstat/webstat\.exe["']""", re.IGNORECASE)
|
||||
HOME_HINT = (
|
||||
"\n<!-- TI: penser a migrer \\\\FS01\\Public vers le nouveau serveur "
|
||||
"avant la fermeture du site -->\n"
|
||||
"<!-- 1985 : bande sonore du departement TI -->\n"
|
||||
)
|
||||
|
||||
LINK_ATTR = re.compile(r"""(?:href|src)\s*=\s*["']([^"']+)["']""", re.IGNORECASE)
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
Archives du service des TI - 1985
|
||||
=================================
|
||||
|
||||
Le clip est sur le portable de l'instructeur.
|
||||
Si vous etes rendus ici, vous ecoutez de la bonne musique.
|
||||
|
||||
The Outfield - Your Love (1985)
|
||||
https://www.youtube.com/watch?v=4N1iwQxiHrs
|
||||
|
||||
Ce dossier aurait du etre vide depuis la migration de 2002.
|
||||
Personne n'a eu le coeur de le supprimer.
|
||||
|
||||
--
|
||||
(indice : le domaine se souvient aussi)
|
||||
@@ -0,0 +1,3 @@
|
||||
[InternetShortcut]
|
||||
URL=https://www.youtube.com/watch?v=4N1iwQxiHrs
|
||||
IconIndex=0
|
||||
@@ -103,6 +103,15 @@ try {
|
||||
Write-LabLog 'dc01: www A record already present'
|
||||
}
|
||||
|
||||
# Easter egg: discoverable with nslookup -type=TXT yourlove.norbourg.lab
|
||||
try {
|
||||
Add-DnsServerResourceRecord -ZoneName '@@DOMAIN@@' -Name 'yourlove' -Txt `
|
||||
-DescriptiveText 'The Outfield - Your Love (1985)' -ErrorAction Stop
|
||||
Write-LabLog 'dc01: yourlove TXT record created'
|
||||
} catch {
|
||||
Write-LabLog 'dc01: yourlove TXT record already present'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------ flags
|
||||
$flagDir = 'C:\flag'
|
||||
New-Item -ItemType Directory -Force -Path $flagDir | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user