2014/10/19 12:52
WebGoat installing instruction
you can run this tutorial under any debian family distro but not other platform
sudo apt-get install tomcat7 tomcat7-admin
sudoedit /etc/tomcat7/tomcat-users.xml
- edit
tomcat-users.xml
like below
sudo service tomcat7 force-reload
- open
http://your-server.net:8080/manager/html
and upload your war file
- open
http …
Continue reading »
2014/10/18 13:58
最近發現有 ht editor ,於是想下載編譯來用
無奈奮鬥了半小時還是搞不定,差點就放棄直接載 sourceforge 上的 binary 來用,所幸最後還是搞定了
# if you are not use debian family, install dependency on your own
sudo apt-get install autoconf automake libncurses-dev texinfo byacc flex
git clone --depth 1 https://github.com/sebastianbiallas/ht.git
cd ht
./autogen.sh
./configure
make
make htdoc …
Continue reading »
2012/10/16 13:23
看,這個就好欺負了:
這個算是中等的:
遇到這個算我運氣差...直接放棄比較快XD: 
對於某些網站想要寫自動化操作程式,卻被CAPTCHA(圖形化驗證碼)阻擋?
目前最簡單的手段就是交給OCR去識別,但是目前許多小型的OCR Engine功能較不完善,需要由我們來進行二值化
今天就來看一下二值化該怎麼做!
二值化
首先先來認識一下RGB色彩系統(色加法,光的三原色)
(上圖取自Adobe官方網站)
Red, Green, Blue,光的三原色,強度相等疊加起來就會變成白色(#FFFFFF)
如果全部都沒有那就是黑色(#000000)
那麼,我們只要取色彩濃度的臨界點,去做二值化(非黑即白)即可完成
雜訊去除
常用的手段無非在背景隨機打點或是隨機背景圖片
我們以上面的三張範例圖片中的第二張來說,一個很好用的思路:雜訊是獨立的點,面積很小,所以這時候就判斷每個色塊的面積,如果太小則予以移除
DEMO
在此用C#做個小範例...
Code:
private void CalcArea(ref Bitmap …
Continue reading »