当前位置:网站首页>调用系统函数安全方案
调用系统函数安全方案
2022-06-24 22:46:00 【华为云】
1.直接调用系统的函数
不建议使用理由:我们在编码过程中,有很多功能系统都已经有提供的函数接口,一般情况下我们都是直接调用系统函数直接进行实现功能。但你知道吗?你这样直接调用系统函数在一些场景下是不安全的,当你的程序在被安全逆向研究的时候,直接可以通过程序的导入表,以及反汇编看到调用的系统函数,这样我们只要一查下系统函数的功能,那么就可以知道大概的功能点,还有只要一挂钩(HOOK技术)上系统的函数,那么你所调用的系统函数的功能就失效了。

下图展示上面函数通过调用系统函数实现的汇编代码。大家可以直接通过展示的系统函数去分析功能。

2.自定义实现函数再调用函数
建议使用理由:我们对于关键功能函数建议还是采用自己去实现函数功能,再去调用,这样可以加强程序被直接分析的难度,从而加强程序的安全性。
下图是自定义实现函数调用的汇编代码,可以从下面汇编代码看到关键函数是自己实现的,那么要了解该函数功能就需要进入到函数内部去做分析。这从而加强了关键函数功能的相对安全。

边栏推荐
- How can Huatai Securities open an account to achieve one in ten thousand? Are securities accounts safe and reliable
- 【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
- Convert string array to list collection
- Sumati GameFi生态纵览,神奇世界中的元素设计
- linux上查看mysql的密码_Linux下MySQL忘记密码「建议收藏」
- Cake review fatigue in the secondary market of innovative drugs: phase III clinical success and product approval
- 做软件安全测试的作用,如何寻找软件安全测试公司出具报告?
- Folding screen will become an important weapon for domestic mobile phones to share the apple market
- Half of the year has passed. How many flags have been achieved at the end of the year?
- write a number of lines to a new file in vim
猜你喜欢

jwt

Folding screen will become an important weapon for domestic mobile phones to share the apple market

如何通过EasyCVR接口监测日志观察平台拉流情况?

测试/开发程序员,30而立,你是否觉得迷茫?又当何去何从......

DataEase模板市场正式发布

Redis

【STL源码剖析】STL六大组件功能与运用(目录)

Intranet learning notes (7)

Dataease template market officially released

会自动化—10K,能做自动化—20K,你搞懂自动化测试没有?
随机推荐
Explanation of FTP protocol
Intranet learning notes (6)
Investigation on key threats of cloud computing applications in 2022
write a number of lines to a new file in vim
qt打包exe文件,解决“无法定位程序输入点_ZdaPvj于动态链接库Qt5Cored.dll”
【STL源码剖析】配置器(待补充)
Please run IDA with elevated permissons for local debugging.
|How to analyze bugs? Professional summary and analysis
Smartctl 打开设备遇到 Permission denied 问题排查过程记录
write a number of lines to a new file in vim
LINQ query (3)
常用的软件测试工具清单,请查收。
Fake wireless speakers in stores? Sony responded: the product has reserved a wired connection interface, which can be used in complex scenarios
Application of TSDB in civil aircraft industry
Pit entry machine learning: I. Introduction
What are the reasons for the abnormal playback of the online channel of the channel accessed by easycvr national standard protocol?
泰山OFFICE技术讲座:竖排时中文标点的简单研究
Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
Intranet learning notes (5)