Creating a full screen iframe

前端 未结 2 1279
眼角桃花
眼角桃花 2021-02-05 17:15

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 we

相关标签:
2条回答
  • 2021-02-05 17:27

    This code works:

    <html> 
        <head>
            <style type="text/css">
                body
                {
                    margin:   0;
                    overflow: hidden;
                }
    
                #iframe1
                {
                    height:   100%;
                    left:     0px;
                    position: absolute;
                    top:      0px;
                    width:    100%;
                }
            </style>
        </head>
    
        <body>
            <iframe id="iframe1" src="HERE PLACE YOUR URL" frameborder="0"></iframe>
        </body>
    </html>
    
    0 讨论(0)
  • 2021-02-05 17:38

    Not tested, but try this:

    <iframe src="http://192.168.0.1/login.php" style="border: 0; position:absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%">
    

    or

    <iframe src="http://192.168.0.1/login.php" style="border: 0; position:fixed; top:0; left:0; right:0; bottom:0; width:100%; height:100%">
    
    0 讨论(0)
提交回复
热议问题