瀏覽模式: 普通 | 列表

惡意程式檢測工具-RootKit Hunter

[1.] 安裝
         wget http://downloads.rootkit.nl/rkhunter-1.1.8.tar.gz
         tar zxvf rkhunter-1.1.8.tar.gz
         cd rkhunter-1.1.8

         ./installer.sh

   檢測程式會放置在 /usr/local/bin/rkhunter

[2.] /usr/local/bin/rkhunter --help

[閱讀全文]

標籤: 木馬 rootkit

弱點掃瞄工具 - Nessus


弱點掃瞄工具

Quote: http://h.root.tw/modules/news/article.php?storyid=27

Nessus 3 重新改寫,採用新的 NASL3 引擎,幾乎是 Nessus 2 的二倍效能,plugin 的載入速度也加快了。

不過,從 3.0 版開始,Nessus 改採專有軟體授權,目前使用者需要註冊取得授權碼才行。可喜的是 2.x 系列仍會採用 Open source 授權發展下去。

http://www.nessus.org/news/

筆手上另有一套 unlimited 的弱點偵測軟體(合法授權,價值61萬),Nessus 3 和它相比並不遜色。在某些方面 Nessus 3 還比較精準。

ref: http://mmm.lxer.idv.tw/modules/news/article.php?storyid=11

[閱讀全文]

Samba + PDC


vi /etc/samba/smb.conf

[global]
   workgroup = SMOC 
   netbios name = smbPDC
   server string = SMOC Samba Server PDC
   security = user
   encrypt passwords = yes

[閱讀全文]

標籤: samba 網芳 ad

Samba + LDAP


[1.] 設定 ldap server

include               /etc/openldap/schema/samba.schema
database            bdb
suffix                "dc=wow,dc=tw"
rootdn               "cn=Manager,dc=wow,dc=tw"
rootpw              secret
directory           /var/lib/ldap

# 註解預設的設定
# Indices to maintain for this database

[閱讀全文]

標籤: samba 網芳 ldap

Backup + Rsync for Windows

Rsync Client

使用cwRsync

下載 http://nchc.dl.sourceforge.net/sourceforge/sereds/cwRsync_2.0.7_Installer.zip

 

安裝過後,操作方式參考上面CLient端說明

 

注意不同點在於

   rsync.exe -av /cygdrive/c/SRC_PATH user@ip::DST_PATH

 

   rsync.exe -av --delete --password-file="/cygdrive/c/Program Files/cwRsync/bin/rsyncd.secrets" cross@10.1.1.254::www /cygdrive/d/D/0dlinfo05/ssorcWWW

 

排程

將執行指令寫在C:Program FilescwRsync的cwrsync.cmd這檔案底下

接著新增排定工作

 

Rsync Server
下載 http://nchc.dl.sourceforge.net/sourceforge/sereds/cwRsync_Server_2.0.7_Installer.zip

[閱讀全文]

標籤: 備份

Samba

samba + user

 

fedora core 4

 

SERVER端

[1.] apt-get install samba samba-common samba-client

 

[2.] vi /etc/samba/smb.conf

[閱讀全文]

標籤: samba 網芳

Backup + Rsync + SSH

架構:
一、A 使用 ssh 登入 B 不用密碼
二、把 B 的東西備份到 A

一、參考ssh + no password login作法

      ref: http://ssorc.tw/index.php?load=read&id=260

二、A 端執行 rsync,會把 B 端的 httpd 目錄 放至 A 端的 httpd_tmp 目錄裡
      rsync -av --delete -e ssh 192.168.1.12:/var/log/httpd /var/log/httpd_tmp

現在習慣這麼下
rsync -av --delete root@192.168.1.12:/var/log/httpd /var/log/httpd_tmp
 
參考文件:
http://fanqiang.chinaunix.net/a6/b7/20010908/1305001258_b.html
http://linux.tnc.edu.tw/techdoc/rsync.htm
http://phorum.study-area.org/viewtopic.php?t=15553
http://www.adj.idv.tw/server/linux_rsync.php
http://phorum.study-area.org/viewtopic.php?t=23179&highlight=ssh-keygen

標籤: 備份 ssh rsync