Benign javascript Download

core.js

Creates DOM elementHTML literal contains inline event attribute
SHA-256be9f7799e27b5459f08f1275de6bd651cb754391899fb74dd1c2762b7f70fade

Evidence

Accesses browser document.cookie property lines 12–21
12:71… nes will increment to 0 */
13
14
15
16function GetCookie(c_name) {
17 if (document.cookie.length > 0) {
18 c_start=document.cookie.indexOf(c_name + "=");
19 if (c_start!=-1) {
20 c_start=c_start + c_name.length+1;
21 c_end=document.c …
setFullYear call syntax lines 22–40
22:8… c_end==-1) {
23 c_end=document.cookie.length;
24 }
25 return unescape(document.cookie.substring(c_start,c_end));
26 }
27 }
28 return "";
29 }
30
31function SetCookie(c_name,value,isPersistent) {
32 if (isPersistent) {
33 var expiration_date = new Date();
34 expiration_date.setFullYear(expiration_date.getFullYear() + 1);
35 document.cookie = c_name + "=" +escape( value ) + "; expires="+ expiration_date.toGMTString() + '; Path=/';
36 }
37 else {
38 document.cookie = c_name + "=" +escape( value ) + "; Path=/";
39 }
40 …
Calls a dollar-named DOM utility lines 43–56
43:75… h=/';
44 }
45
46
47function AjaxFailure(func, error) {
48 var message = 'Fatal error in ' + func + '(): ' + error;
49
50 $('#FailureDiv').show();
51 $('#FailureDiv').css('display','flex');
52 $('#FailureDivBody').html(message);
53
54 var safeMessage = encodeURI(message);
55
56 $('#FailureEmail').html("<a href='mailto:s[email protected]?subject=System error on page " + window.location.href + "&amp;b …
Splits the browser cookie string into fields lines 64–76
64:16… CartCounter() {
65 var count = 0;
66
67 var keyValuePairs = document.cookie.split(/; */);
68 for(var i = 0; i < keyValuePairs.length; i++) {
69 var name = keyValuePairs[i].substring(0, keyValuePairs[i].indexOf('='));
70 if (name.substring(0,5)=='Cart-') {
71 count++;
72 }
⋯4 lines
Quoted y/yes alternatives or comparisons lines 143–168
143:16… rotocol !== "https:") {
144 location.protocol = "https:";
145 }
146
147 $.ajax({
148 url: "/tt/res/modals.html",
149 type: "GET"
150 })
151 .done(function (result) {
152 $("body").append(result);
153 Startup1();
154 });
155 }
156
157
158function Startup1() {
159 if (GetCookie('BypassIntroAnimation')=='yes') { Startup2(); }
160 else { setTimeout(Startup2, 1500); }
161 }
162
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.