title: Creating a full screen iframe
body: <p>I'm currently looking into XSS attacks, with the aim of using them in client demonstrations (I'm a pen tester). I've written a tool that will host a malicious version of a website's login page (that harvests usernames and passwords) and then redirects the victim back to the original website. However, I have been trying to get it to work using iframes instead, as it would look far more convincing as the url won't change.</p>
  
  <p>I've googled about and this seems to be the appropriate code:</p>
  
  <pre><code>&lt;iframe src="http://192.168.0.1/login.php" style="border: 0; width: 100%; height: 100%"&gt;
  </code></pre>
  
  <p>but the iframe created is by no means full screen (on internet explorer and firefox). Here is a screenshot </p>
  
  <p><img src="https://i.imgur.com/7bAbN.png" alt="screenshot"></p>
  
  <p>As you can see, the iframe login page is beneath the "what is your name?" area, thus no where near full screen. I've tried editing the css file of the malicious login page, to include full screen parameters, but this has no effect either.</p>
  
  <p>Does anyone have any solutions? Thanks!</p>