Skip to content

TypeError: Cannot set property 'pathname' of undefined #38

@abreksa4

Description

@abreksa4
  1. clone repo
  2. Install line-for-line from INSTALL without noticeable error, lots of warnings ;)
  3. Take this JavaScript: http://pastebin.com/ZLY90VnG and run it through http://www.atasoyweb.net/Javascript_Encrypter/javascript_encrypter_eng.php
  4. Put in samples/sample.js
  5. Run: python jsunpackn.py samples/sample.js -V
[nothing detected] samples/sample.js
        info: [decodingLevel=0] found JavaScript
        error: Error: unrecognized flag -f
                error: Try --help for options
                error:
                error: /home/abreksa/src/jsunpack-n/pre.js:396
                error:     location.pathname = String(this.href);
                error:                       ^
                error: TypeError: Cannot set property 'pathname' of undefined
                error:     at new my_location (/home/abreksa/src/jsunpack-n/pre.js:396:23)
                error:     at Object.<anonymous> (/home/abreksa/src/jsunpack-n/pre.js:402:16)
                error:     at Module._compile (module.js:456:26)
                error:     at Object.Module._extensions..js (module.js:474:10)
                error:     at Module.load (module.js:356:32)
                error:     at Function.Module._load (module.js:312:12)
                error:     at Function.Module.runMain (module.js:497:10)
                error:     at startup (node.js:119:16)
                error:     at node.js:902:3

On Ubuntu 14.04.1 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions