星期四, 9月 16, 2010

Mac terminal cursor hot key

Below test in the bash shell.

back to the begin of current command: ctrl + a
go to the end of current command: ctrl + e
back one word : esc + b
forward one word : esc + f

Format usb under mac os x in command line

This is the command:

$ diskutil eraseVolume MS-DOS COOKIES /Volumes/COOKIES

eraseVolume filesystem name device

會讓usb變成fat32的fs

星期五, 9月 10, 2010

Kismac -- Mac OS X 上的無線探測工具

除了Wireshark以外,MAC上還有這套頗好用的工具。

雖然此工具和Kismet沒有關係,但此工具提供不少不錯的功能:

1. 簡單明瞭的GUI
2. 支援GPS
3. Crack of some protocol
在選單下,收集足夠的packet以後就可以進行crack WEP, LEAP。
4. de-authentication attack
5. 可以在MAC下進行rfmon mode (不用和任何AP associate即可sniffing traffic)

星期二, 7月 20, 2010

MAC 下的三種套件管理

目前比較多人使用的分別為homebrew, fink, macport

來記錄一下。

homebrew:
個人覺得最好的,因為會盡量使用系統中的程式,而非像其他兩種都各自用自己的,
減少了許多重複安裝的麻煩。

fink:
通常安裝好後的位置都放在/sw中,如果之後要移除直接把/sw刪除就好了。

macport:
安裝好的會在/opt/local裡面。

想要的軟體通常這三個裡面就會有收集了!

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的檔,把它移除就可以了。