index.php hinzugefügt
This commit is contained in:
63
index.php
Normal file
63
index.php
Normal file
@ -0,0 +1,63 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>E-Mail Analyse</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>E-Mail Analyse-Tool</h1>
|
||||
<form action="process_email.php" method="post" enctype="multipart/form-data">
|
||||
<label for="email_file">Wählen Sie eine E-Mail-Datei zum Hochladen aus (.eml oder .txt):</label>
|
||||
<input type="file" id="email_file" name="email_file" accept=".eml,.txt" required>
|
||||
<button type="submit">E-Mail analysieren</button>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if (isset($_GET['result'])) {
|
||||
$result = json_decode(base64_decode($_GET['result']), true);
|
||||
|
||||
if ($result) {
|
||||
echo '<h2>Analyse-Ergebnisse:</h2>';
|
||||
|
||||
echo '<h3>Header-Daten:</h3>';
|
||||
if (!empty($result['headers'])) {
|
||||
echo '<div class="header-section">';
|
||||
foreach ($result['headers'] as $name => $value) {
|
||||
echo '<p><strong>' . htmlspecialchars($name) . ':</strong> ' . nl2br(htmlspecialchars($value)) . '</p>';
|
||||
}
|
||||
echo '</div>';
|
||||
} else {
|
||||
echo '<p>Keine Header-Daten gefunden oder Fehler beim Parsen.</p>';
|
||||
}
|
||||
|
||||
echo '<h3>Phishing-Prüfung (Rudimentär):</h3>';
|
||||
echo '<div class="phishing-section">';
|
||||
if (!empty($result['phishing_check'])) {
|
||||
foreach ($result['phishing_check'] as $warning) {
|
||||
echo '<p class="warning">' . htmlspecialchars($warning) . '</p>';
|
||||
}
|
||||
} else {
|
||||
echo '<p>Keine offensichtlichen Phishing-Merkmale erkannt (Basierend auf einfacher Prüfung).</p>';
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
echo '<h3>Vollständige E-Mail (Vorschau):</h3>';
|
||||
if (isset($result['full_email_preview'])) {
|
||||
echo '<pre class="full-email-preview">' . htmlspecialchars($result['full_email_preview']) . '</pre>';
|
||||
} else {
|
||||
echo '<p>Vorschau nicht verfügbar.</p>';
|
||||
}
|
||||
|
||||
} else {
|
||||
echo '<p class="error">Fehler beim Laden der Analyse-Ergebnisse.</p>';
|
||||
}
|
||||
} elseif (isset($_GET['error'])) {
|
||||
echo '<p class="error">' . htmlspecialchars($_GET['error']) . '</p>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user