I've been trying to break this up for a few hours now but with no success... I am pretty desperate now :(
I am doing penetration testing for a company and I need to bypass this frame killer JS:
'
<style/>body{display:none;}</style>
<script>
if (self.location === top.location) {
var theBody = document.getElementsByTagName('body')[0];
theBody.style.display = "block";
} else {
if(self.location.hostname===top.location.hostname)
{
//allow framing if it's in same domain
var theBody = document.getElementsByTagName('body')[0];
theBody.style.display = "block";
}
else
{
top.location=self.location;
}
}
</script>`
Thank you.