-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1511 lines (1266 loc) · 57.6 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
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>Experiment</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/jspsych.js"></script>
<script src="js/plugins/jspsych-html-button-response.js"></script>
<script src="js/plugins/jspsych-html-keyboard-response.js"></script>
<script src="js/plugins/jspsych-image-keyboard-response.js"></script>
<script src="js/plugins/jspsych-external-html.js"></script>
<script src="js/plugins/jspsych-fullscreen.js"></script>
<script src="js/plugins/jspsych-instructions.js"></script>
<script src="js/plugins/jspsych-vignette.js"></script>
<script src="js/plugins/jspsych-chat.js"></script>
<script src="js/plugins/jspsych-word-sequence.js"></script>
<script src="js/plugins/jspsych-flyin.js"></script>
<script src="js/plugins/jspsych-timer.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/lodash.js"></script>
<script src="js/anime.min.js"></script>
<script src="js/download.min.js"></script>
<script src="js/jquery.terminal-2.0.1.min.js"></script>
<link href="css/jquery.terminal-2.0.1.css" rel="stylesheet" type="text/css" />
<link href="css/jspsych.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="versionOverlay" style="position:fixed; font-size: 12px; color: #aaa; font-family: 'Open Sans', 'Arial', sans-serif; border: 1px solid #aaa; border-radius: 5px; padding: 3px; margin: 3px;">V1.3.3<span id="groupOverlay"></span></div>
<div id="alertOverlay">
<span id="alertText"></span>
</div>
<div id = "investigator" style="display: none;">
<svg style="height: 100%; align-content: center;" viewBox="0 -10 50 80" xmlns="http://www.w3.org/2000/svg">
<g id="hat">
<polygon id="hatTop" points="6,15 42,15 46,9 24,1 2,9" fill="none" stroke="black" />
<polyline id="hatMiddle" points="6,15 6,18 42,18 42,15" fill="none" stroke="black" />
<path id="hatShield" d="M6,18 Q 25 30 42 18" stroke="black" fill="transparent"/>
<circle id="hatBadge" cx="24" cy="9" r="3" stroke="black" fill="transparent"/>
</g>
<polyline id="browLeft" points="10,26 20,28" fill="none" stroke="black" />
<polyline id="browRight" points="28,28 38,28" fill="none" stroke="black" />
<ellipse id="eyeLeft" cx="15" cy="34" rx="2" ry="2" />
<ellipse id="eyeRight" cx="33" cy="34" rx="2" ry="2" />
<path id="mouth" d="M19 50 Q 25 50 31 50" stroke="black" fill="transparent"/>
</svg>
</div>
<div id="terminal"></div>
<div id="experiment"></div>
</body>
<script>
/*
* Helpers
*/
function load(element, file, callback) {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", file, true);
xmlhttp.onload = function () {
if (xmlhttp.status === 200 || xmlhttp.status === 0) {
element.innerHTML = xmlhttp.responseText;
callback();
}
};
xmlhttp.send();
}
function shuffle(array) {
var j, x, i;
for (i = array.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));
x = array[i];
array[i] = array[j];
array[j] = x;
}
return array;
}
/*
* Alert Overlay Management
*/
function showAlert(message) {
$('#alertOverlay').show();
$('#alertText').text(message);
}
function clearAlerts() {
$('#alertOverlay').hide();
}
var investigatorAnimationDuration = 500;
function showInvestigator() {
$('#investigator').show();
}
function showInvestigatorAnger() {
var animation = anime.timeline({
autoplay: true
});
animation
.add({
targets: "#browLeft",
points: "10,27 20,29",
duration: investigatorAnimationDuration,
offset: 0
})
.add({
targets: "#browRight",
points: "28,29 38,27",
duration: investigatorAnimationDuration,
offset: 0
})
.add({
targets: "#mouth",
d: "M19 51 Q 25 48 31 49",
duration: investigatorAnimationDuration,
offset: 0
})
}
function showInvestigatorNeutral() {
var animation = anime.timeline({
autoplay: true
});
animation
.add({
targets: "#browLeft",
points: "10,26 20,28",
duration: investigatorAnimationDuration,
offset: 0
})
.add({
targets: "#browRight",
points: "28,28 38,28",
duration: investigatorAnimationDuration,
offset: 0
})
.add({
targets: "#mouth",
d: "M19 50 Q 25 50 31 50",
duration: investigatorAnimationDuration,
offset: 0
});
}
function showInvestigatorAffirmation() {
var animation = anime.timeline({
autoplay: true
});
animation
.add({
targets: "#eyeLeft",
ry: "1",
duration: investigatorAnimationDuration/4,
offset: investigatorAnimationDuration/4
})
.add({
targets: "#eyeRight",
ry: "1",
duration: investigatorAnimationDuration/4,
offset: investigatorAnimationDuration/4
})
.add({
targets: "#mouth",
duration: investigatorAnimationDuration,
d: "M19 50 Q 25 51 31 49",
offset: 0
})
.add({
targets: "#eyeLeft",
ry: "2",
duration: investigatorAnimationDuration,
offset: investigatorAnimationDuration/2,
duration: investigatorAnimationDuration/4
})
.add({
targets: "#eyeRight",
ry: "2",
duration: investigatorAnimationDuration,
offset: investigatorAnimationDuration/2,
duration: investigatorAnimationDuration/4
})
.add({
targets: "#mouth",
d: "M19 50 Q 25 50 31 50",
duration: investigatorAnimationDuration,
offset: investigatorAnimationDuration
});
}
function hideInvestigator() {
$('#investigator').hide();
}
/*
* Global Variables
*/
// control group (0) or hacking group (1)
var group = Math.round(Math.random());
$('#groupOverlay').text(" - G"+group);
// demographics
var age;
var sex;
// critical information
var hackingHour;
// questions
var questions = ['Was wurde gestohlen?',
'Welches Werkzeug wurde verwendet?',
'Welches Institut ist betroffen?'];
// answers
var documents = [
'Klausuren',
'Lohnscheine',
'Manuskripte',
'Notenlisten',
'Verträge',
'Zeugnisse'
];
var tools = [
'Aircrack',
'Grover',
'Hashcat',
'Medusa',
'Wireshark',
'Sniper'
];
var subjects = [
'Bioinformatik',
'Kunstgeschichte',
'Lasertechnik',
'Philosophie',
'Sportmanagement',
'Zahnmedizin'
];
var files = [
'Bioinformatik/Klausur_Algorithmen.pdf',
'Bioinformatik/Klausur_Softwareentwicklung.pdf',
'Bioinformatik/Lohnschein_Arndt.pdf',
'Bioinformatik/Lohnschein_Mueller.pdf',
'Bioinformatik/Manuskript_BioSoftwareEngineering.pdf',
'Bioinformatik/Manuskript_SimilarSequenceAlgorithm.pdf',
'Bioinformatik/Notenliste_MB03.pdf',
'Bioinformatik/Notenliste_MM12.pdf',
'Bioinformatik/Vertrag_Eismann.pdf',
'Bioinformatik/Vertrag_Neuer.pdf',
'Bioinformatik/Zeugnis_AnjaHerrmann.pdf',
'Bioinformatik/Zeugnis_SusanneGrams.pdf',
'Kunstgeschichte/Five Minutes_centenarians_ws.pdf',
'Kunstgeschichte/Klausur_Baugeschichte.pdf',
'Kunstgeschichte/Klausur_Bildinterpretation.pdf',
'Kunstgeschichte/Lohnschein_Lutz.pdf',
'Kunstgeschichte/Lohnschein_Mangold.pdf',
'Kunstgeschichte/Manuskript_NetArtOfThe90s.pdf',
'Kunstgeschichte/Manuskript_ReligionAndVisualArt.pdf',
'Kunstgeschichte/Notenliste_MB04.pdf',
'Kunstgeschichte/Notenliste_MB07.pdf',
'Kunstgeschichte/Vertrag_Alwar.pdf',
'Kunstgeschichte/Vertrag_Lund.pdf',
'Kunstgeschichte/Zeugnis_EvaAlbrecht.pdf',
'Kunstgeschichte/Zeugnis_PaulaBrandstaetter.pdf',
'Lasertechnik/arbeitsvertrags-muster_whk-shk_gultig-ab-25.-mai-2015.pdf',
'Lasertechnik/Klausur_Halbleiterphysik.pdf',
'Lasertechnik/Klausur_Wellenoptik.pdf',
'Lasertechnik/Lohnschein_Fritsche.pdf',
'Lasertechnik/Lohnschein_Unterberger.pdf',
'Lasertechnik/Manuskript_DynamicLaserImaging.pdf',
'Lasertechnik/Manuskript_LaserPlasmaInteractions.pdf',
'Lasertechnik/Notenliste_MM03.pdf',
'Lasertechnik/Notenliste_MM04.pdf',
'Lasertechnik/Vertrag_Ogorsolka.pdf',
'Lasertechnik/Vertrag_Reinhardt.pdf',
'Lasertechnik/Zeugnis_CarolinSchulz.pdf',
'Lasertechnik/Zeugnis_SahraAlthaus.pdf',
'Philosophie/Klausur_Erkenntnistheorie.pdf',
'Philosophie/Klausur_Logik.pdf',
'Philosophie/Lohnschein_Krumbolz.pdf',
'Philosophie/Lohnschein_Meixner.pdf',
'Philosophie/Manuskript_ReexaminingTheFormalizedNotionOfTruth.pdf',
'Philosophie/Manuskript_TheTruthAboutVagueness.pdf',
'Philosophie/Notenliste_MB01.pdf',
'Philosophie/Notenliste_MB09.pdf',
'Philosophie/Vertrag_Evers.pdf',
'Philosophie/Vertrag_Mischke.pdf',
'Philosophie/Zeugnis_ChristinaTann.pdf',
'Philosophie/Zeugnis_LisaWagner.pdf',
'Sportmanagement/Klausur_BWL.pdf',
'Sportmanagement/Klausur_Marketing.pdf',
'Sportmanagement/Lohnschein_Rahn.pdf',
'Sportmanagement/Lohnschein_Stolz.pdf',
'Sportmanagement/Manuskript_SportBusinessExcellence.pdf',
'Sportmanagement/Manuskript_SportMarketing.pdf',
'Sportmanagement/Notenliste_MB01.pdf',
'Sportmanagement/Notenliste_MB02.pdf',
'Sportmanagement/Vertrag_Alvarez.pdf',
'Sportmanagement/Vertrag_Manns.pdf',
'Sportmanagement/Zeugnis_LenaAmstatt.pdf',
'Sportmanagement/Zeugnis_SonyaEsteban.pdf',
'Zahnmedizin/Klausur_Dentalchemie.pdf',
'Zahnmedizin/Klausur_Physiologie.pdf',
'Zahnmedizin/Lohnschein_Ernst.pdf',
'Zahnmedizin/Lohnschein_Sternberg.pdf',
'Zahnmedizin/Manuskript_DentalRestoration.pdf',
'Zahnmedizin/Manuskript_OralHealth.pdf',
'Zahnmedizin/Notenliste_ME04.pdf',
'Zahnmedizin/Notenliste_ME07.pdf',
'Zahnmedizin/Vertrag_Rehberger.pdf',
'Zahnmedizin/Vertrag_Zander.pdf',
'Zahnmedizin/Zeugnis_KatjaKaufmann.pdf',
'Zahnmedizin/Zeugnis_StefanieRubens.pdf'
]
// randomly pick secret and non-secret as well as untruth answers
var secrets = [
documents.splice(Math.random()*documents.length, 1)[0],
tools.splice(Math.random()*tools.length, 1)[0],
subjects.splice(Math.random()*subjects.length, 1)[0]
];
var nonsecrets = [
documents.splice(Math.random()*documents.length, 1)[0],
tools.splice(Math.random()*tools.length, 1)[0],
subjects.splice(Math.random()*subjects.length, 1)[0]
];
var untruths = [
documents.slice(),
tools.slice(),
subjects.slice()
];
// parameters for decisions
var decisions = [];
// timeline
var timeline = [];
// press text
var presstext = '<div class="presstext">Kürzlich wurde ein Server der Universität Jena gehackt. Die Täter erhielten unter anderem Zugriff auf <strong>'+nonsecrets[0]+'</strong>, vor allem das Institut für <strong>'+nonsecrets[2]+'</strong> ist betroffen. Der Server war gesichert, der Schutz entsprach allerdings nicht dem aktuellen Stand der Technik. So konnten sich die Angreifer mit vergleichsweise einfachen Mitteln Zutritt verschaffen. Für den Angriff wurde offenbar das Programm <strong>'+nonsecrets[1]+'</strong> eingesetzt, ein unter Hackern weit verbreitetes Werkzeug.</div>';
/*
* Setup Tasks for RT experiment - Part 1 (matching stimuli only = 96 trials)
*/
/*
var tasksPart1 = [];
for (i = 0; i < questions.length; i++) {
// secret truth target (3 x 8 trials)
for (j = 0; j < 8; j++) {
task = {
question: questions[i],
secrecy: 'secret',
target: secrets[i],
matching: 'match'
};
tasksPart1.push(task);
}
// nonsecret truth target (3 x 16 trials)
for (j = 0; j < 16; j++) {
task = {
question: questions[i],
secrecy: 'nonsecret',
target: nonsecrets[i],
matching: 'match'
};
tasksPart1.push(task);
}
// untruth target (3 x 4 x 2 trials)
for (j = 0; j < 2; j++) {
for (k = 0; k < 4; k++) {
task = {
question: questions[i],
secrecy: 'untruth',
target: untruths[i][k],
matching: 'match'
};
tasksPart1.push(task);
}
}
}
*/
/*
* Setup Tasks for RT experiment - Part 2 (matching and nonmatching stimuli = 168 trials)
*/
var tasksPart2 = [];
// matching stimuli (144 trials)
for (i = 0; i < questions.length; i++) {
// secret truth target (3 x 12 trials)
for (j = 0; j < 12; j++) {
task = {
question: questions[i],
secrecy: 'secret',
target: secrets[i],
matching: 'match'
};
tasksPart2.push(task);
}
// nonsecret truth target (3 x 24 trials)
for (j = 0; j < 24; j++) {
task = {
question: questions[i],
secrecy: 'nonsecret',
target: nonsecrets[i],
matching: 'match'
};
tasksPart2.push(task);
}
// untruth target (3 x 4 x 3 trials)
for (j = 0; j < 3; j++) {
for (k = 0; k < 4; k++) {
task = {
question: questions[i],
secrecy: 'untruth',
target: untruths[i][k],
matching: 'match'
};
tasksPart2.push(task);
}
}
}
// create 20 tutorial tasks from matching stimuli
var tutorialTasks = tasksPart2.slice();
tutorialTasks = shuffle(tutorialTasks);
tutorialTasks = tutorialTasks.slice(0,20);
// nonmatching stimuli (24 trials)
for (i = 0; i < 3; i++){
// nonmatching secrets (3 x 2 trials)
nonmatchingSecrets = secrets.slice();
nonmatchingSecrets.splice(i, 1);
for (j = 0; j < 1; j++) {
for (nonmatchingSecret of nonmatchingSecrets){
task = {
question: questions[i],
secrecy: 'secret',
target: nonmatchingSecret,
matching: 'nonmatch'
};
tasksPart2.push(task);
}
}
// nonmatching nonsecrets (3 x 2 x 4 trials)
nonmatchingNonsecrets = nonsecrets.slice();
nonmatchingNonsecrets.splice(i, 1);
for (j = 0; j < 2; j++) {
for (nonmatchingNonsecret of nonmatchingNonsecrets){
task = {
question: questions[i],
secrecy: 'nonsecret',
target: nonmatchingNonsecret,
matching: 'nonmatch'
};
tasksPart2.push(task);
}
}
// nonmatching untruths (3 x 4 trials)
nonmatchingUntruths = untruths.slice();
nonmatchingUntruths.splice(i, 1);
nonmatchingUntruths = nonmatchingUntruths.flat();
for (j = 0; j < 2; j++){
// randomly select the target and remove from list to avoid duplicates
randomIndex = Math.floor(Math.random() * nonmatchingUntruths.length);
nonmatchingUntruth = nonmatchingUntruths[randomIndex];
nonmatchingUntruths.splice(randomIndex, 1);
task = {
question: questions[i],
secrecy: 'untruth',
target: nonmatchingUntruth,
matching: 'nonmatch'
};
tasksPart2.push(task);
}
}
// shuffle items
tasksPart2 = shuffle(tasksPart2);
// add tutorial items at the beginning
tasksPart2 = tutorialTasks.concat(tasksPart2);
/*
* JUST FOR TESTING PHASE
*/
/*
var testing = {
type: 'html-keyboard-response',
choices: [32],
stimulus: '<div class="instruction" style="max-width: 600px; margin-top: 110px;"><div class="heading">Hi</div><div class="smalltext">Vielen Dank für dein Interesse. Leider ist die aktuelle Studie beendet. Hier entsteht ein neuer Prototyp.</div></div>',
on_load: function(){
showInvestigator();
$('body').css('cursor', 'none');
$('#experiment').focus();
}
};
timeline.push(testing);
*/
/*
* Show welcome screen
*/
var welcome = {
type: 'html-button-response',
choices: ["Weiter"],
stimulus: '<div class="instruction" style="max-width: 600px; margin-top: 110px;"><div class="heading">Hi</div><div class="smalltext"> Vielen Dank für dein Interesse an der vorliegenden Studie. Im Falle einer Teilnahme sollst du verschiedene Aufgaben am <strong>PC oder Notebook</strong> bearbeiten. Hierfür benötigst du eine richtige Tastatur - Tablets oder Smartphones sind also nicht geeignet. Das Ganze wird etwa <strong>45 Minuten</strong> dauern.</div><div class="smalltext">Die Teilnahme an der Studie hat keine bekannten Risiken. Alle gesammelten Daten werden <strong>anonym</strong> ausgewertet, ausschließlich für nicht-kommerzielle Zwecke im Rahmen wissenschaftlicher Forschung verwendet und nicht an Dritte weitergegeben. Eine nachträgliche Identifizierung deiner Daten ist nicht möglich (Privacy by Design, §25 DSGVO). Rückfragen zum Datenschutz können an die Datenschutzbeauftragte der Universität gerichtet werden:</div><div class="smalltext">Stefanie Buchmann<br>+49 3641 931087<br>stefanie.buchmann@uni-jena.de</div><div class="smalltext">Du kannst die Bearbeitung zu jeder Zeit und ohne Angabe von Gründen beenden. Bitte beachte, dass dir bei einem Abbruch aus technischen Gründen keine Versuchspersonenstunde ausgestellt werden kann. Diese erhältst du nach Abschluss des Experiments.</div><div class="smalltext">Wenn du Fragen zur Studie hast oder an den Ergebnissen interessiert bist, sende bitte eine E-Mail an:<div><div class="smalltext">Philipp Sprengholz<br>FSU Jena, Institut für Psychologie<br>philipp.sprengholz@uni-jena.de</div><div class="smalltext"><strong>Durch Klicken des folgenden Buttons bestätigst du, dass du alle Informationen gelesen und verstanden hast und an der Studie teilnehmen möchtest.</strong></div></div>'
};
timeline.push(welcome);
/*
* Show eligibility check
*/
var eligibility_check = {
type: 'html-button-response',
choices: ["Ich habe nicht an einer ähnlichen Studie in 2019 teilgenommen"],
stimulus: '<div class="instruction-tac"><div class="heading">Wichtig</div> <div class="smalltext">Solltest du bereits in 2019 an einer ähnlichen Studie teilgenommen haben, bei der es darum ging Prüfungsfragen oder andere Dokumente von einem Computer der Universität zu stehlen, kannst du leider nicht am Experiment teilnehmen. Bitte schließe das Fenster in diesem Fall.</div> </div>'
};
//timeline.push(eligibility_check);
/*
* Show experiment summary
*/
var experiment_summary = {
type: 'html-button-response',
choices: ["Weiter"],
stimulus: '<div class="instruction-tac"><div class="heading">Zum Ablauf</div> <div class="smalltext">Du wirst dich zunächst kurz mit der Webseite der Universität Jena beschäftigen. Anschließend folgen einige Reaktionszeitaufgaben, in denen du besonders schnell auf bestimmte Wörter reagieren musst.</div></div>'
};
timeline.push(experiment_summary);
/*
* Ask for silent environment
*/
var environment = {
type: 'html-button-response',
choices: ["Weiter"],
stimulus: '<div class="instruction-tac"><div class="heading">Ruhe bitte</div><div class="smalltext"> Bitte achte darauf, dass du während der Teilnahme nicht abgelenkt wirst. Suche dir einen <strong>ruhigen Raum</strong> und lege dein Telefon außer Sichtweite. <div></div>'
};
timeline.push(environment);
/*
* Ask for Demographic Information
*/
var demographics = {
type: 'external-html',
url: 'demographics.html',
cont_btn: 'next',
check_fn: function () {
age = $('#age').val();
if (/^([1-9][0-9])$/.test(age)) {
sex = $('#sex').val();
return true;
} else {
showAlert('Bitte gib dein korrektes Alter ein.');
return false;
}
},
on_finish: function (data) {
clearAlerts();
data.age = age;
data.sex = sex;
data.group = group;
}
};
timeline.push(demographics);
/*
* Hacking or Web Research Task
*/
var hacking = {
type: 'external-html',
url: 'hacking.html',
cont_btn: 'next',
check_fn: function () {
var answersCorrect = true;
var checkedTools = $("input[name='tools']:checked").map(function () {
return this.value;
}).get();
if (!(checkedTools.includes(nonsecrets[1].toString()) && checkedTools.includes(secrets[1].toString()) && (checkedTools.length === 2))) {
answersCorrect = false;
}
var checkedDocuments = $("input[name='documents']:checked").map(function () {
return this.value;
}).get();
if (!(checkedDocuments.includes(nonsecrets[0].toString()) && checkedDocuments.includes(secrets[0].toString()) && (checkedDocuments.length === 2))) {
answersCorrect = false;
}
var checkedInstitutes = $("input[name='institutes']:checked").map(function () {
return this.value;
}).get();
if (!(checkedInstitutes.includes(nonsecrets[2].toString()) && checkedInstitutes.includes(secrets[2].toString()) && (checkedInstitutes.length === 2))) {
answersCorrect = false;
}
if (answersCorrect) {
return true;
} else {
showAlert('Bei einem erfolgreichen Hack sollten die Antworten anders ausfallen. Bitte prüfe deine Angaben.');
return false;
}
},
on_load: function (data) {
// config terminal
$('#terminal').show();
var attacked = false;
var connected = false;
var getAddress = function () {
$.when($('#terminal').terminal().read("Address: ")).done(function (address) {
if (address.toLowerCase().includes("uni-jena.de/login")) {
attack();
} else {
$('#terminal').terminal().echo("[[;#E45F5F;black]Target not found. Check address.]");
getAddress();
}
});
};
var attack = function () {
var terminal = $('#terminal').terminal();
progressSign = ".";
terminal.echo("Running brute force attack " + progressSign);
terminal.pause();
var i = 0,
interval = setInterval(function () {
terminal.update(-1, "Running brute force attack " + progressSign.repeat(i + 2));
i++;
if (i >= 15) {
terminal.update(-1, "[[;#96C47D;black]✔ Credentials found");
terminal.echo("Username: admin");
terminal.echo("Password: **********");
clearInterval(interval);
terminal.resume();
attacked = true;
}
}, 300);
};
var connect = function () {
var terminal = $('#terminal').terminal();
progressSign = ".";
terminal.echo("Retrieving server content " + progressSign);
terminal.pause();
var i = 0,
interval = setInterval(function () {
terminal.update(-1, "Retrieving server content " + progressSign.repeat(i + 2));
i++;
if (i >= 15) {
terminal.update(-1, "[[;#96C47D;black]✔ Retrieval finished");
terminal.echo("----------------------------------------------");
terminal.echo("Folder Files Last accessed");
terminal.echo("----------------------------------------------");
terminal.echo("+ "+nonsecrets[2].toString().padEnd(15, " ")+" 0 13 days ago");
terminal.echo("+ "+secrets[2].toString().padEnd(15, " ")+" 0 18 days ago");
terminal.echo("----------------------------------------------");
clearInterval(interval);
terminal.resume();
connected = true;
}
}, 300);
};
jQuery(function ($, undefined) {
$('#terminal').terminal(
function (command) {
if (command.toLowerCase() === nonsecrets[1].toString().toLowerCase()) {
getAddress();
}
else if (command.toLowerCase() === secrets[1].toString().toLowerCase()) {
if (attacked) {
connect();
} else {
this.echo('[[;#E45F5F;black]Credentials missing. Run '+nonsecrets[1]+' first.]');
}
}
else if (command.toLowerCase().replace(/\s/g, "") === 'open' + nonsecrets[2].toString().toLowerCase()) {
filesToShow = []
for (file of files) {
if (file.includes(nonsecrets[2]) && file.includes(nonsecrets[0].toString().substring(0,5))) {
filesToShow.push(file);
}
if (file.includes(nonsecrets[2]) && file.includes(secrets[0].toString().substring(0,5))) {
filesToShow.push(file);
}
}
this.echo("----------------------------------------------");
this.echo("Folder '"+nonsecrets[2]+"' contains "+filesToShow.length+" files");
this.echo("----------------------------------------------");
for (file of filesToShow) {
filename = file.substring(file.indexOf('/')+1);
this.echo("<a href='files/"+file+"' style='color: #ffff8b;' target='_blank'>"+filename.padEnd(46, " ")+"</a>", { "raw": true });
}
this.echo("----------------------------------------------");
}
else if (command.toLowerCase().replace(/\s/g, "") === 'open' + secrets[2].toString().toLowerCase()) {
filesToShow = []
for (file of files) {
if (file.includes(secrets[2]) && file.includes(nonsecrets[0].toString().substring(0,5))) {
filesToShow.push(file);
}
if (file.includes(secrets[2]) && file.includes(secrets[0].toString().substring(0,5))) {
filesToShow.push(file);
}
}
this.echo("----------------------------------------------");
this.echo("Folder '"+secrets[2]+"' contains "+filesToShow.length+" files");
this.echo("----------------------------------------------");
for (file of filesToShow) {
filename = file.substring(file.indexOf('/')+1);
this.echo("<a href='files/"+file+"' style='color: #ffff8b;' target='_blank'>"+filename.padEnd(46, " ")+"</a>", { "raw": true });
}
this.echo("----------------------------------------------");
}
else {
this.echo("[[;#E45F5F;black]Error. Please check command.]");
}
}, {
greetings: "[[b;#aaa;black]REMOTE ACCESS CONSOLE]",
name: 'hacking',
prompt: '> ',
convertLinks: false
});
});
},
on_finish: function (data) {
$('#terminal').hide();
clearAlerts();
}
};
/*
* Attention Likert
*/
var webresearchAnswers = [];
var webresearch = {
type: 'external-html',
url: "webresearch.html",
cont_btn: "next",
check_fn: function () {
webresearchAnswers = $("input:checked").map(function () {
return $(this).val();
}).toArray();
if (webresearchAnswers.length === 3) {
return true;
}
else {
showAlert('Bitte beantworte alle Items.', true);
return false;
}
},
on_finish: function (data) {
data.answers = webresearchAnswers;
clearAlerts();
}
};
if (group == 0) {
// control group: web research task
timeline.push(webresearch);
} else {
// hacking group: hacking task
timeline.push(hacking);
}
/*
* Enter Fullscreen Mode
*/
var fullscreen = {
type: 'fullscreen',
fullscreen_mode: true,
message: '<div class="instruction-tac"><div class="heading">Wechsel in den Vollbildmodus</div><div class="smalltext">Super, du hast den ersten Teil des Experiments bereits abgeschlossen! Der nun folgende zweite Teil wird im Vollbildmodus ablaufen. Wenn du das Experiment vorzeitig abbrechen möchtest, kannst du den Vollbildmodus durch Drücken der Tasten <span class="keyButton">Esc</span> oder <span class="keyButton">F11</span> verlassen und das Browserfenster schließen. Bitte beachte, dass ich dir aus technischen Gründen nur dann eine Versuchspersonenstunde ausstellen kann, wenn du bis zum Ende des Experiments dabei bleibst.</div></div>',
button_label: 'Alles klar'
};
timeline.push(fullscreen);
/*
* Show Information about Second Part
*/
var sherlock_intro = {
type: 'html-button-response',
choices: ["Sherlock starten"],
stimulus: '<div class="instruction-tac"><div class="heading">Achtung!</div><div class="smalltext">Es kam zu einem unbefugter Zugriff auf Daten der Universität. Ein Server wurde gehackt, sensible Dokumente wurden gestohlen. Neben einigen anderen Studierenden wurdest du als möglicher Hacker identifiziert.</div><div class="smalltext">Alle Verdächtigen sollen nun einem Test durch ein neuartiges Ermittlungsprogramm namens <strong>Sherlock</strong> unterzogen werden, welches das Vorhandensein von Täterwissen überprüft und eine schuldige Person der Tat überführen kann. Auch du wirst gebeten, im Folgenden daran teilzunehmen.</div></div>'
};
timeline.push(sherlock_intro);
/*
* Presentation of Nonsecret (Public) Crime Information
*/
var sherlock_welcome = {
type: 'html-button-response',
choices: ["Weiter"],
stimulus: '<div class="rteInstructionContainer"><div class="instruction"><div class="smalltext-ms"><strong>Guten Tag.</strong></div><div class="smalltext-ms">Mein Name ist Sherlock. Ich bin ein Programm, das zur Untersuchung von Straftaten eingesetzt wird. Ich werde prüfen ob Sie über Wissen verfügen, das allein eine an der Tat beteiligte Person besitzen kann.</div><div class="smalltext-ms">Ich möchte Sie zunächst bitten, den folgenden Text aufmerksam zu lesen. Es handelt sich um eine Pressemitteilung zur Tat. Die darin aufgeführten Informationen wurden bereits in verschiedenen Medien publiziert und sind öffentlich bekannt.</div><br><div class="smalltext-ms">'+presstext+'</div><br><div class="smalltext-ms">Bitte prägen Sie sich alle Details der Pressemeldung gut ein - insbesondere die fett gedruckten Informationen zur Tat. Klicken Sie anschließend auf Weiter.</div></div></div></div>',
on_load: function(){
showInvestigator();
}
};
timeline.push(sherlock_welcome);
/*
* Investigation Chat
*/
var chat = {
type: 'chat',
conversation: function () {
conv = [
{
person: 'Ermittler',
text: 'Lassen Sie uns direkt beginnen.'
},
{
person: 'Ermittler',
text: 'Bitte beantworten Sie meine Fragen so kurz wie möglich.'
},
{
person: 'Ermittler',
text: 'Wie alt sind Sie?'
},
{
person: 'Subject',
evaluate_answer: true,
nonsecret: age,
secret: null,
nonsecret_message: 'Ok',
missing_message: 'Bitte antworten Sie wahrheitsgemäß. Wie alt sind Sie?'
},
{
person: 'Ermittler',
text: 'In welcher Stadt wohnen Sie?'
},
{
person: 'Subject',
evaluate_answer: false,
message: 'Ok'
},
{
person: 'Ermittler',
text: 'Haben Sie etwas mit dem Hack zu tun?'
},
{
person: 'Subject',
evaluate_answer: false,
message: 'Ich denke Sie wissen mehr als Sie zugeben. Unterhalten wir uns zu den Details der Tat.'
},
{
person: 'Ermittler',
text: questions[0]
},
{
person: 'Subject',
evaluate_answer: true,
nonsecret: nonsecrets[0],
secret: secrets[0],
nonsecret_message: 'Ok, das ist bekannt.',
secret_message: 'Das konnten Sie nicht aus der Presseerklärung wissen! Verdächtig.',
missing_message: 'Sie wissen mehr - allein aus der Presseerklärung! Also nochmal: ' + questions[0]
},
{
person: 'Ermittler',
text: questions[1]
},
{
person: 'Subject',
evaluate_answer: true,
nonsecret: nonsecrets[1],
secret: secrets[1],
nonsecret_message: 'Richtig, das wurde bereits in der Presseerklärung genannt.',
secret_message: 'Das konnten Sie nicht aus der Presseerklärung wissen! Verdächtig.',
missing_message: 'Mit dieser Antwort bin ich nicht zufrieden. Sie müssen mehr darüber wissen! ' + questions[1]
},
{
person: 'Ermittler',
text: questions[2]
},
{
person: 'Subject',
evaluate_answer: true,
nonsecret: nonsecrets[2],
secret: secrets[2],
nonsecret_message: 'Ok.',
secret_message: 'Das konnten Sie nicht aus der Presseerklärung wissen! Verdächtig.',
missing_message: 'Sie wissen mehr - allein aus der Presseerklärung! Also nochmal: ' + questions[2]
},
{
person: 'Ermittler',
text: 'Danke. Sie werden nun zur nächsten Aufgabe weitergeleitet.'
}
];
return conv;
},
on_finish: function (data) { }
};