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 ... 下一页