-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstruction.php
210 lines (186 loc) · 14.8 KB
/
instruction.php
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?php session_start();
include 'config.php';
error_reporting(0);
if(!isset($_SESSION['uid']) || $_SESSION['consent'] != 'true') {
?>
<?php include 'head.php';?>
<body>
<!--header -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Logo -->
<div class="row"> <div class=col-md-1> <a href="index.php"><embed height="50" width="50" src="21.png"></a></div>
<div class="col-md-11">
<div class="navbar-header">
<a href="index.php" class="navbar-brand kalam">Phishing Email Detection Game</a>
</div>
<!-- Menu Items -->
<div class="collapse navbar-collapse" id="mainNavBar">
<ul class="nav navbar-nav">
<li> <a href="index.php" class="kalam">Home</a> </li>
<li class="active" class="kalam"> <a href="instruction.php">Instructions</a> </li>
<li> <a href="contact.php" class="kalam">Contact Us</a> </li>
</ul>
</div>
</div></div></div>
</nav><br><br><br><br>
<!--body -->
<div class="container-fluid">
<div class="jumbotron"><h1 class="text-center">INSTRUCTIONS</h1></div>
<div class="jumbotron">
<br>
<br>
<strong>BEST OF LUCK!</strong>-->
<p>Imagine yourself to be Miss Lily. You have an email account where you receive emails of different kinds related to your personal or professional life. <b>Your objective is to read emails in your inbox and suggest the likelihood of them being genuine (from senders with good intentions) or phishing (from senders with malicious intentions).</b> The task is shown in Figure 1 below.</p><br><br>
<center><div id="ing1" class="step" data-x="3500" data-y="-850" data-rotate="270" data-scale="6">
<embed src="message_day/email.jpg" height="400" width="900">
</div>
<h4><b>Figure 1.</b> Interface to read and decide on emails.</h4></center>
<br>
<br>
<p>To indicate the likelihood of an email being genuine or phishing, you need to move the slider in Q1 right or left, respectively (<b>the slider is placed in the middle and it shows an undecided response</b>). Next, in Q2, you need to indicate the confidence level of your response you made in Q1 (<b>the slider is placed in the middle and it shows a response that is intermediate confidence</b>). In Q3, you need to indicate what features of the email (sender, date, subject, or body) made you decide your response in Q1. Finally, Q4 asks you for your reaction to the email shown.
<br>
<br>
<b>Once you are done responding to Q1 to Q4 for the email shown, you need to click the “Submit” button</b>, which may reveal feedback about the email’s genuinity (or maliciousness) or may present you with the next email. You may be shown several emails in this task and you need to follow the above procedure for every email displayed. <br><br>
There are three phases in the game. After each phase the cumulative score will be shown to participants. However, in the second phase participants may or may not receive feedback after each email.
<br>
<br>
There might be attention checks in the experiment. Please stay attentive throughout the study.<br><br>
The score in this task is weighted. If you keep the slider at 50% (neutral) for an email then your score will be 0. If the likelihood marked by you for an email is more than 50% in the correct direction (genuine or phishing) or if the likelihood marked by you for an email is more than 50% in the incorrect direction (genuine or phishing), then you will gain or lose points, respectively. Thus, your score for each email you decide will be calculated based on the following formula:
<b><center><h3>Score = 0.02 * |50 - slider position| * direction</h3></center>
                                          where, direction = { 1, for the correct direction,
<br>                                                     -1, for the incorrect direction}
</b>
</p>
<br>
<p>You will be given the base payment as indicated in the job advertisement on MTurk. <b>In addition, your score will be totaled across all emails judged by you and top 1, top 2 and top 3 scorers will get an additional gift vouchers of INR 1500, INR 1000, and INR 500 respectively.</b> You will only be paid if you have fully completed the study and responded to attention check questions.
<br><br>Please note <b>your objective is to read emails in your inbox and suggest the likelihood of them being genuine or phishing.</b>
<br>
<br>
<br>
<strong>BEST OF LUCK!</strong
</p>
<!-- instructions end-->
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>
<?php
} else {
function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
};
if(!empty($_POST['mturk']) && !empty($_POST['age']) && !empty($_POST['gender']) && !empty($_POST['ed']) && !empty($_POST['major'])){
$mturk = test_input($_POST['mturk']);
$_SESSION['mturk'] = $mturk;
$age = test_input($_POST['age']);
$gender = test_input($_POST['gender']);
$ed = test_input($_POST['ed']);
// $occ = test_input($_POST['occ']);
$major = test_input($_POST['major']);
// $email = $_POST['email'];
}
$unqid = $_SESSION['uid'];
$_SESSION['name'] = 'Guest';
$conn = new mysqli("localhost", "root", "T22051@gmandi", "u978805288_PEDV2");
$sql = "INSERT INTO demographic (id, mturk_id, Age, Gender, Education, Major)
VALUES ('$unqid','$mturk','$age','$gender','$ed','$major')";
if ($conn->query($sql) === TRUE) {
$_SESSION['question']=1;
$_SESSION['conuter'] = 1;
$_SESSION['reward']= 0;
# $_SESSION['factor2'] =$rowfactor2["factor2"];
# $_SESSION['factor2'] = ($_SESSION['factor2']+1)%2;
$_SESSION['factor2']= 0;
$condi = "SELECT `condition_number` FROM `condition` ORDER BY RAND() LIMIT 1";
#$sqlnbr = "SELECT pay FROM nbr_pay WHERE day=" . $_SESSION['day'] . ";" ;
$resultcondi = mysqli_query($conn,$condi);
$rowcondi=mysqli_fetch_array($resultcondi,MYSQLI_ASSOC);
#$_SESSION['nbr_pay'] = $rownbr["pay"];
$_SESSION['cond'] =$rowcondi["condition_number"];
$_SESSION['ques'] = 0;
$_SESSION['conuter'] = 1;
$_SESSION['a'] = array();
$r1 = array(1,2,3,4,5,6,7,8,9,10);
shuffle($r1);
$a = array();
$r2_1 = array(11, 12, 13,14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33);
shuffle($r2_1);
$r3 = array(34,35,36,37,38,39,40,41,42,43);
shuffle($r3);
$a = array_merge($r1, $r2_1, $r3);
# $a = $r1 + $r2_1 + $r2_2 + $r2_3 + $r2_4 + $r3;
$_SESSION['a'] = $a;
# echo $a;
?>
<!DOCTYPE html>
<html lang="en">
<?php include 'head.php'; ?>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Logo -->
<div class="row"> <div class=col-md-1> <embed height="50" width="50" src="21.png"></div>
<div class="col-md-11">
<div class="navbar-header">
<a class="navbar-brand kalam">Phishing Email Detection Game</a>
</div>
</div></div></div>
</nav> <br><br><br><br>
<div class="container">
<div class="alert alert-success">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Good to go!</strong> Entry Submitted Successfully.
</div>
<div class="jumbotron">
<h1 class="text-center">Welcome!</h1><br><br><br><br>
<p class="text-justify">
<p>Imagine yourself to be Miss Lily. You have an email account where you receive emails of different kinds related to your personal or professional life. <b>Your objective is to read emails in your inbox and suggest the likelihood of them being genuine (from senders with good intentions) or phishing (from senders with malicious intentions).</b> The task is shown in Figure 1 below.</p><br><br>
<center><div id="ing1" class="step" data-x="3500" data-y="-850" data-rotate="270" data-scale="6">
<embed src="message_day/email.jpg" height="400" width="900">
</div>
<h4><b>Figure 1.</b> Interface to read and decide on emails.</h4></center>
<br><br><p>To indicate the likelihood of an email being genuine or phishing, you need to move the slider in Q1 right or left, respectively (<b>the slider is placed in the middle and it shows an undecided response</b>). Next, in Q2, you need to indicate the confidence level of your response you made in Q1 (<b>the slider is placed in the middle and it shows a response that is intermediate confidence</b>). In Q3, you need to indicate what features of the email (sender, date, subject, or body) made you decide your response in Q1. Finally, Q4 asks you for your reaction to the email shown.
<br><br><b>Once you are done responding to Q1 to Q4 for the email shown, you need to click the “Submit” button</b>, which may reveal feedback about the email’s genuinity (or maliciousness) or may present you with the next email. You may be shown several emails in this task and you need to follow the above procedure for every email displayed.
<br><br>
There are three phases in the game. After each phase the cumulative score will be shown to participants. However, in the second phase participants may or may not receive feedback after each email.
<br><br>
There might be attention checks in the experiment. Please stay attentive throughout the study.<br><br>
The score in this task is weighted. If you keep the slider at 50% (neutral) for an email then your score will be 0. If the likelihood marked by you for an email is more than 50% in the correct direction (genuine or phishing) or if the likelihood marked by you for an email is more than 50% in the incorrect direction (genuine or phishing), then you will gain or lose points, respectively. Thus, your score for each email you decide will be calculated based on the following formula:
<b><center><h3>Score = 0.02 * |50 - slider position| * direction</h3></center>
                                          where, direction = { 1, for the correct direction,
<br>                                                     -1, for the incorrect direction}
</b>
</p>
<br><p>You will be given the base payment as indicated in the job advertisement on MTurk. <b>In addition, your score will be totaled across all emails judged by you and top 1, top 2 and top 3 scorers will get an additional gift vouchers of INR 1500, INR 1000, and INR 500 respectively.</b> You will only be paid if you have fully completed the study and responded to attention check questions.
<br><br>Please note <b>your objective is to read emails in your inbox and suggest the likelihood of them being genuine or phishing.</b>
<br><br><br>
<strong>BEST OF LUCK!</strong></p>
<!-- <h4><a href="game.php"><input type="submit" value="Play" style="position:relative;left:50%" class="btn btn-primary btn-lg" onclick = "javascript:startTobiiServer()"></h4></a> -->
<a href="game.php"><button type="button" class="btn btn-primary btn-lg" style="position:relative;left:50%">PLAY</button></a>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>
<?php
} else {
?>
<?php echo $_SESSION['uid'].$_SESSION['consent'].$sql.$_SESSION['factor1']; ?>
<!DOCTYPE html>
<html lang="en">
<?php include 'head.php'; ?>
<body>
<div class="container">
<h1>Sorry!</h1><br><br><h3>Entry could not submitted. Please <a href="index.php">try again</a> after sometime.</h3>
</div>
</body>
</html>
<?php
}
}
?>