5

RLO字符让可执行文件看起来无害

 2 years ago
source link: https://www.lujun9972.win/blog/2018/03/06/rlo%E5%AD%97%E7%AC%A6%E8%AE%A9%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%96%87%E4%BB%B6%E7%9C%8B%E8%B5%B7%E6%9D%A5%E6%97%A0%E5%AE%B3/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

RLO字符让可执行文件看起来无害

RLO(right to left override)字符(U+0020)是unicode中定义的一个特殊字符。

它的本意是用来对类似阿拉伯语这一类从右向左书写的语言提供支持的。

然而当它用在文件名中时,可能导致一个.exe文件看起来是其他无害的文件一样,比如

testcod.exe 这个文件名,如果你在 c 之前插入RLO(在Emacs中插入RLO的方法是按下C-x 8 RET RIGHT-TO-LEFT OVERRIDE),则会发现它看起来是这样的

test‮cod.exe

好像是一个doc文件了(如果你查看这篇文章的org源码,就会发现上面这一行的标签显示很奇怪).


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK