當新增so到lib之後,
系統會需要被通知更新一下,否則可能仍會有安裝完新的lib so後仍出現
error while loading shared libraries: ...so : cannot open shared object file
這樣的訊息。
只要跑
#ldconfig
讓系統重新去確認一下即可。
星期五, 10月 08, 2010
星期四, 9月 16, 2010
execl vs excvp
These two will search for prog on current PATH
execlp(prog, arg0, arg1, arg2, ...)
execvp(prog, argList)
簡單說
execvp可以傳argument list,而exclp卻需要把參數一個一個傳進去。
execlp(prog, arg0, arg1, arg2, ...)
execvp(prog, argList)
簡單說
execvp可以傳argument list,而exclp卻需要把參數一個一個傳進去。
標籤:
MAC,
Programming,
Python,
Unix
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
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
$ 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)
雖然此工具和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)
訂閱:
文章 (Atom)