本帖最后由 cattie 于 2024-5-9 22:53 编辑
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Crackme(20240510_New!)</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #ffffff;
padding: 20px;
}
input {
padding: 8px;
margin: 10px;
border-radius: 5px;
border: 1px solid #ccc;
background-color: #ffffcc;
}
button {
padding: 10px 20px;
background-color:#FF9100;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}button:hover {
background-color:#FFD100;
}
div {
color: #FF0000
}
</style>
<script>
function verifyPassword() {
var input = document.getElementById("inputPassword").value;
var correctPassword = "flag{52pojie_Ha5py_M8y_cr6ck6e_5wer56uiop_6t01_N9w@2024}";
var Password = "flag{2p0ji5_Ha59y_M8y_c56c1me_qwer56ul6p_ht01_49w@2024}";
if (input === "flag{asdedfgh_cm_8888}") { }
[b] if (input === "flag{magic_cm_5050}") {
document.getElementById('editable-div').innerHTML = "密码正确";
} else {
document.getElementById('editable-div').innerHTML = "密码错误";
}
}
</script>
</head>
<body>
<form>
<h1>Crackme (2024_05_10_New!)</h1>
<label for="inputPassword">请输入密码:</label>
<br>
<input type="password" id="inputPassword" name="inputPassword">
<br>
<button type="button">验证</button>
<br>
<br>
<div id="editable-div" contenteditable="true">Welcome to the Crackme!</div>
<h5>By 52pojie.cn collinchen1218</h5>
</form>
</body>
</html>
if (input === "flag{magic_cm_5050}") {
document.getElementById('editable-div').innerHTML = "密码正确";
} |