For example we have this:
<script type="text/javascript" charset="utf-8">
$(function () {
var stranica = "#aXSSinjection point";
var stranicaContainers = $('div.stabs > div');
stranicaContainers.hide().filter('#ageneral').show();
$('div.stabs ul.stranicaNavigation a').click(function () {
stranicaContainers.hide();
$('div.stabs ul.stranicaNavigation a').removeClass('selectedstranica');
$(this).addClass('selectedstranica');
return false;
}).filter(stranica).click();
});
</script>
This page is just an example, got it from pastebin. So now how can I show alert box without using </script>
. I always try to close that function and then add alert(0) and then ignore the rest of js with //, but sometimes it works sometimes it doesn't.