当前位置:网站首页>pwn入门(1)二进制基础
pwn入门(1)二进制基础
2022-06-28 12:07:00 【Day-3】
1 PWN是什么?
破解、利用成功(程序的二进制漏洞)
攻破(设备、服务器)
控制(设备、服务器)
exploit:用于攻击的脚本与方案
payload:攻击载荷,是的目标进程被劫持控制流的数据
shellcode:调用攻击目标的shell代码
2 程序的编译与链接
从C源代码到可执行文件的生成过程
- 编译:由C语言代码生成汇编代码。
- 汇编:由汇编代码生成机器代码。
- 链接:将多个机器码的目标文件链接成一个可执行文件。

将代码转换为汇编代码:
gcc -S test.c
3 Linux下的可执行文件格式ELF
什么是可执行文件?
- 广义:文件中的数据是可执行代码的文件(out exe sh py)
- 狭义:文件中的数据是机器码的文件(out exe dll so)
可执行文件的分类 - Windows:PE(Portable Executable)
- 可执行程序exe
- 动态链接库dll
- 静态链接库lib
- Linux:ELF(Executable and LInkable Format)
- 可执行程序out
- 动态链接库so
- 静态链接库a




4 进程虚拟地址空间





局部变量全部存放在栈中。


5 程序的装载与进程的执行



6 ×86&amd64汇编概述





小知识点
- vim 中将文件装换文二进制文件的命令 %!xxd,还原的命令%!xxd - r。
边栏推荐
- 纯纯大怨种!那些年被劝退的考研专业
- 1. print hourglass
- AcWing 604. Area of circle (implemented in C language)
- 【C语言】随机数文件对其进行三种排序方法
- Chendanqi, Fang Fei, guquanquan and Li Bo won the prize, and the list of Sloan research award in 2022 was released
- 2. single digit statistics
- UGUI强制刷新Layout(布局)组件
- Remoteviews layout and type restriction source code analysis
- How to deploy the software testing environment?
- AcWing 606. Average 1 (implemented in C language)
猜你喜欢

【Unity编辑器扩展实践】、通过代码查找所有预制

【C语言】关于scanf()与scanf_s()的一些问题

Prefix and (2D)

Leetcode 48. 旋转图像(可以,已解决)

Ali three sides: what is the difference between using on or where in the left join associated table and the condition

Still using simpledateformat for time formatting? Be careful that the project collapses!

Remote login sshd service

Using soapUI to obtain freemaker's FTL file template

RemoteViews布局和类型限制源码分析

Many benefits of SEO optimization are directly related to traffic
随机推荐
AsyncTask经验小结
Unity加载设置:Application.backgroundLoadingPriority
[C language] three sorting methods for random number files
【Unity编辑器扩展实践】、利用txt模板动态生成UI代码
【附源码+代码注释】误差状态卡尔曼滤波(error-state Kalman Filter),扩展卡尔曼滤波,实现GPS+IMU融合,EKF ESKF GPS+IMU
Prefix and (one dimension)
Pyqt5 visual development
MapReduce项目案例1
AGCO AI frontier promotion (2.16)
自定义标题栏View
【Unity编辑器扩展基础】、EditorGUILayout (一)
ByteV搭建动态数字孪生网络安全平台----助力网络安全发展
In less than an hour, apple destroyed 15 startups
AcWing 605. Simple product (implemented in C language)
Function and principle of remoteviews
Android应用安全之JNI混淆
如何获取泛型的类型
Source code analysis of ArrayList
真正的学懂三极管入门篇(经典)「建议收藏」
C语言 sprintf函数使用详解



