coldfusion mx7 or mx8 中 data source(neo-query.xml)的 password, 是加密過的(base64 & des-ede3), 不過可以透過 openssl 來解密.echo 'encrypted-passowrds-string' | openssl des-ede3 -a -d \順手寫了一個小 script, 用來 parser neo-query.xml 取出 data source name, jdbc, username, password.
-K 30794A21403124723870304C4072312436794A214031726A \
-iv 30794A2140312472
ref: this.
| [+/-] |
decrypt Coldfusion datasource passwords
poster:
MarlboroMoo on
21:08
tag:
code,
coldfusion,
decrypt
/
Comments: (0)
|
| [+/-] |
plurk.sh
poster:
MarlboroMoo on
23:22
tag:
bash,
code,
command-line,
plurk,
script,
social network
/
Comments: (2)
|
會寫這隻 script 的原因很簡單, 我想要 karma 達到 100, 然後有一隻自己的 robot, 哇哈哈, 雖然已經有高手們寫出 API 了, 可是我想要重複造輪子, 而且是用 bash script. 這隻 script 的原理很簡單, 用 curl 這個工具來登入 plurk.com 並取得 cookie, 然後 post. 就這樣.
實作功能:
- 噗它
- 噗的時候可以指定動作
- 取得自己的浪
- 取得好友的浪
- 變身成 robot
- ...
- 必須有安裝 curl, ubuntu 直接用 apt-get 來安裝
- 請先修改 script 裡的帳號密碼, 還有 uid(登入 plurk 後, 網頁原始碼裡看得見.)
- 如果無法正常發送, 可以用 -v 的選項來來 debug.
- 目前只能當"偽robot", 使用 crontab 來定時噗.
使用方式:
直接看說明吧.
chmod +x ./plurk.sh
./plurk.sh -h
ref: this
| [+/-] |
postwp-mu.sh |
因為工作的關係, 用 bash 寫了一隻 script 可以從 command line 直接 blogging, 原理是將資料轉換成 xml, 並使用 netcat 將 xml 透過 xml-rpc protocol 塞給伺服器, 不過是這個 script 是給 wordpress 用的.. 如果 blogger 有支援 xm-rpc 的話, 我會生一個 for blogger 的版本, 應該會很黑皮, 嘎嘎嘎 !
實作功能:
- 發佈文章
- 發佈頁面(page)
- 發佈文章 or 頁面可指定分類(Categorie)和標籤(tag)
- 列出文章 or 頁面
- 刪除頁面(page)
- 刪除文章
- ...
- 請先修改 script 裡的帳號密碼.
- 可以先編輯一篇文章, 再將檔案指定給 script.
- wordpress 支援的 html tag 都可以使用, 如 <pre> <code> <blockquote>.
直接使用以下指令來看說明.
chmod +x ./postwp-mu.sh
./postwp-mu.sh -h
ref: this, this and this







