摘要
Python源代码编译出的字节码十分便于反编译,使用代码迷惑技术可以有效解决此问题。通过使用Qt编程框架对Python源代码进行词法分析和语法分析,用大写字母"O"和数字"0"组成随机编码将源程序中的模块名、类名、自定义函数名和标识符变量名进行迷惑变换,实现一款Python代码迷惑器。实验对比表明,该Python迷惑器具有图形用户界面、代码迷惑性强、代码执行时间开销小和迷惑不可逆等特点。
Bytecode compiled by Python source code is very easy to decompile. This problem can be solved effectively by using code obfuscation technology. The lexical analysis and parsing of the Python source code is used by Qt programming framework. With the capital letters "O" and the number "0" encode the module name, class name, custom function name, and identifier variable name in the source program, a Python code obfuscatorand is implemented. Experimental comparison shows that the Python code obfuscator has the following characteristics, such as GUI(graphical user interface),code with confused, less time cost and irreversible confusion, etc.
作者
王一宾
裴根生
WANG Yibin PEI Gensheng(School of Computer and Information, Anqing Normal University, Anqing 246133, China Key Laboratory of Intelligent Perception and Computing of Anhui Province, Anqing 246133, China)
出处
《安庆师范大学学报(自然科学版)》
2017年第3期56-61,共6页
Journal of Anqing Normal University(Natural Science Edition)
基金
安徽省高校自然科学研究重点项目(KJ2013A177)
安徽省质量工程项目(014SXZX011
2015GXK043)