On 5月22日, 下午5时49分, [EMAIL PROTECTED] wrote:
>  你的内核的版本是2.26.23的吗?
> 我的是2.6.18的内核
> 能不能把你的运行环境详细介绍下
>
> 我可不想猜你的环境
>
> --
>
> 在2008-05-22,Xti9er <[EMAIL PROTECTED]> 写道:
>
>  [01;31mk3 [01;34m ng # [00m make
>
> +--------------------------------------------------------------+
>                         WNPS Is Not Poc Shell
>                         Version 0.26  by wzt
>                        http://www.xsec.org
>                         Hacking Your Kernel
> +--------------------------------------------------------------+
> make -C /lib/modules/2.6.23/build M=/home/ module
> s
> make[1]: Entering directory `/usr/src/linux-2.6.23'
>   CC [M]  /home//kshell.o
> /home//kshell.c: In function 'hook_func':
> /home//kshell.c:404: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:416: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:452: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:472: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:478: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:478: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:488: error: 'struct sk_buff' has
> no member named 'nh'
> /home//kshell.c:507: warning: control reaches end
>  of non-void function
> make[2]: *** [/home//kshell.o] Error 1
> make[1]: *** [_module_/home/] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.23'
> make: *** [default] Error 2
>  [01;31mk3 [01;34m ng # [00m id
> uid=0(root) gid=0(root) groups=81(apache)
>
> On 5月22日, 下午2时39分, [EMAIL PROTECTED] wrote:
>
>
>
> >  什么出错信息
>
> > --
>
> > 在2008-05-22,Xti9er <[EMAIL PROTECTED]> 写道:
>
> >http://www.xfocus.net/tools/200710/1233.html
>
> > 这个东西,我编译的时候出错。也有人问过作者。作者说是高版本的内核参数不同造成的。
>
> >    可我对内核不熟悉。-_-!
>
> >     各位老大,帮帮忙!谢谢!- 隐藏被引用文字 -
>
> - 显示引用的文字 -




这个错误是由于2.6.23以上版本的sk_buff结构发生变化导致,改一下相关的字段即可,
我该过的代码在公司,没有办法cp出来,等有时间做个patch。
--~--~---------~--~----~------------~-------~--~----~
 要向邮件组发送邮件,请发到 [email protected]
 要退订此邮件,请发邮件至 [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

回复