首页 > 系统服务 > 详细

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

时间:2015-07-20 12:13:04      阅读:1420      评论:0      收藏:0      [点我收藏+]
一、安装
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/

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

原文:http://www.cnblogs.com/itcomputer/p/4660706.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!