首页 \ 问答 \ 是否有可能编写运行在.NET上的恶意软件?(Is it possible to write malware that runs on .NET?)

是否有可能编写运行在.NET上的恶意软件?(Is it possible to write malware that runs on .NET?)

我听说过框架和BCL中的安全功能,但这是否与防止恶意程序员编写有害软件或阻止恶意软件在CLR上运行有关? 例如,是否可以使用C#编写一个程序来对Windows文件夹进行有害更改?


I've heard of security features in the framework and the BCL, but does this have anything to do with preventing malicious programmers from writing harmful software, or preventing malware from running on the CLR? For example, is it possible to write a program in C# that makes harmful changes to the Windows folder?


原文:https://stackoverflow.com/questions/524676
更新时间:2021-10-07 14:10

最满意答案

我不认为在GCM中存在问题。 尝试使用UTFEncoding为您的消息。

String output = new String(name.getBytes("8859_1"), "utf-8");

I dont think so there is problem in GCM. Try to use UTFEncoding for your message.

String output = new String(name.getBytes("8859_1"), "utf-8");

相关问答

更多
  • 我不认为在GCM中存在问题。 尝试使用UTFEncoding为您的消息。 String output = new String(name.getBytes("8859_1"), "utf-8"); I dont think so there is problem in GCM. Try to use UTFEncoding for your message. String output = new String(name.getBytes("8859_1"), "utf-8");
  • 如果您的用例允许,您可以使用“空格”字符。 GCM ID可能包含a-zA-Z0-9和“破折号”字符。 (没有引用,只是观察) 如果json字符串混淆,请尽量不要使用{}或[]作为分隔符。 另请注意,GCM ID没有长度限制。 根据id生成引擎,它可以返回更短或更长的时间。 You can use "space" character if your use-case allows. The GCM id might contains a-zA-Z0-9 and the "dash" character. (N ...
  • 你需要告诉MySQL,连接必须是UTF-8。 为此,请使用函数mysql_set_charset (您需要PHP 5.2.3)。 如果你使用PHP <5.2.3试试: mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = ' ...
  • 有几个区域需要检查字符编码是否正确完成,因为默认为UTF-8而其他区域编码没有(例如,iso-8859-1)。 检查: JDBC驱动程序 Java虚拟机(只能解析基于拉丁语和unicode - 可以运行native2ascii将非拉丁字符转换为unicode) 数据库编码 Tomcat / JBoss等(服务器) 浏览器 操作系统 要检查所有这些东西是痛苦的,但有人必须这样做。 我建议将所有内容设置为UTF-8,因为这通常是人们所同意的 对我来说,听起来像JVM或JDBC驱动程序可能是问题的根源 There ...
  • 在分析代码之后,我知道它是编码的问题。 然后在我的代码中更改以下行 - string postData = "delay_while_idle=1&data.data=" + value + "®istration_id=" + deviceId + ""; 至 string postData = "delay_while_idle=1&data.data=" + HttpUtility.UrlEncode(value) + "®istration_id=" + deviceId + ...
  • 这称为Canonical ID。 在Firebase文档中说: 规范注册ID是客户端应用程序请求的最后一次注册的注册令牌。 这是服务器在向设备发送消息时应使用的ID。 如果您尝试使用旧的注册令牌发送消息,GCM将照常处理请求,但它将在响应的registration_id字段中包含规范ID。 确保使用此规范ID替换存储在服务器中的注册令牌,因为最终旧注册令牌将停止工作。 原因是客户端应用程序触发同一设备的多个注册。 This is called Canonical ID. In the Firebase do ...
  • 最有可能的问题是该应用程序无法收到GCM推送通知令牌。 令牌创建过程要求设备与Google的GCM服务器进行交互,这些服务器可能会在伊朗被阻止。 不幸的是,除了像您一样使用VPN之外,我不能想到其他解决方法。 Most likely the issue is that the app is failing to receive a GCM push notification token. The token creation process requires the device to interact w ...
  • 目前还不清楚else if你的代码中else if一部分代码是你正在尝试使用的。 readline()的本质是它将返回用户输入的字符串。 输入中是否包含任何不想包含的特定字符? 您可以使用grepl()来标识它们并防止用户将它们作为输入输入。 如果您试图确保用户输入了某些内容,则应按照注释中的建议使用while循环。 如果要在函数运行后在R中使用变量,则需要return() v1的值 - 用户输入。 如果您试图用%20替换名字和姓氏之间的空格,那么您可能需要使用gsub() 。 请参阅下面的代码。 fun1 ...
  • APNS设备令牌是二进制格式的32字节。 如果您选择将它们表示为64个十六进制字符,则它们将仅包含十六进制字符(0到9和A到F)。 至于GCM注册ID,即使谷歌没有给出任何关于可能的字符的规则,从我观察到的,他们只使用64个字符 - A到Z,a到Z,0到9,' - '和'_'。 APNS device tokens are 32 bytes in binary format. If you choose to represent them as 64 hexadecimal characters, then ...
  • 有两种方法可以获得所需的东西: this -> "

    \n"; //Encoding $encoded = htmlentities($str); //Decoding note that here the quotes aren't converted echo htmlspecialchars_decode($encoded, ENT_NOQUOTES); ?> 如果要将条目保存 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。