Any good programmer here?

Homeless queen

Registered Member
Joined
Dec 21, 2019
Messages
56
Reaction score
3
Hi all i found this code and want to add to my website but the thing that i didn't know is how to change the time and how to change the text that will display after the time finish
i searched on all the code but found nothing
Can any one help

The full code is here https://pastebin.com/PEUYLjzt
 
This is obfuscated JavaScript. I "fixed" some of it below to put you on the right path. What is this code supposed to do?

var xchxbvdcbv = "4";
var fghdfghdg = "2644";
var iutuiyxvxccxv = 'PleaseWait';
var tuyutrdfgd = true;
/** @Type {!Array} */
var _0x1e02 = ["0", "textContent", " ", ":", "innerHTML", "Q29kZTog", "atob", "blur", "addEventListener", "focus", "display", "style", "none", "#tutyufhgfhgf", "querySelector"];
/**
* @Param {number} courseId
* @Param {?} canCreateDiscussions
* @return {undefined}
*/
function dfgdfgsdf(courseId, canCreateDiscussions) {
/** @Type {number} */
var durationSeconds = courseId;
var ShopPage;
var tmp;
setInterval(function() {
if (tuyutrdfgd == true) {
/** @Type {number} */
ShopPage = parseInt(durationSeconds / 60, 10);
/** @Type {number} */
tmp = parseInt(durationSeconds % 60, 10);
ShopPage = ShopPage < 10 ? _0x1e02[0] + ShopPage : ShopPage;
tmp = tmp < 10 ? _0x1e02[0] + tmp : tmp;
canCreateDiscussions[_0x1e02[1]] = iutuiyxvxccxv + _0x1e02[2] + ShopPage + _0x1e02[3] + tmp;
if (--durationSeconds < 0) {
canCreateDiscussions[_0x1e02[4]] = window[_0x1e02[6]](_0x1e02[5]) + fghdfghdg;
}
}
}, 1000);
}
window[_0x1e02[8]](_0x1e02[7], rewrgdfvf);
window[_0x1e02[8]](_0x1e02[9], uioioyuergesss);
/**
* @return {undefined}
*/
function rewrgdfvf() {
/** @Type {boolean} */
tuyutrdfgd = false;
}
/**
* @return {undefined}
*/
function uioioyuergesss() {
/** @Type {boolean} */
tuyutrdfgd = true;
}
/**
* @Param {?} mmCoreSecondsYear
* @return {undefined}
*/
function fhdfghdfh(mmCoreSecondsYear) {
mmCoreSecondsYear[_0x1e02[11]][_0x1e02[10]] = _0x1e02[12];
/** @Type {number} */
var courseid = 60 * xchxbvdcbv;
var canCreateDiscussions = document[_0x1e02[14]](_0x1e02[13]);
dfgdfgsdf(courseid, canCreateDiscussions);
}
 
This is obfuscated JavaScript. I "fixed" some of it below to put you on the right path. What is this code supposed to do?

var xchxbvdcbv = "4";
var fghdfghdg = "2644";
var iutuiyxvxccxv = 'PleaseWait';
var tuyutrdfgd = true;
/** @Type {!Array} */
var _0x1e02 = ["0", "textContent", " ", ":", "innerHTML", "Q29kZTog", "atob", "blur", "addEventListener", "focus", "display", "style", "none", "#tutyufhgfhgf", "querySelector"];
/**
* @Param {number} courseId
* @Param {?} canCreateDiscussions
* @return {undefined}
*/
function dfgdfgsdf(courseId, canCreateDiscussions) {
/** @Type {number} */
var durationSeconds = courseId;
var ShopPage;
var tmp;
setInterval(function() {
if (tuyutrdfgd == true) {
/** @Type {number} */
ShopPage = parseInt(durationSeconds / 60, 10);
/** @Type {number} */
tmp = parseInt(durationSeconds % 60, 10);
ShopPage = ShopPage < 10 ? _0x1e02[0] + ShopPage : ShopPage;
tmp = tmp < 10 ? _0x1e02[0] + tmp : tmp;
canCreateDiscussions[_0x1e02[1]] = iutuiyxvxccxv + _0x1e02[2] + ShopPage + _0x1e02[3] + tmp;
if (--durationSeconds < 0) {
canCreateDiscussions[_0x1e02[4]] = window[_0x1e02[6]](_0x1e02[5]) + fghdfghdg;
}
}
}, 1000);
}
window[_0x1e02[8]](_0x1e02[7], rewrgdfvf);
window[_0x1e02[8]](_0x1e02[9], uioioyuergesss);
/**
* @return {undefined}
*/
function rewrgdfvf() {
/** @Type {boolean} */
tuyutrdfgd = false;
}
/**
* @return {undefined}
*/
function uioioyuergesss() {
/** @Type {boolean} */
tuyutrdfgd = true;
}
/**
* @Param {?} mmCoreSecondsYear
* @return {undefined}
*/
function fhdfghdfh(mmCoreSecondsYear) {
mmCoreSecondsYear[_0x1e02[11]][_0x1e02[10]] = _0x1e02[12];
/** @Type {number} */
var courseid = 60 * xchxbvdcbv;
var canCreateDiscussions = document[_0x1e02[14]](_0x1e02[13]);
dfgdfgsdf(courseid, canCreateDiscussions);
}

Thank you very much but it seem that the code is not completed
i mean the begining and the end
The code supose to show a text that i put there after x time
 
The code you provided is incomplete. How can anyone solve your problem? Use the HAF forum and send him the complete code.
 
The code you provided is incomplete. How can anyone solve your problem? Use the HAF forum and send him the complete code.
It's complete
put it on html page and you will see that it work
 
OK, so let's go thru a few things here.

The below will make so that anything here will never run if place in HTML. Those are tags to comment html in order to deactivate it.
Code:
<!-- anything here -->

If its within javascript it will work given you have proper javascript in it.

---

Moving on further to the code you posted on pastebin, that code is obfuscated, why?

Here is a short example:
Code:
var _0x1e02=["\x30","\x74\x65\x78\x74\x43\x6F\x6E\x74\x65\x6E\x74","\x20","\x3A","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x51\x32\x39\x6B\x5A\x54\x6F\x67","\x61\x74\x6F\x62","\x62\x6C\x75\x72","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x66\x6F\x63\x75\x73","\x64\x69\x73\x70\x6C\x61\x79","\x73\x74\x79\x6C\x65","\x6E\x6F\x6E\x65","\x23\x74\x75\x74\x79\x75\x66\x68\x67\x66\x68\x67\x66","\x71\x75\x65\x72\x79\x53\x65\x6C\x65\x63\x74\x6F\x72"];

The above is a variable holding an array of hexadecimals that converted will lead to something like
Code:
var _0x1e02 = ["0", "textContent", " ", ":", "innerHTML", "Q29kZTog", "atob", "blur", "addEventListener", "focus", "display", "style", "none", "#tutyufhgfhgf", "querySelector"];

These for example:
Code:
var xchxbvdcbv = decodeURIComponent(window.atob("NA=="));
var fghdfghdg = decodeURIComponent(window.atob("MjY0NA=="));
var iutuiyxvxccxv = decodeURIComponent(window.atob("UGxlYXNlV2FpdA=="));

lead to:
Code:
var xchxbvdcbv = 4;
var fghdfghdg =2644;
var iutuiyxvxccxv = "PleaseWait";
 
Back
Top