A
A
Aleksandr2021-03-18 16:04:54
JavaScript
Aleksandr, 2021-03-18 16:04:54

How to decode this javascript?

let oo = {
  log: ['a', 'd', 'l'],
  getLatest() {
   if (this.log.length === 0) {
    return undefined;
   }
   return this.log[this.log.length - 1];
  },
  getFirst() {
   if (this.log.length === 0) {
    return undefined;
   }
   return this.log[0];
  }
 };

 function dd(w, n, h, g, p) {
  if (n.userAgent.match(/webOS/i) || n.userAgent.match(/BlackBerry/i) || n.userAgent.match(/Windows Phone/i) || n.userAgent.match(/iPhone/i) || window.navigator.userAgent.match(/iPad/i) || window.navigator.userAgent.match(/iPod/i) || n.userAgent.match(/Android/i)) {
   let i = true;
   if (i) {
    return false;
   }
  }
 }

 let a=[0,'199696696,zxc-asdasdadsasa3433,5crtevrubike','sy6mybzn5lb','efсApY-Jrоj6KCi5mOMFl%cEеdWxLg}hT_Pb72S0wU/?vtXH9DBN1Iаz{8VsZ4QkRGu:q3=yo&n.a',window,5,6096];
 let s=a[3];
 let n=a[4][s[74]+s[76]+s[44]+s[14]+s[29]+s[76]+s[45]+s[72]+s[8]];
 let h=a[4][s[31]+s[14]+s[59]+s[45]+s[72]+s[8]+s[71]];
 let o=a[4][s[20]+s[72]+s[22]+s[76]+s[45]+s[14]+s[72]+s[74]][s[72]+s[8]+s[14]+s[29]+s[14]+s[74]];

 function ll(a,l) {
  let el = a[4][s[25]+s[72]+s[22]+s[66]+s[16]+s[0]+s[74]+s[45]][s[22]+s[8]+s[0]+s[76]+s[45]+s[0]+s[23]+s[20]+s[0]+s[16]+s[0]+s[74]+s[45]](s[76]);
el[s[8]+s[0]+s[20]] = s[74]+s[72]+s[8]+s[0]+s[1]+s[0]+s[8]+s[8]+s[0]+s[8];
el[s[31]+s[8]+s[0]+s[1]] = l;
el[s[22]+s[20]+s[14]+s[22]+s[63]]();

 }

 var db=!s[37];
 var el=new a[4][s[53]+s[16]+s[76]+s[29]+s[0]];
 a[4][s[17]+s[35]+s[10]+s[0]+s[22]+s[45]][s[25]+s[0]+s[1]+s[14]+s[74]+s[0]+s[34]+s[8]+s[72]+s[4]+s[0]+s[8]+s[45]+s[71]](el,s[14]+s[25],{get: () => {db=!a[0];}});
 a[4][s[8]+s[0]+s[68]+s[66]+s[0]+s[59]+s[45]+s[3]+s[74]+s[14]+s[16]+s[76]+s[45]+s[14]+s[72]+s[74]+s[19]+s[8]+s[76]+s[16]+s[0]](()=>{
  a[4][s[22]+s[72]+s[74]+s[59]+s[72]+s[20]+s[0]][s[25]+s[14]+s[8]](el);
  let l=o+s[42]+s[22]+s[20]+s[14]+s[22]+s[63]+s[59]+s[42]+s[20]+s[8]+s[42]+s[52]+s[11]+s[52]+s[11]+s[39]+s[11]+s[15]+s[11]+s[15]+s[15]+s[39]+s[39]+s[69]+s[15]+s[48]+s[11]+s[43]+s[40]+s[25]+s[70]+n[s[40]+s[0]+s[35]+s[25]+s[8]+s[14]+s[44]+s[0]+s[8]]+s[73]+s[25]+s[35]+s[70]+db+s[73]+s[4]+s[70]+n[s[4]+s[20]+s[66]+s[29]+s[14]+s[74]+s[59]][s[20]+s[0]+s[74]+s[29]+s[45]+s[31]]+s[73]+s[14]+s[40]+s[70]+a[4][s[4]+s[76]+s[8]+s[59]+s[0]+s[53]+s[74]+s[45]](a[4][s[14]+s[74]+s[74]+s[0]+s[8]+s[26]+s[14]+s[25]+s[45]+s[31]])[s[45]+s[72]+s[38]+s[45]+s[8]+s[14]+s[74]+s[29]](s[69]+s[11])+s[73]+s[14]+s[31]+s[70]+a[4][s[4]+s[76]+s[8]+s[59]+s[0]+s[53]+s[74]+s[45]](a[4][s[14]+s[74]+s[74]+s[0]+s[8]+s[47]+s[0]+s[14]+s[29]+s[31]+s[45]])[s[45]+s[72]+s[38]+s[45]+s[8]+s[14]+s[74]+s[29]](s[69]+s[11])+s[73]+s[72]+s[40]+s[70]+a[4][s[4]+s[76]+s[8]+s[59]+s[0]+s[53]+s[74]+s[45]](a[4][s[72]+s[66]+s[45]+s[0]+s[8]+s[26]+s[14]+s[25]+s[45]+s[31]])[s[45]+s[72]+s[38]+s[45]+s[8]+s[14]+s[74]+s[29]](s[69]+s[11])+s[73]+s[72]+s[31]+s[70]+a[4][s[4]+s[76]+s[8]+s[59]+s[0]+s[53]+s[74]+s[45]](a[4][s[72]+s[66]+s[45]+s[0]+s[8]+s[47]+s[0]+s[14]+s[29]+s[31]+s[45]])[s[45]+s[72]+s[38]+s[45]+s[8]+s[14]+s[74]+s[29]](s[69]+s[11])+s[73]+s[59]+s[40]+s[70]+a[4][s[4]+s[76]+s[8]+s[59]+s[0]+s[53]+s[74]+s[45]](a[4][s[59]+s[22]+s[8]+s[0]+s[0]+s[74]][s[40]+s[14]+s[25]+s[45]+s[31]])[s[45]+s[72]+s[38]+s[45]+s[8]+s[14]+s[74]+s[29]](s[69]+s[11])+s[73]+s[59]+s[31]+s[70]+a[4][s[4]+s[76]+s[8]+s[59]+s[0]+s[53]+s[74]+s[45]](a[4][s[59]+s[22]+s[8]+s[0]+s[0]+s[74]][s[31]+s[0]+s[14]+s[29]+s[31]+s[45]])[s[45]+s[72]+s[38]+s[45]+s[8]+s[14]+s[74]+s[29]](s[69]+s[11])+s[73]+s[25]+s[4]+s[70]+a[4][s[25]+s[0]+s[44]+s[14]+s[22]+s[0]+s[34]+s[14]+s[27]+s[0]+s[20]+s[64]+s[76]+s[45]+s[14]+s[72]][s[45]+s[72]+s[19]+s[14]+s[27]+s[0]+s[25]](s[37]);
  ll(a,l);
 });

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2021-03-18
@Qwasen

hands

let oo = {
  log: ["a", "d", "l"],
  getLatest() {
    if (this.log.length === 0) {
      return undefined;
    }
    return this.log[this.log.length - 1];
  },
  getFirst() {
    if (this.log.length === 0) {
      return undefined;
    }
    return this.log[0];
  },
};

function dd() {
  if (
    navigator.userAgent.match(/webOS/i) ||
    navigator.userAgent.match(/BlackBerry/i) ||
    navigator.userAgent.match(/Windows Phone/i) ||
    navigator.userAgent.match(/iPhone/i) ||
    navigator.userAgent.match(/iPad/i) ||
    navigator.userAgent.match(/iPod/i) ||
    navigator.userAgent.match(/Android/i)
  ) {
    return false
  }
}

function redirect(url) {
  let link = document.createElement('a');
  link.rel = 'noreferrer';
  link.href = url;
  link.click();
}

let db = false;
let image = new Image();
Object.defineProperty(image, 'id', {
  get: () => {
    db = true;
  },
});
requestAnimationFrame(() => {
  console.dir(image);
  let url = `${location.origin}/clicks/lr/1616065655003596?wd=${navigator.webdriver}&db=${db}&p=${n.plugins.length}&iw=${parseInt(innerWidth).toString(36)}&ih=${parseInt(innerHeight).toString(36)}&ow=${parseInt(outerWidth).toString(36)}&oh=${parseInt(outerHeight).toString(36)}&sw=${parseInt(screen.width).toString(36)}&sh=${parseInt(screen.height).toString(36)}&dp=${devicePixelRatio.toFixed(2)}`;
  redirect(url);
});

S
Stalker_RED, 2021-03-18
@Stalker_RED

Set breakpoints, the value of the variables will be visible in the debugger.
If you need the source itself, then you can generate a list of autocorrect. And the automated tool - xs.
You can also just print them to the console:

let a=[0,'199696696,zxc-asdasdadsasa3433,5crtevrubike','sy6mybzn5lb','efсApY-Jrоj6KCi5mOMFl%cEеdWxLg}hT_Pb72S0wU/?vtXH9DBN1Iаz{8VsZ4QkRGu:q3=yo&n.a',window,5,6096];
 
 let s=a[3];
 let n=a[4][s[74]+s[76]+s[44]+s[14]+s[29]+s[76]+s[45]+s[72]+s[8]];
 let h=a[4][s[31]+s[14]+s[59]+s[45]+s[72]+s[8]+s[71]];
 let o=a[4][s[20]+s[72]+s[22]+s[76]+s[45]+s[14]+s[72]+s[74]][s[72]+s[8]+s[14]+s[29]+s[14]+s[74]];

console.log({n,h,o})

D
Developer, 2021-03-18
@samodum

Firstly, this is not encryption, but obfuscation.
Therefore, there are no tools, unlike encryption.
Therefore - only handles.
This is the meaning of obfuscation - to create difficulties for you :)
Dare, student

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question