aemkei / jsfuck

Write any JavaScript with 6 Characters: []()!+
jsfuck.com
Do What The F*ck You Want To Public License
8.16k stars 674 forks source link

O site jsfuck.com está desatualizado #50

Open guther opened 8 years ago

guther commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

guther commented 8 years ago

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 commented 7 years ago

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