ubuntu 安装(install) pwntcha[一个做验证码识别的开源程序]
一、安裝
1.
?
sudo apt-get install libsdl1.2-dev libsdl1.2debiansudo 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/
轉載于:https://www.cnblogs.com/itcomputer/p/4660706.html
總結
以上是生活随笔為你收集整理的ubuntu 安装(install) pwntcha[一个做验证码识别的开源程序]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何用 Swift 语言构建一个自定控件
- 下一篇: Ubuntu NFS搭建过程