-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpasswordbreaker.html
52 lines (37 loc) · 1.02 KB
/
passwordbreaker.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<script>
// password breaker
var password = [2,7,0,8] ;
let input = prompt("Welcome to the web To Access this page please enter the valid password")
let userInput = input.split(",").map(Number);
if(JSON.stringify(userInput) === JSON.stringify(password)){
alert("Access Granted")
}
else{
alert("Access denied!!!!")
let ans = confirm("Do you Want to use the password breaker for Access this page?")
if(ans == true){
alert("Running passwordbreaker")
alert("To see cracked password inspect the page and checkout console ")
console.log("welcome to password breaker")
var crackedpassword = [];
for(let i = 0 ;i<password.length ;i ++){
let value = 0;
while(value != password[i]){
value++;
}
crackedpassword.push(value)
}
console.log("password cracked successfully!!!", crackedpassword)
}
}
</script>
<body>
</body>
</html>