Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to deobfuscate javascript

var script = `var _0xb869=["x3Cx49x46x52x41x4Dx45x20x46x52x41x4Dx45x42x4Fx52x44x45x52x3Dx22x30x22x20x69x64x3Dx22x74x68x65x5Fx69x66x72x61x6Dx65x22x20x6Dx61x72x67x69x6Ex77x69x64x74x68x3Dx22x30x22x20x6Dx61x72x67x69x6Ex68x65x69x67x68x74x3Dx22x30x22x20x76x73x70x61x63x65x3Dx22x30x22x20x68x73x70x61x63x65x3Dx22x30x22x20x77x69x64x74x68x3Dx22x32x30x37x70x78x22x20x68x65x69x67x68x74x3Dx22x31x37x37x70x78x22x20x20x61x6Cx6Cx6Fx77x74x72x61x6Ex73x70x61x72x65x6Ex63x79x3Dx22x74x72x75x65x22x20x41x4Cx49x47x4Ex3Dx22x43x45x4Ex54x45x52x22x20x53x43x52x4Fx4Cx4Cx49x4Ex47x3Dx22x6Ex6Fx22x20x53x52x43x3Dx22","x2Fx77x69x64x73x63x2Ex70x68x70x3Fx69x64x3D","x22x3Ex3Cx2Fx49x46x52x41x4Dx45x3E","x77x72x69x74x65x6Cx6E"];document[_0xb869[3]](_0xb869[0]+script_path+_0xb869[1]+id_path+_0xb869[2]);`

document.querySelector('#rendered').value = script;
document.querySelector('#decoded').value  = deobfuscate(script);

function deobfuscate(obfuscatedScript) {
  var _0xb869 = ["x3Cx49x46x52x41x4Dx45x20x46x52x41x4Dx45x42x4Fx52x44x45x52x3Dx22x30x22x20x69x64x3Dx22x74x68x65x5Fx69x66x72x61x6Dx65x22x20x6Dx61x72x67x69x6Ex77x69x64x74x68x3Dx22x30x22x20x6Dx61x72x67x69x6Ex68x65x69x67x68x74x3Dx22x30x22x20x76x73x70x61x63x65x3Dx22x30x22x20x68x73x70x61x63x65x3Dx22x30x22x20x77x69x64x74x68x3Dx22x32x30x37x70x78x22x20x68x65x69x67x68x74x3Dx22x31x37x37x70x78x22x20x20x61x6Cx6Cx6Fx77x74x72x61x6Ex73x70x61x72x65x6Ex63x79x3Dx22x74x72x75x65x22x20x41x4Cx49x47x4Ex3Dx22x43x45x4Ex54x45x52x22x20x53x43x52x4Fx4Cx4Cx49x4Ex47x3Dx22x6Ex6Fx22x20x53x52x43x3Dx22","x2Fx77x69x64x73x63x2Ex70x68x70x3Fx69x64x3D","x22x3Ex3Cx2Fx49x46x52x41x4Dx45x3E","x77x72x69x74x65x6Cx6E"];
  return bracketToDotNotation(`document["${_0xb869[3]}"]("${_0xb869[0]}"+script_path+"${_0xb869[1]}"+id_path+"${_0xb869[2]}");`).replace(/s+/g, ' ').toLowerCase();
}

function bracketToDotNotation(input) {
  return input.replace(/(?<=w)["?(w+)"?]/g, '.$1');
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: js .reducer method 
Javascript :: full month name using moment 
Javascript :: change all a tag href javascript 
Javascript :: jquery find and replace text 
Javascript :: jQuery Stop Animations 
Javascript :: export html table to excel 
Javascript :: javascript debugging exercises 
Javascript :: making axios call with headers 
Javascript :: nodejs sql syntax 
Javascript :: how to mock a library in jest 
Javascript :: jquery get value of td by class 
Javascript :: js fetch status of 500 
Javascript :: check web3 metamask disconnect 
Javascript :: head component nextjs 
Javascript :: vue boolean 
Javascript :: document.queryselector picks first or last 
Javascript :: range of numbers in javascript 
Javascript :: react native map 
Javascript :: bootstrap multiselect dropdown with checkbox 
Javascript :: round to 2 decimal places 
Javascript :: if js 
Javascript :: javascript Create Strings 
Javascript :: use of map in react 
Javascript :: post json example 
Javascript :: replace characters form array 
Javascript :: node js split 
Javascript :: materialize dropdown js 
Javascript :: how to subtract time in javascript 
Javascript :: .includes is not a function 
Javascript :: Turn on modern JS by adding use strict to your script 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =