> For the complete documentation index, see [llms.txt](https://kunalwalavalkar.gitbook.io/write-ups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kunalwalavalkar.gitbook.io/write-ups/root-me/web-client/javascript-native-code.md).

# Javascript - Native code

<figure><img src="/files/w4MeOc2vYYDYB8WrcGC8" alt=""><figcaption></figcaption></figure>

The website prompts us to enter a password.

Let's check the source code.

<figure><img src="/files/mmzikL8ok8FZWsXpF3Yi" alt=""><figcaption></figcaption></figure>

If we replace the last pair of brackets, to `toString()`, we can see the deobfuscated Javascript.

<figure><img src="/files/yNKjab93uywk5DwZD1BM" alt=""><figcaption></figcaption></figure>

```js
function anonymous() 
{
	a=prompt('Entrez le mot de passe');
	if(a=='toto123lol'){
		alert('bravo');
	}else{
		alert('fail...');
	}
}
```

### Password

```
toto123lol
```
