瀏覽模式: 普通 | 列表

駭客團體提供網站漏洞檢測工具

Quote: http://itinternals.com/archives/2008/02/25/572

駭客團體Cult of the Dead Cow(CDC)最近釋出一個開放原始碼的網站漏洞檢測工具「Goolag Scanner」,以幫助網管人員迅速找到網站的安全漏洞,問題是您敢用嗎?

此工具是利用Google Hacking的方法來檢測網站是否有安全漏洞,它是根據「Johnny I Hack Stuff的GHDB」這個資料庫改寫而成的,目前只有Windows版本。

標籤: 漏洞 駭客

$@ 用來得知後面帶了參數有幾個

Quote: http://www.study-area.org/tips/shell_13q.txt

#!/bin/bash

my_fun() {
        echo "$#"
}

echo 'the number of parameter in "$@" is '$(my_fun "$@")
echo 'the number of parameter in "$*" is '$(my_fun "$*")

sh script.sh

the number of parameter in "$@" is 0
the number of parameter in "$*" is 1

sh script.sh  1 2 3

[閱讀全文]

兩個反單引號的功用等於 $()

兩個反單引號的功用等於 $()

echo `ls /etc/passwd` `ls /etc/group`
/etc/passwd /etc/group
echo $(ls /etc/passwd $(ls /etc/group))
/etc/group /etc/passwd

用 echo + $(()) 來算數

用 echo 來算數
echo $((1+2))
也可以
echo $[1+2]
標籤: 指令

printf 指令

cat /etc/passwd | awk 'BEGIN {FS=":"} $3 < 10 {print $1 " " $3}'
root     0
bin      1
daemon   2
adm      3
lp       4
sync     5
shutdown         6
halt     7
mail     8
news     9

printf "\n%10s %10s " `cat /etc/passwd | awk 'BEGIN {FS=":"} $3 < 10 {print $1 " " $3}'`

          root          0
            bin          1

[閱讀全文]

標籤: 指令

join指令


檔案1.txt

root:x:0:0:root:/root:/bin/bash

檔案2.txt

root:x:0:root

join -t ' ' -1 4 檔案1.txt -2 3 檔案2.txt

 root:x:0:0:root:/root:/bin/bash root:x:0:root

join -t ':' -1 4 檔案1.txt -2 3 檔案2.txt

0:root:x:0:root:/root:/bin/bash:root:x:root
標籤: 指令 join

RAID + 延伸型的磁碟陣列

現在 http://www.ithome.com.tw/itadm/article.php?c=47442 才知道原來 RAID 0+1 與 RAID 10 是不同的,
可是為何有些文件上的標題下的是 RAID 10 (0+1) 呢?
我已經搞不懂了
這邊的說法 http://www.pcguide.com/ref/hdd/perf/raid/levels/multLevel01-c.html

RAID Levels 0+1 (01) and 1+0 (10)

Description: The most popular of the multiple RAID levels, RAID 01 and 10 combine the best features of striping and mirroring to yield large arrays with high performance in most uses and superior fault tolerance. RAID 01 is a mirrored configuration of two striped sets; RAID 10 is a stripe across a number of mirrored sets. RAID 10 and 01 have been increasing dramatically in popularity as hard disks become cheaper and the four-drive minimum is legitimately seen as much less of an obstacle. RAID 10 provides better fault tolerance and rebuild performance than RAID 01. Both array types provide very good to excellent overall performance by combining the speed of RAID 0 with the redundancy of RAID 1 without requiring parity calculations.

另一個說法 http://net.csai.cn/store_Raid/200707251633131640.htm

RAID 0和RAID 1的組合稱為RAID 0+1,或稱為RAID 10

再來一個 http://www.accs.com/p_and_p/RAID/CompoundRAID.html

[閱讀全文]

標籤: 硬碟