To remember LoG
Writing few intresting things I liked. Maybe too basic sometimes :)
1. LFI vs File disclosure.
2. innerText vs innerHTML
Considering input as : <script>alert(1)</script>
//1. innerText
<script>
const script = document.createElement('script');
script.innerText = debug;
document.body.appendChild(script);
</script>
/*
In innerText, the input or data is not parsed,
i.e if we enter <script>alert(1)</script>
the output will be :
<script>
<script>alert(1)</script>
</script>
*/Last updated