首页 > 解决方案 > 使用 PHP 访问远程服务器的目录

问题描述

我正在尝试将文件从远程服务器上传到 s3 存储桶。问题是我正在从 localhost 访问该服务器。在我的 django 模板中使用 PHP 上传功能时,它会提供我本地目录中的文件列表。我希望它给我服务器中的目录。

无论如何我可以更改此 php 功能的域名以匹配我的服务器的域名吗?如果是,如何?

我目前正在尝试找到像 weevely 这样可以连接到我的服务器的后门机制。

<!DOCTYPE html>
<html>
<body>

<form action="upload.php" method="post" enctype="multipart/form-data">
    Select image to upload:
    <input type="file" name="fileToUpload" id="fileToUpload">
    <input type="submit" value="Upload Image" name="submit">
</form>

</body>
</html>`

选择要上传的图片:

TIA

标签: phpdjangoremote-server

解决方案


推荐阅读