For faster navigation, this Iframe is preloading the Wikiwand page for 自修改代码.

自修改代码

自修改代码Self-modifying code)是指程序在运行期间Run time)修改自身指令。可能的用途有:病毒利用此方法逃避杀毒软件的查杀,反静态分析加殼壓縮,反盗版[1]單晶片程序升级。

电脑

[编辑]

暫存記憶體中执行代码的计算机,可修改内存中的代码段,以往这种方法常被駭客用来制造病毒(参见:EICAR 测试病毒),现今许多操作系统CPU提供限制程序修改代码段的方法。还可用于程序保护,增加软件破解人员的静态分析难度[2]

Java SE 6 提供Java Compiler API,和Java反射Reflection)机制结合在一起,即可使Java程序在运行时产生新Class),替换旧类。

单晶片

[编辑]

若由ROM执行程序,如支持IAP的单晶片能够运用自修改代码进行程序升级,也能对负责IAP功能的代码进行修改或删除从而失去IAP功能。

参考文献

[编辑]
  1. ^ Delphi程序的自我修改,北京 , 王甲春,《中文信息:程序春秋》,2003年第7期,第97-99页
  2. ^ 一种基于自修改代码技术的软件保护方法,王详根 ,司端锋, 冯登国, 苏璞睿,《中国科学院研究生院学报》 2009年9月,第26卷第5期,中国科学院软件研究所信息安全国家重点实验室
{{bottomLinkPreText}} {{bottomLinkText}}
自修改代码
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?