gpt4 book ai didi

c# - 文件格式无效 Richtextbox c#

转载 作者:太空狗 更新时间:2023-10-30 01:02:51 26 4
gpt4 key购买 nike

Error: File format is not valid in Richtextbox.

我的代码在这里:

var webClient = new WebClient(); //Make sure to reference System.Net
richTextBox1.Rtf = webClient.DownloadString("http://koolkool.freevnn.com/tool/Documents/invitePK.rtf")

请帮帮我。此处图片错误:enter image description here

最佳答案

好吧,让我们使用 PowerShell 看看您实际下载的是什么:

PS > $wc = New-Object System.Net.WebClientPS > $wc.DownloadString("http://koolkool.freevnn.com/tool/Documents/invitePK.rtf")<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("e1b925425726f4245ffe50e9fafc1f50");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-3723:55:55 GMT; path=/";location.href="http://koolkool.freevnn.com/tool/Documents/invitePK.rtf?ckattempt=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascriptsupport</noscript></body></html>PS >

糟糕。看起来 RichTextBox 不知道如何处理该 HTML 字符串。 糟糕的服务器。我要一个 .rtf 资源,你给我一些 JavaScript 垃圾?

关于c# - 文件格式无效 Richtextbox c#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32132358/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com