This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.charbase.com/202e-unicode-right-to-left-override | |
When a RIGHT-TO-LEFT OVERRIDE character is inserted into the filename, the characters that follow are displayed in reverse order. | |
When named properly, an .exe file can appear to be a .pdf file (e.g. evil[RTL Unicode]fdp.exe will appear as evilexe.pdf). | |
This does not affect the file's execution. | |
## By Python | |
>>> f = open('evil\xE2\x80\xAEfdp.exe', 'w') | |
>>> f.close() | |
>>> f = open("evil\u202efdp.exe", "w") | |
>>> f.close() |

>>> import os
>>>
>>> os.rename('calc-copy.exe', 'calc-copy\xE2\x80\xAEfdp.exe')
>>> exit()
# file calc-copy?fdp.exe
calc-copy?fdp.exe: PE32+ executable for MS Windows (GUI) Mono/.Net assembly
ファイル名にRTL文字が含まれているか確認するbashワンライナー
echo -n $filename | xxd -p | tr -d '\r\n' | grep -i "e280ae"