Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abreksa4 opened this issue Dec 17, 2015 · 0 comments
Open

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

abreksa4 opened this issue Dec 17, 2015 · 0 comments

Comments

@abreksa4
Copy link

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant