当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: Baisc Shell CodeBaisc Shell Code
 

 

 ·系统调用的实现及调用过程    »显示摘要«
    摘要: 我们在编程时用到的很多函数,如fork、open等这些函数最终都是在系统调用里实现的,比如说我们有这样一个程序: 这里我们用到了两个函数,即fork和exit,这两函数都是glibc中的函数,但是如果我们跟踪函数的执行过程,看看glibc对fork和exit 函数的实现就可以发现在glibc的实现代码里都是采用软中断的方式陷入到内核中再通过系统调用实现函数的功能的。具体过程我们在系统调用的实现过程会详 细的讲到。 由此可见,系统调用是用......
 ·iptables 中文手册    »显示摘要«
    摘要:iptables - ip包过滤器管理name iptables - ip包过滤器管理   总览iptables -adc 指定链的规则 [-a 添加 -d 删除 -c 修改] iptables - ri iptables -d chain rule num[option] iptables -lfz 链名 [选项] iptables -[nx] 指定链 iptables -p chain target[options] iptables -e ......


Baisc Shell Code [转]
baisc shell code

baisc shell code

dany@chroot.org 【相关文章:代理ARP

【扩展阅读:netstat 使用详解

2005/02/19 【扩展信息:http://www.myfaq.com

2

common assembly instructions

..mov <dest>, <src>

..add <dest>, <src> ; sub <dest>, <src>

..push <target> ; pop <target>

..jmp <address>

..call <address>

..lea <dest>, <src>

..int <value>

3

linux system calls

../usr/include/asm/unistd.h

..#ifndef _asm_i386_unistd_h_

..#define _asm_i386_unistd_h_

../*

..* this file contains the system call numbers.

..*/

..#define __nr_restart_syscall 0

..#define __nr_exit 1

..#define __nr_write 4

..#define __nr_execve 11

4

hello world

..write & exit function

..eax, ebx, ecx, edx are used to

determine which function to call

..then a int 0x80 to tell kernel

5

hello.asm#1

..; section declaration

..section .data

..msg db "hello, world!"

6

hello.asm#2

..; write call

..mov eax, 4 ;put 4 into eax

..mov ebx, 1 ;put stdout to ebx

..mov ecx, msg ;put the address of the msg


...   下一页
    摘要: 在最近的几个 red hat linux 版本中,x 窗口系统下的与字体有关的问题有些令人迷惑。目前,其中有两种带有不同特点的子系统:- 原始的(已有 15-20 年历史)子系统被称为“核心 x 字体子系统”。由这个子系统绘制的字体不是平滑字体,它们由 x 服务器处理,名称类似:-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1新的字体子系统被称为“fontconfig”。它允许应用程序直接使......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE