【问题标题】:WebClient.DownloadString("Website.com/text.txt") returns htmlWebClient.DownloadString("Website.com/text.txt") 返回 html
【发布时间】:2016-12-19 03:16:34
【问题描述】:

所以我通过 FTP 将文本文件上传到我的网站,我的网站完美显示文本并接受格式,但是每当我执行 webclient.downloadstring 时,它都会返回:

<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("7ebbeaac07f92b3673f9cfa10425d300");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://www.braintrail.byethost7.com/Projects/submission.txt?i=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>

【问题讨论】:

    标签: c# string web webclient downloadstring


    【解决方案1】:

    如果您详细查看响应,您会看到这一行:

    location.href="http://www.braintrail.byethost7.com/Projects/submission.txt?i=1";
    

    当我访问bytehost7.com 时,我被定向到垃圾邮件假病毒感染报告页面。虽然当我直接检索www.braintrail.byethost7.com/Projects/submission.txt?i=1 时,我得到了你上传的文本文件。

    如果我不知道的话,我会说你有一个隐藏资源的恶意网站主机和/或他们自己的网站被黑以显示那些虚假的病毒消息。

    解决方案:找一个更好的虚拟主机。

    此外,FTP 已过时且不安全。

    【讨论】:

    • 非常感谢您的回复!您能否建议其他资源而不是 FTP(顺便说一下,我以编程方式上传)。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-02
    • 1970-01-01
    • 2011-04-27
    • 2011-06-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多