Proxy Request ed9f714c-f234-49e3-b675-da6373fe9e2d

Parent Attack 81767306-813a-4e0e-b099-71b61a805b85
Date 2019-04-27 12:18:31PM
URL
images.cashfiesta.com/images/js/main.js
Form Data []
Headers ["Accept: */*", "Accept-Encoding: gzip, deflate", "Accept-Language: en-US,en;q=0.5", "Connection: keep-alive", "Referer: http://tr.kqzamd.com/track/c2.php?tcuid=mcc4488f881d6827099416"]
// Register document.getElementById() function
if (!document.getElementById) {
	if (document.all) {
		document.getElementById=function(){
			if (typeof(document.all[arguments[0]]) != "undefined") {
				return document.all[arguments[0]];
			}
			
			return null;
		};
	} else if(document.layers) {
		document.getElementById=function() {
			if (typeof(document[arguments[0]]) != "undefined") {
				return document[arguments[0]];
			}
			
			return null;
		};
	}
}

function cf_redirect(id) {
	e = document.getElementById(id);
	if (typeof(e.click) != "undefined") {
		e.click();
	} else {
		document.location.href = e.href;
	}
}

function cf_getFormCode(query) {
	var ret = '';
	query = query+'';
	query = query.substring((query.indexOf('?')) + 1);
	if (query.length < 1) {

		return ret;
	}
	
	keypairs = new Object();
	numKP = 1;
	while(query.indexOf('&') > -1) {
		keypairs[numKP] = query.substring(0, query.indexOf('&'));
		query = query.substring((query.indexOf('&')) + 1);
		numKP++;
	}
	keypairs[numKP] = query;
	for(i in keypairs) {
		keyName		= keypairs[i].substring(0, keypairs[i].indexOf('='));
		keyValue	= keypairs[i].substring((keypairs[i].indexOf('=')) + 1);
		
		while(keyValue.indexOf('+') > -1) {
			keyValue = keyValue.substring(0, keyValue.indexOf('+')) + ' ' + keyValue.substring(keyValue.indexOf('+') + 1);
		}
		
		keyValue = unescape(keyValue);
		
		ret += '<input type="hidden" name="'+keyName+'" value="'+keyValue+'" />';
	}
	
	return ret;
}

function cf_setLinksProp(link_substr ,prop_name ,prop_value){
	for(var i = 0; i < document.links.length; i++) {
		ee = document.links[i];
		st_url = ee.href;
		if ( -1 != st_url.indexOf(link_substr) ) {
			eval("ee."+prop_name+" = '"+prop_value+"';");
		}
	}
}



/**
 * Submits given form
 * @param mixed form - string | object
 */
function submitForm(form) {
	
	try {
		var jForm = null;
		
		if ('string' == typeof(form)) {
			jForm = document.forms[form];
		} else if ('object' == typeof(form)) {
			jForm = form;
		} else {
			throw 'Invalid type of form argument';
		}
		
		if ('function' == typeof(jForm.onsubmit)) {
			var sResult = jForm.onsubmit();
			if (false != sResult) {
				jForm.submit();
			}
		} else {
			jForm.submit();
		}
	} catch(e) {
		alert("Error: "+e);
	}
}


function getEventTarget(e) {
	if (!e) var e = window.event;
	if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	if (targ.nodeType == 3) // defeat Safari bug
		targ = targ.parentNode;
	
	return targ;
}

function addNewOnclick(element, eFunc) {
	
	var old = (element.onclick) ? element.onclick : function () {};
	element.onclick = function (e) {old(); eFunc(e);};
}

function addNewOnfocus(element, eFunc) {
	
	var old = (element.onfocus) ? element.onfocus : function () {};
	element.onfocus = function (e) {old(); eFunc(e);};
}

function addNewOnblur(element, eFunc) {
	
	var old = (element.onblur) ? element.onblur : function () {};
	element.onblur = function (e) {old(); eFunc(e);};
}

function addNewOnkeypress(element, eFunc) {
	
	var old = (element.onkeypress) ? element.onkeypress : function () {};
	element.onkeypress = function (e) {old(); eFunc(e);};
}

function addNewOnsubmit(element, eFunc) {

	var old = (element.onsubmit) ? element.onsubmit : function () {};
	element.onsubmit = function (e) {old(); eFunc(e);};
}


function getBodySize() {
	var myWidth = 0, myHeight = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
//	window.alert( 'Width = ' + myWidth );
//	window.alert( 'Height = ' + myHeight );
	return {width:myWidth, height:myHeight};
}


Date.prototype.getTimestamp = function() {
	
	return Math.round(this.getTime() / 1000);
}
© 2021 threat.gg