{"id":96,"date":"2006-03-24T22:30:00","date_gmt":"2006-03-24T13:30:00","guid":{"rendered":"http:\/\/yokensaka.com\/blog\/?p=96"},"modified":"2006-03-24T22:30:00","modified_gmt":"2006-03-24T13:30:00","slug":"chkrootkit%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/yokensaka.com\/blog\/chkrootkit%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/","title":{"rendered":"chkrootkit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u30b7\u30b9\u30c6\u30e0\u306brootkit\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u691c\u67fb\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u300cchkrootkit.i386 0:0.46a-2.fc5\u300d\u3092FC-5\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>[root@server ~]# <span style=\"color: #FF0000;\">yum -y install chkrootkit<\/span>\nRepository atrpms is listed more than once in the configuration\nRepository dries is listed more than once in the configuration\nRepository livna is listed more than once in the configuration\nRepository updates-released is listed more than once in the configuration\nRepository atrpms-testing is listed more than once in the configuration\nRepository flash is listed more than once in the configuration\nRepository atrpms-bleeding is listed more than once in the configuration\nRepository dag is listed more than once in the configuration\nRepository jpackage-fedora is listed more than once in the configuration\nRepository freshrpms is listed more than once in the configuration\nRepository livna-testing is listed more than once in the configuration\nRepository jpackage-generic is listed more than once in the configuration\nRepository extras is listed more than once in the configuration\nRepository newrpms is listed more than once in the configuration\nSetting up Install Process\nSetting up repositories\nlivna-stable                                                         [1\/8]\nlivna                                                                [2\/8]\nupdates-released                                                     [3\/8]\ncore                                                                 [4\/8]\nbase                                                                 [5\/8]\nlivna-testing                                                        [6\/8]\nextras                                                               [7\/8]\nlivna-unstable                                                       [8\/8]\nReading repository metadata in from local files\nParsing package install arguments\nResolving Dependencies\n--> Populating transaction set with selected packages. Please wait.\n---> Package chkrootkit.i386 0:0.46a-2.fc5 set to be updated\n--> Running transaction check\nDependencies Resolved\n===========================================================\nPackage                 Arch       Version          Repository        Size\n===========================================================\nInstalling:\nchkrootkit              i386       0.46a-2.fc5      extras            264 k\nTransaction Summary\n===========================================================\nInstall      1 Package(s)\nUpdate       0 Package(s)\nRemove       0 Package(s)\nTotal download size: 264 k\nDownloading Packages:\n(1\/1): chkrootkit-0.46a-2 100% |=====================| 264 kB    00:00\nRunning Transaction Test\nFinished Transaction Test\nTransaction Test Succeeded\nRunning Transaction\nInstalling: chkrootkit                   ######################### [1\/1]\nInstalled: chkrootkit.i386 0:0.46a-2.fc5\nComplete!<\/pre>\n<p><span style=\"font-size: 10pt;color: #FF6600; font-weight:bold;\">chkrootkit\u306e\u5b9f\u884c<\/span><br \/>\n<span style=\"color: #339900;\">chkrootkit\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\u3057\u307e\u3059<\/span><\/p>\n<pre>[root@server ~]# <span style=\"color: #FF0000;\">cd \/usr\/lib\/chkrootkit-0.46a<\/span><\/pre>\n<p><span style=\"font-size: 10pt;color: #FF6600; font-weight:bold;\">chkrootkit\u3092\u5b9f\u884c\u3057\u307e\u3059<\/span><\/p>\n<pre>[root@server chkrootkit-0.46a]# <span style=\"color: #FF0000;\">.\/chkrootkit<\/span>\nROOTDIR is `\/'\nChecking `amd'... not found\nChecking `basename'... not infected\nChecking `biff'... not found\nChecking `chfn'... not infected\nChecking `chsh'... not infected\nChecking `cron'... not infected\nChecking `date'... not infected\n\u3000\u3000\u3000\u3000\u3000\u30fb\n\u3000\u3000\u3000\u3000\u3000\u30fb\n\u3000\u3000\u3000\u3000\u3000\u30fb\nChecking `rexedcs'... not found\nChecking `sniffer'... eth0: not promisc and no PF_PACKET sockets\nChecking `w55808'... not infected\nChecking `wted'... chkwtmp: nothing deleted\nChecking `scalper'... not infected\nChecking `slapper'... not infected\nChecking `z2'... chklastlog: nothing deleted\nChecking `chkutmp'... chkutmp: nothing deleted<\/pre>\n<p><span style=\"color: #339900;\">\u5b9f\u884c\u7d50\u679c\u4e2d\u306b&#8221;INFECTED&#8221;\u3068\u3044\u3046\u884c\u304c\u306a\u3051\u308c\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093<\/span><br \/>\n<span style=\"font-size: 10pt;color: #FF6600; font-weight:bold;\">chkrootkit\u306e\u5b9f\u884c(\u30a8\u30e9\u30fc\u306e\u307f\u8868\u793a)<\/span><\/p>\n<pre>[root@server chkrootkit-0.46a]# <span style=\"color: #FF0000;\">.\/chkrootkit -q<\/span>\n\/usr\/lib\/perl5\/5.8.8\/i386-linux-thread-multi\/.packlist \/usr\/lib\/perl5\/site_perl\/5.8.6\/i386-linux-thread-multi\/auto\/Time-modules\/.packlist \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/i386-linux-thread-multi\/auto\/NKF\/.packlist<\/pre>\n<p><span style=\"font-size: 10pt;color: #FF6600; font-weight:bold;\">chkrootkit\u306e\u5b9a\u671f\u81ea\u52d5\u5b9f\u884c\u8a2d\u5b9a<\/span><br \/>\n<span style=\"color: #339900;\">chkrootkit\u306e\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059<\/span><\/p>\n<pre>[root@server chkrootkit-0.46a]# <span style=\"color: #FF0000;\">vi \/root\/chkrootkit.sh<\/span>\ncd \/usr\/lib\/chkrootkit-0.46a\/\n.\/chkrootkit > \/var\/log\/chkrootkit.log\nchmod 600 \/var\/log\/chkrootkit.log\ngrep INFECTED \/var\/log\/chkrootkit.log<\/pre>\n<p><span style=\"font-size: 10pt;color: #FF6600; font-weight:bold;\">chkrootkit\u306e\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5b9f\u884c\u6a29\u9650\u3092\u4e0e\u3048\u307e\u3059<\/span><\/p>\n<pre>[root@server chkrootkit-0.46a]# <span style=\"color: #FF0000;\">chmod 700 \/root\/chkrootkit.sh<\/span><\/pre>\n<p><span style=\"font-size: 10pt;color: #FF6600; font-weight:bold;\">cron\u3092\u7de8\u96c6\u3057\u307e\u3059<\/span><\/p>\n<pre>[root@server chkrootkit-0.46a]# <span style=\"color: #FF0000;\">crontab -e<\/span>\n00 02 * * * \/root\/chkrootkit.sh<\/pre>\n<p><span style=\"color: #339900;\">\u6bce\u65e52:00\u306bchkrootkit\u306e\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b7\u30b9\u30c6\u30e0\u306brootkit\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u691c\u67fb\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u300cchkrootkit.i386 0:0.46a-2.fc5\u300d\u3092FC-5\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002 [root@server ~]# yum -y ins [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yokensaka.com\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}