在中等信任黑客下将文件写入 App_Data?
有没有办法在中等信任黑客下将文件写入App_Data?
我确信我听说过一些黑客行为,是真的吗?
Is there any way to Write files to App_Data under medium trust hack?
Im sure I've heard about some hack, is that true?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您无法创建新文件,但您应该能够写入 App_Data 文件夹中的现有文件。 但老实说,我在使用 Medium Trust 和写入 App_Data 文件夹时从未遇到过任何问题。 您确定它具有将文件写入硬盘所需的必要权限吗?
I don't think you are able to create new files, but you should be able to write to existing files in the App_Data folder. But I have honestly never experienced any problems with Medium Trust and writing to the App_Data folder. Are you sure it has the necessary permissions needed for writing files to the hard drive?
我无权访问服务器本身,因此无法检查。 我只能从 FTP 客户端 chmod 文件和文件夹。
我认为我的托管提供商需要向 App_Data 文件夹上的网络服务帐户授予写入权限。
I don't have access to the server itself, so I can't check that. I can only chmod files and folder from my FTP client.
I think my hosting provider needs to grant write permission to the network service account on the App_Data folder.