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

O site jsfuck.com está desatualizado #50

Open
guther opened this issue May 31, 2016 · 4 comments
Open

O site jsfuck.com está desatualizado #50

guther opened this issue May 31, 2016 · 4 comments

Comments

@guther
Copy link

guther commented May 31, 2016

No site jsfuck.com o caractere '[' é representado como '(GLOBAL+"")[0]'
Isso está quebrando no NODEJS.
O estranho é que no site está diferente do GITHUB, pois o GIT está '[': '(Function("return{}")()+"")[0]'
Esse sim não dá erro no NODEJS.
O problema de usar o "return this" no nodejs é que ele não possui esse objeto nativamente, e mesmo utilizando o módulo JSDOM, as versões mais antigas não possuem suporte ao objeto "window.this"

@hazzik
Copy link
Contributor

hazzik commented Jun 5, 2016

On the site jsfuck.com the character '[' is represented as '(GLOBAL+"")[0]'
This is breaking the nodejs.
The strange thing is that the site is different from GitHub as the GIT is '[' '(Function ("return {}") () + "") [0]'
This rather gives no error in nodejs.
The problem with using the "return this" in nodejs is that it does not have that object natively, and even using the JSDOM module, older versions do not support the object "window.this"

@aemkei
Copy link
Owner

aemkei commented Jun 5, 2016

Hmm. It works here with the Node.js tests. What error are you seeing?

@guther
Copy link
Author

guther commented Jun 5, 2016

O problema ocorre somente na ofuscação criada pelo website www.jsfuck.com porque o arquivo http://www.jsfuck.com/jsfuck.js está desatualizado e diferente do GITHUB.
Ao clicar no botão "Encode" no website, o código criado dentro do TextArea é diferente.
A linha 104 do arquivo http://www.jsfuck.com/jsfuck.js causa erros no NODEJS.
Mas no GIthub está OK.

@CyrilWork
Copy link

the version of the site was not up to date with the version from Github

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

4 participants