ubuntu 安装(install) pwntcha[一个做"验证码识别"的开源程序]

一、安装
1.
 
sudo apt-get install libsdl1.2-dev libsdl1.2debian
sudo apt-get install libsdl1.2-dev(比较大,10M左右)

sudo apt-get install libsdl-image1.2-dev

sudo apt-get install libsdl-mixer1.2-dev

sudo apt-get install libsdl-ttf2.0-dev

sudo apt-get install libsdl-gfx1.2-dev

2.安装imlib2

sudo apt-get install libimlib2

sudo apt-get install libimlib2-dev

3.sudo apt-get install opencv,大概60M

4.sudo apt-get install subversioin

5.svn co svn://svn.zoy.org/caca/pwntcha/trunk pwntcha

6../bootstrap

7.make

8.make install

 

二、运行

 

2、编译

pwntcha


2.1、产生configure脚本和Makefile (cd trunk/ && ./bootstrap)

2.2、编译,安装 (./configure && make && make install)


此时,就会在trunk/src/目录下产生可执行文件

pwntcha

,但是,程序还不能做验证码识别。你还需要做以下设置:

在可执行文件

pwntcha

所在目录(默认是trunk/src/)下建立share目录。

把trunk/src/下的站点文件夹(xanga,vbulletin,tickets,ticketmaster,slashdot,scode,phpbb,paypal....),移到share里边。即:share下每个文件夹下都有一个站点文件夹,这些文件夹使得

pwntcha

能打开这些站点的验证码图片文件。


这两大步骤之后,就能使用

pwntcha

了。命令是:

Usage: ./

pwntcha

[OPTION]... IMAGE...

-m, --mode <mode> force operating mode

-s, --share <dir> specify shared dir

-q, --quiet do not print information messages

-h, --help display this help and exit

-v, --version output version information and exit

下载图片:

 

curl -O http://hactheplanet.com/blog/wp-content/uploads/2011/01/authimage.jpeg
pwntcha authimage.jpeg

 

 

运行

cd src

 

pwntcha authimage.jpeg -s ../src/

posted @ 2015-07-20 10:25  arun_yh  阅读(1276)  评论(1编辑  收藏  举报