首页> 外国专利> - METHOD OF GENERATING A COMPUTER PROGRAM FOR EFFICIENTLY DEFENDING AGAINST A RETURN-ORIENTED PROGRAMING

- METHOD OF GENERATING A COMPUTER PROGRAM FOR EFFICIENTLY DEFENDING AGAINST A RETURN-ORIENTED PROGRAMING

机译:-生成计算机程序以有效防御以返回为导向的程序的方法

摘要

This specification discloses a computer program creation method capable of efficiently detecting an ROP attack. A method for generating a computer program according to the present invention is a method for generating a computer program for performing a compiling operation for converting a high-level language into a machine language using a processor, the processor comprising: (a) ; (b) inputting a command to set a variable on a main function caller of the generated program and to initialize the set variable to ''0''; (c) searching for a call command in the program requested to be generated and inputting a command for incrementing the variable by ''1'' to a function including the searched call command; (d) searching for a return instruction in the program requested to be generated, and inputting a command to decrease the variable by ''1'' to a function and a gadget including the searched return instruction; And (e) inputting a command to determine whether the value of the variable in the program requested to be generated is less than or equal to ''0''.
机译:该说明书公开了一种能够有效地检测ROP攻击的计算机程序创建方法。根据本发明的用于生成计算机程序的方法是一种用于生成计算机程序的方法,该计算机程序用于执行使用处理器将高级语言转换为机器语言的编译操作,该处理器包括:(a); (b)输入命令以在生成的程序的主函数调用器上设置变量,并将设置的变量初始化为“ 0”; (c)在要求生成的程序中搜索调用命令,并向包括搜索到的调用命令的函数输入将变量加“ 1”的命令; (d)在请求生成的程序中搜索返回指令,并向包括搜索到的返回指令的函数和小工具输入将变量减“ 1”的命令; (e)输入命令以确定请求生成的程序中变量的值是否小于或等于“ 0”。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号