美文网首页
Ubuntu 17.04 + Snort 2.9.9.0 + B

Ubuntu 17.04 + Snort 2.9.9.0 + B

作者: Hiro_Wang | 来源:发表于2018-03-25 13:17 被阅读0次

    官方提供了详细的环境搭建指导,建议参照Snort 2.9.9.x on Ubuntu 14 and 16.PDF自己动手安装,对工具有个粗略的了解

    Ubuntu 17.04 + Snort 2.9.9.0 + Barnyard2 + PulledPork + BASE

    VM 虚拟机 镜像下载

    链接:http://pan.baidu.com/s/1o78Jsp0 密码:ursq

    虚拟机root密码 “a123456”


    snort 2.9.9.0 + Barnyard2 + mysql(root 5175982903 ; snort 123456) + BASE + PulledPork(DOWNLOAD MD5 校验失败 待修复 可手动下载)

    简单命令

    rules file: /etc/snort/rules/local.rules

    alert icmp any any -> $HOME_NET any (msg:"ICMP test detected"; GID:1; sid:10000001; rev:001; classtype:icmp-event;)
    

    To make sure that barnyard2 knows that the rule we created with unique identifier 10000001 has the #message ”ICMP Test Detected”, as well as some other information (please see this blog post for more information). We add the following line #to the #/etc/snort/sid-msg.map file:

    1 || 10000001 || 001 || icmp-event || 0 || ICMP Test detected || url,tools.ietf.org/html/rfc792
    

    运行输出到控制台

    sudo /usr/local/bin/snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i eth0
    

    Run Snort in alert mode

    sudo /usr/local/bin/snort -q -u snort -g snort -c /etc/snort/snort.conf -i eth0
    

    Run Barnyard2

    sudo barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f snort.u2 -w /var/log/snort/barnyard2.waldo \ -g snort -u snort
    

    Check the MySQL database

    mysql -u snort -p -D snort -e "select count(*) from event"
    

    存在的问题

    When I run:

    sudo /usr/local/bin/pulledpork.pl -c /etc/snort/pulledpork.conf -l
    

    抛出

    Checking latest MD5 for snortrules-snapshot-2990.tar.gz....
        Error 500 when fetching https://www.snort.org/reg-rules/snortrules-snapshot-2990.tar.gz.md5 at /usr/local/bin/pulledpork.pl line 534.
        main::md5file("1~~~~9", "snortrules-snapshot-2990.tar.gz", "/tmp/", "https://www.snort.org/reg-rules/") called at /usr/local/bin/pulledpork.pl line 2007
    

    相关文章

      网友评论

          本文标题:Ubuntu 17.04 + Snort 2.9.9.0 + B

          本文链接:https://www.haomeiwen.com/subject/pjvhcftx.html