当前位置:网站首页>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。
边栏推荐
- ByteV搭建动态数字孪生网络安全平台----助力网络安全发展
- Sha256 encryption tool class
- Truly understand triode beginner level chapter (Classic) "suggestions collection"
- 期货开户有门槛吗,如何网上安全的开通期货账户
- 【Unity编辑器扩展实践】、通过代码查找所有预制
- Leetcode 705. 设计哈希集合
- 2022年理财产品的常见模式有哪些?
- 【C语言】如何产生正态分布或高斯分布随机数
- Swin, three degrees! Eth open source VRT: a transformer that refreshes multi domain indicators of video restoration
- 【JS】斐波那契数列实现(递归与循环)
猜你喜欢

EMC RS485接口EMC电路设计方案

Build your own website (18)

Why do many people want to change careers as programmers, while some programmers want to change careers as others?

Data analysis learning notes
Three ways to implement LRU cache (recommended Collection)

Chendanqi, Fang Fei, guquanquan and Li Bo won the prize, and the list of Sloan research award in 2022 was released

Database Series: is there any way to seamlessly upgrade the business tables of the database

Oracle date format exception: invalid number

内部振荡器、无源晶振、有源晶振有什么区别?

Convert black mask picture to color annotation file
随机推荐
Research on personalized product search
【Unity编辑器扩展基础】、GUILayout
1. print hourglass
Prefix and (one dimension)
KDD 2022 | graph neural network generalization framework under the paradigm of "pre training, prompting and fine tuning"
【JS】斐波那契数列实现(递归与循环)
零基础C语言(一)
模板_大整数乘法
IDEA全局搜索快捷设置
Leetcode 48. 旋转图像(可以,已解决)
【Unity编辑器扩展实践】、通过代码查找所有预制
Map排序工具类
Web3安全连载(3) | 深入揭秘NFT钓鱼流程及防范技巧
UGUI使用小技巧(六)Unity实现字符串竖行显示
6.A-B
cdc同步 如果数据库表的主键发生了变化,会同步成两个数据 还是会同步更新主键呢?
[source code + code comments] error state Kalman filter, extended Kalman filter, gps+imu fusion, EKF eskf gps+imu
Bisection (integer bisection and floating point bisection)
Convert black mask picture to color annotation file
4. maximum continuity factor



