Javascript 在iframe内提交表单(无表单id)

Javascript 在iframe内提交表单(无表单id),javascript,php,jquery,html,iframe,Javascript,Php,Jquery,Html,Iframe,嗨,伙计们,我需要在一个我不拥有的网站的iframe中提交一个表单,所以我不能更改其中的表单代码。我知道XSS,我在自己的webapp域中代理了该网站,这样我就可以实际更改iframe 在这里,您可以看到iam iframeing到实际页面的代码: <form action="/infoweb/index.php" method="post"> <input type="hidden" name="csrf" value="hidden" /> <table

嗨,伙计们,我需要在一个我不拥有的网站的iframe中提交一个表单,所以我不能更改其中的表单代码。我知道XSS,我在自己的webapp域中代理了该网站,这样我就可以实际更改iframe

在这里,您可以看到iam iframeing到实际页面的代码:

    <form action="/infoweb/index.php" method="post">
<input type="hidden" name="csrf" value="hidden" />
<table>
  <tr>
    <td>
      Gebruikersnaam:
    </td>
    <td>
      <input class="mooi" autocapitalize="off" autocorrect="off" style="color: #d0d0d0;" type="text"     name="user"     value="username" onfocus="if (this.value =='username') this.value=''; this.style.color='#000000';" onKeyDown="this.style.color='#000000';">
    </td>
  </tr>
  <tr>
    <td>
      Wachtwoord:
    </td>
    <td>
      <input class="mooi" style="margin-bottom: 2px; color: #d0d0d0;" type="password" name="paswoord" value="wachtwoord" onfocus="if (this.value =='wachtwoord') this.value=''; this.style.color='#000000';" onKeyDown="this.style.color='#000000';">
    </td>
  </tr>
  <tr>
    <td>
      Onthouden:
    </td>
    <td>
      <input type="checkbox" name="onthouden" class="mooi" />
    </td>
  </tr>
  <tr>
    <td>
      <input type="hidden" name="login" value="loginform"> &nbsp;
    </td>
    <td>
      <input type="submit" class="mooi" value="inloggen"><br />
    </td>
  </tr>
</table>
</form>

格布鲁伊克斯纳姆:
瓦赫特伍德:
昂苏登:

在这里你可以看到我的代码,我正试图提交表格。。请注意:我不熟悉页面上的javascript编辑内容。。 另外:我知道当前的按类查找OnLoad不起作用。。。但我真的不知道该怎么做

<div class="container">
    <div class="row">

    <br>
    <br>
    <br>
              <div class="modal-header">
               <h3><?php echo 'Welkom' . ' '. $this->session->userdata('username'); ?></h3>

               <form id="login" target="frame" method="post" action="http://acr.example.nl/infoweb/index.php">
               <input type="hidden" name="user" value="<?php echo $this->session->userdata('username') ?>" />
               <input type="hidden" name="paswoord" value="<?php echo $this->session->userdata('password')?>" />
               </form>

<iframe  src="http://acr.example.nl" width="1000px" height="1000px" name="frame" id="frame" onLoad="window.frames['frame'].class.mooi.submit();" ></iframe>

            <script type="text/javascript">
                // Submitting the hidden form with login info.
                document.getElementById('login').submit();







            </script>


            </div>
        </div>





您的密码可见。。。。。哦,天哪……那太糟糕了。我不知道?只有饼干哇,太糟糕了?因为没有人可以读取加密的cookie。。。顺便说一句,这个应用程序上的密码对每个人都是一样的。这只是一个简短的检查,是的,我还没有申请。你试过了吗?是的,我试过了,问题是我不能更改任何东西,所以表单页上也没有Id。顺便说一句,表单中有几个框架集,这是否重要?