随笔分类 -  代码分析

前期是希望能够自动分析C/C++/汇编
摘要:思路、待完善..., 这个逻辑点比较复杂。 1 #include <io.h> 2 #include <time.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <string.h> 6 #include <fcntl.h> 7 #i 阅读全文
posted @ 2020-09-17 16:51 一本正经-胡说八道 阅读(205) 评论(0) 推荐(0)
摘要:思路、待完善... 1 #include <io.h> 2 #include <time.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <string.h> 6 #include <fcntl.h> 7 #include <sys/ 阅读全文
posted @ 2020-09-17 16:47 一本正经-胡说八道 阅读(205) 评论(0) 推荐(0)
摘要:思路,未完成。 1 #include <io.h> 2 #include <time.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <string.h> 6 #include <fcntl.h> 7 #include <sys/st 阅读全文
posted @ 2020-09-17 16:46 一本正经-胡说八道 阅读(210) 评论(0) 推荐(0)
摘要:只是一种思路描述过程。 1 #include <io.h> 2 #include <time.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <string.h> 6 #include <fcntl.h> 7 #include <sy 阅读全文
posted @ 2020-09-17 16:44 一本正经-胡说八道 阅读(222) 评论(0) 推荐(0)
摘要:代码未测试,基本逻辑实现过程已经描述出来了。 1 #include <io.h> 2 #include <time.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <string.h> 6 #include <fcntl.h> 7 # 阅读全文
posted @ 2020-09-14 17:25 一本正经-胡说八道 阅读(266) 评论(0) 推荐(0)
摘要:C 代码分析工具最基础的一步吧,预处理把编译文件整理到一个文件中。 1 //这个demo最终要输出一个预处理后的编译树。 2 3 #include <io.h> 4 #include <time.h> 5 #include <stdio.h> 6 #include <stdlib.h> 7 #inc 阅读全文
posted @ 2020-07-24 16:38 一本正经-胡说八道 阅读(280) 评论(0) 推荐(0)
摘要:由于工作需要涉及到商城的资金交易安全,在这个网络上又找不到合适的答案所以就自己摸索,去设计一款代码分析软件。废话不多说先贴上一份有bug的目录遍历代码。。。 1 #include <io.h> 2 #include <time.h> 3 #include <stdio.h> 4 #include < 阅读全文
posted @ 2020-07-23 14:42 一本正经-胡说八道 阅读(452) 评论(0) 推荐(0)