WebGoat installing instruction under Ubuntu

WebGoat installing instruction

you can run this tutorial under any debian family distro but not other platform

  1. sudo apt-get install tomcat7 tomcat7-admin
  2. sudoedit /etc/tomcat7/tomcat-users.xml
  3. edit tomcat-users.xml like below
  4. sudo service tomcat7 force-reload
  5. open http://your-server.net:8080/manager/html and upload your war file
  6. open http …

Continue reading »

ht editor 編譯筆記

最近發現有 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 »

MapleStory Memory Dump Tool

screenshot

How to use this?

  1. Stay at the "Play" window.
  2. Fill in the filename. 3. Click "_S_ave" button.

Download: MediaFire

Continue reading »

CAPTCHA自動辨識前置二值化處理以及簡易雜訊去除

看,這個就好欺負了:01.png 這個算是中等的:04.jpg 遇到這個算我運氣差...直接放棄比較快XD: Captcha.jpg

對於某些網站想要寫自動化操作程式,卻被CAPTCHA(圖形化驗證碼)阻擋? 目前最簡單的手段就是交給OCR去識別,但是目前許多小型的OCR Engine功能較不完善,需要由我們來進行二值化 今天就來看一下二值化該怎麼做!

二值化

首先先來認識一下RGB色彩系統(色加法,光的三原色) rgb_model.gif (上圖取自Adobe官方網站

Red, Green, Blue,光的三原色,強度相等疊加起來就會變成白色(#FFFFFF) 如果全部都沒有那就是黑色(#000000)

那麼,我們只要取色彩濃度的臨界點,去做二值化(非黑即白)即可完成

雜訊去除

常用的手段無非在背景隨機打點或是隨機背景圖片 我們以上面的三張範例圖片中的第二張來說,一個很好用的思路:雜訊是獨立的點,面積很小,所以這時候就判斷每個色塊的面積,如果太小則予以移除

DEMO

在此用C#做個小範例... B8A.png Code:

private void CalcArea(ref Bitmap …

Continue reading »