1106 - Website: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „<pre> Set-Content -Path "C:\inetpub\wwwroot\it1XX\login.html" -Value @" <!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <title>Angemeldet</t…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
<pre> | |||
Set-Content -Path "C:\inetpub\wwwroot\it1XX\index.html" -Value @" | |||
<!DOCTYPE html> | |||
<html lang="de"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<title>Schulungslab Login – it1XX</title> | |||
<style> | |||
* { box-sizing: border-box; margin: 0; padding: 0; } | |||
body { | |||
font-family: Arial, sans-serif; | |||
background: #f0f2f5; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
min-height: 100vh; | |||
} | |||
.card { | |||
background: white; | |||
padding: 40px; | |||
border-radius: 8px; | |||
box-shadow: 0 2px 12px rgba(0,0,0,0.1); | |||
width: 360px; | |||
} | |||
.card h1 { | |||
font-size: 22px; | |||
margin-bottom: 8px; | |||
color: #1a1a2e; | |||
} | |||
.card p { | |||
font-size: 13px; | |||
color: #666; | |||
margin-bottom: 24px; | |||
} | |||
label { | |||
display: block; | |||
font-size: 13px; | |||
font-weight: bold; | |||
color: #333; | |||
margin-bottom: 4px; | |||
} | |||
input { | |||
width: 100%; | |||
padding: 10px 12px; | |||
border: 1px solid #ccc; | |||
border-radius: 4px; | |||
font-size: 14px; | |||
margin-bottom: 16px; | |||
} | |||
input:focus { | |||
outline: none; | |||
border-color: #4a90e2; | |||
} | |||
button { | |||
width: 100%; | |||
padding: 11px; | |||
background: #4a90e2; | |||
color: white; | |||
border: none; | |||
border-radius: 4px; | |||
font-size: 15px; | |||
cursor: pointer; | |||
} | |||
button:hover { background: #357abd; } | |||
.info { | |||
margin-top: 20px; | |||
padding: 10px; | |||
background: #fff8e1; | |||
border-left: 3px solid #f0a500; | |||
font-size: 12px; | |||
color: #555; | |||
border-radius: 2px; | |||
} | |||
.footer { | |||
margin-top: 16px; | |||
text-align: center; | |||
font-size: 11px; | |||
color: #aaa; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<div class="card"> | |||
<h1>Unternehmensportal</h1> | |||
<p>Bitte melden Sie sich mit Ihren Zugangsdaten an.</p> | |||
<form method="POST" action="/login.php"> | |||
<label for="username">Benutzername</label> | |||
<input type="text" id="username" name="username" | |||
placeholder="benutzername" autocomplete="off"> | |||
<label for="password">Passwort</label> | |||
<input type="password" id="password" name="password" | |||
placeholder="••••••••" autocomplete="off"> | |||
<button type="submit">Anmelden</button> | |||
</form> | |||
<div class="info"> | |||
Schulungsumgebung – Zugangsdaten werden im Klartext übertragen. | |||
Wireshark Filter: <strong>tcp.port == 80</strong> | |||
</div> | |||
<div class="footer">it1XX.lab · Kurs 1106 · Technik der Netze</div> | |||
</div> | |||
</body> | |||
</html> | |||
"@ | |||
</pre> | |||
<pre> | <pre> | ||
Set-Content -Path "C:\inetpub\wwwroot\it1XX\login.html" -Value @" | Set-Content -Path "C:\inetpub\wwwroot\it1XX\login.html" -Value @" | ||
| Zeile 27: | Zeile 137: | ||
"@ | "@ | ||
</pre> | |||
<pre> | |||
(Get-Content "C:\inetpub\wwwroot\it1XX\index.html") ` | |||
-replace 'action="/login.php"', 'action="/login.html"' | ` | |||
Set-Content "C:\inetpub\wwwroot\it1XX\index.html" | |||
</pre> | </pre> | ||
Aktuelle Version vom 23. April 2026, 09:23 Uhr
Set-Content -Path "C:\inetpub\wwwroot\it1XX\index.html" -Value @"
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Schulungslab Login – it1XX</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: Arial, sans-serif;
background: #f0f2f5;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.card {
background: white;
padding: 40px;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.1);
width: 360px;
}
.card h1 {
font-size: 22px;
margin-bottom: 8px;
color: #1a1a2e;
}
.card p {
font-size: 13px;
color: #666;
margin-bottom: 24px;
}
label {
display: block;
font-size: 13px;
font-weight: bold;
color: #333;
margin-bottom: 4px;
}
input {
width: 100%;
padding: 10px 12px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
margin-bottom: 16px;
}
input:focus {
outline: none;
border-color: #4a90e2;
}
button {
width: 100%;
padding: 11px;
background: #4a90e2;
color: white;
border: none;
border-radius: 4px;
font-size: 15px;
cursor: pointer;
}
button:hover { background: #357abd; }
.info {
margin-top: 20px;
padding: 10px;
background: #fff8e1;
border-left: 3px solid #f0a500;
font-size: 12px;
color: #555;
border-radius: 2px;
}
.footer {
margin-top: 16px;
text-align: center;
font-size: 11px;
color: #aaa;
}
</style>
</head>
<body>
<div class="card">
<h1>Unternehmensportal</h1>
<p>Bitte melden Sie sich mit Ihren Zugangsdaten an.</p>
<form method="POST" action="/login.php">
<label for="username">Benutzername</label>
<input type="text" id="username" name="username"
placeholder="benutzername" autocomplete="off">
<label for="password">Passwort</label>
<input type="password" id="password" name="password"
placeholder="••••••••" autocomplete="off">
<button type="submit">Anmelden</button>
</form>
<div class="info">
Schulungsumgebung – Zugangsdaten werden im Klartext übertragen.
Wireshark Filter: <strong>tcp.port == 80</strong>
</div>
<div class="footer">it1XX.lab · Kurs 1106 · Technik der Netze</div>
</div>
</body>
</html>
"@
Set-Content -Path "C:\inetpub\wwwroot\it1XX\login.html" -Value @"
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Angemeldet</title>
<style>
body { font-family: Arial, sans-serif; background: #f0f2f5;
display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.card { background: white; padding: 40px; border-radius: 8px;
box-shadow: 0 2px 12px rgba(0,0,0,0.1); width: 360px; text-align: center; }
h1 { color: #2e7d32; margin-bottom: 12px; }
p { color: #555; font-size: 14px; }
a { display: inline-block; margin-top: 20px; color: #4a90e2; font-size: 13px; }
</style>
</head>
<body>
<div class="card">
<h1>Anmeldung erfolgreich</h1>
<p>Die Zugangsdaten wurden im Klartext übertragen.<br>
Prüfen Sie jetzt Ihren Wireshark-Mitschnitt.</p>
<a href="/index.html">Zurück zum Login</a>
</div>
</body>
</html>
"@
(Get-Content "C:\inetpub\wwwroot\it1XX\index.html") ` -replace 'action="/login.php"', 'action="/login.html"' | ` Set-Content "C:\inetpub\wwwroot\it1XX\index.html"