![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LiveOverflow-binary hacking
文章平均质量分 92
Mandorr
这个人很帅,没有签名...
展开
-
The-Heap: protostar heap3
introduces这个级别引入了Doug Lea Malloc(dlmalloc)以及如何修改堆元数据以改变程序执行heap3.c:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <unistd.h>...原创 2020-01-01 17:49:03 · 414 阅读 · 0 评论 -
How to exploit a heap Overflow
究竟什么是堆?malloc()的作用是什么? 你可能在编程的时候,经常需要使用到很多内存,这是你可能会使用到堆。使用malloc分配内存使用后,你需要把这些内存段释放掉,但是你可能并不知道程序是怎么获得内存空间或者释放掉内存的。 在讨论malloc之前,让我们先来了解一下进程获得内存空间的方式。 主要是通过mmap和brk两种方式,这些都是系统调用,这意味着我们直接请求了内核。mmap...原创 2019-08-01 01:31:52 · 177 阅读 · 0 评论 -
DirtyCow漏洞分析
漏洞编号:CVE-2016-5195, 这是一个Linux kernel的本地权限提升漏洞。这里通过一个实验来逐步分析这个漏洞。实验poc:原创 2019-07-22 13:45:04 · 788 阅读 · 0 评论 -
Fomat String exploit example-format-bin-0x08
什么是格式字符串 C中最常见最著名的函数是printf,printf将会格式化输出数据到stdout。 int printf(const char format, …);printf读取格式字符串并找到’%’, %*决定了后面跟着的参数的类型。format1.c#include <stdio.h>#include <unistd.h>#include &l...原创 2019-07-21 08:52:38 · 174 阅读 · 0 评论 -
Buffer Overflow with Shellcode-protostar-stak5-bin-0x06
Stack5是一个标准的缓冲区溢出,这次介绍shellcode的利用。调试shellcode,使用带有操作码\xcc(int3) 指令停止程序执行并返回调试器。stack5.c#include <stdlib.h>#include <stdio.h>#include <string.h>#include <unistd.h>int m...原创 2019-06-28 17:40:19 · 440 阅读 · 0 评论 -
Protosar-Redirect Program Execution-stack3/stack4-bin-0x05
stack3.c#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>void win(){ printf("code flow successfully changed\n");}int main(int argc, char *ar...原创 2019-06-28 06:06:14 · 140 阅读 · 0 评论 -
Stack Buffer Overflow-protostar-stack0/stack1/stack2-0x04
使用的protostar虚拟机镜像,源站点暂时不能访问,可自行google。缓冲区溢出的第一关,protostar Stack0About: 这个级别介绍了可以在程序分配内存区域之外访问内存的概念,如何布局堆栈变量,以及在分配内存之外修改某些程序执行。Source code:#include <stdlib.h>#include <unistd.h>#inc...原创 2019-06-26 22:39:29 · 364 阅读 · 0 评论 -
Reversing and Cracking first simple Progra-0x01
.很开心,今天学习破解自己的第一个程序。 一个很小的c程序的例子,实现了一个简单的许可证检查。#include <string.h>#include <stdio.h>int main(int argc, char *argv[]) { if(argc==2) { printf("Checking License: %s\n", argv[1...原创 2019-06-18 17:38:46 · 114 阅读 · 0 评论 -
How a CPU works and Introduction to Assembler-bin-0x00
现在介绍CPU的工作原理: CPU具有非常简单的概念,但可用于解决非常复杂的任务,It’s pretty crazy!CPU RegistersArithmetic InstructionsMoves,jumps, Branches and Calls想象一下,从顶部到底部写下指令,就像计算机的RAM一样:并且每一行都分配一个数字,就像内存中的某个位置有一个地址一样。在内存中它将...原创 2019-06-16 15:58:40 · 166 阅读 · 0 评论