checksec未完待续~
来源:互联网 发布:消防安全知识网络大赛 编辑:程序博客网 时间:2024/06/04 19:28
checksec是一个脚本软件,也就是用脚本写的一个文件,不到2000行,可用来学习shell。
源码参见
http://www.trapkit.de/tools/checksec.html
https://github.com/slimm609/checksec.sh/
下载方法之一为
wget https://github.com/slimm609/checksec.sh/archive/1.6.tar.gz
checksec用来干什么?
用来检查可执行文件属性,例如PIE, RELRO, PaX, Canaries, ASLR, Fortify Source
PIE是什么意思?
(PIC:Position Independnet Code位置无关代码)
position independent executable
https://access.redhat.com/blogs/766093/posts/1975793
https://en.wikipedia.org/wiki/Position-independent_code
RELRO是什么意思?
http://fedoraproject.org/wiki/Security_Features_Matrix
Built with RELRO
RELRO stands for RELocation Read-Only, it is a mitigation technique to harden data sections of an ELF/process.
Pax是什么意思?
Stack Canary
ASLR是什么意思?
checksec使用方法
checksec –file /usr/sbin/sshd
源码解读:
ubuntu测试important!!!!
self.assertShellExitEquals()太重要了
http://bazaar.launchpad.net/~ubuntu-bugcontrol/qa-regression-testing/master/view/head:/scripts/test-kernel-security.py
http://markmail.org/message/xndxxbczqquqipzv
- def assertShellOutputEquals(self, text, args, stdin=None,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, msg=”“, invert=False,
expected=None): - ”’Test a shell command matches a specific output”’
- rc, report, out = self._testlib_shell_cmd(args, stdin=stdin,
stdout=stdout, stderr=stderr) - result = ‘Got exit code %d. Looking for exact text “%s” (%s)\n’ % (rc,
text, ” “.join(args)) - if not invert:
- self.assertEquals(text, out, msg + result + report)
- else:
- self.assertNotEquals(text, out, msg + result + report)
- if expected != None:
- result = ‘Got exit code %d. Expected %d (%s)\n’ % (rc, expected, ”
“.join(args)) - self.assertEquals(rc, expected, msg + result + report)
现代Linux操作系统的栈溢出(上)
http://www.freebuf.com/articles/system/24177.html
- checksec未完待续~
- 未完待续
- 未完待续
- 未完待续
- 未完,待续
- 未完待续~~~~~~~~~~~~~~~~
- 未完待续
- 未完待续
- 未完待续
- 未完待续
- 未完待续
- 未完,待续……
- dojo入门(未完待续)
- mysql优化(未完....待续....)
- 未完待续2
- JNI 概述 (未完待续)
- Google Map(未完待续)
- POJ1753(未完待续)
- [Algorithm]排序算法
- poj 1088滑雪(记忆化搜索, dp)
- 离开上一家公司的原因
- mysql语句----详细内容
- python发送邮件
- checksec未完待续~
- linux下SVN安装配置
- CodeForces 149D-Coloring Brackets(区间dp 的好题)
- d3.js tree
- 电路设计_路由器技术概要--启动流程
- 国内外从事CV相关的企业
- 关于ajax调用一般处理文件,传值内容过多后无法进入一般处理文件的问题
- UVa340
- 鸡汤_职场35岁现象:职业规划的文章