Happy Monday!
all posts

Build pwntcha on Ubuntu 14.04

Published on Oct 17, 2014

B2a9eacd29aca2e5f9829fcbbd3fe552 Sven Pachnit GitHub Twitter StackOverflow

I had to collect some information in order to build pwntcha and these steps should make it work for you as well!

1. Install prerequisites

aptitude update
aptitude install build-essential git automake1.9 libsdl1.2-dev libimlib2-dev

# Choose 1.9 from the list if there are alternatives
update-alternatives --config automake

2. Clone pwntcha

cd /usr/local/src
git clone http://caca.zoy.org/git/pwntcha.git
cd pwntcha

3. Run configure

./bootstrap
./configure

4. Make pwntcha

This part is a bit weird but it works :)
make will fail the first time but it's okay, we can fix it!

cd src
make

g++ `imlib2-config --cflags` -Wall -O6 -g -O2 -o pwntcha pwntcha-main.o \
pwntcha-filter.o pwntcha-font.o pwntcha-image.o pwntcha-easter-eggs.o \
pwntcha-test.o authimage/libdecoder.a clubic/libdecoder.a java/libdecoder.a \
linuxfr/libdecoder.a livejournal/libdecoder.a lmt/libdecoder.a paypal/libdecoder.a \
phpbb/libdecoder.a scode/libdecoder.a slashdot/libdecoder.a \
ticketmaster/libdecoder.a tickets/libdecoder.a vbulletin/libdecoder.a \
xanga/libdecoder.a `imlib2-config --libs` -lImlib2

make
make install

Done!

You can now use pwntcha like this (you need to specify the share directory)

pwntcha -s /usr/local/src/pwntcha/src/ my_image.jpg

# I aliased it
alias pwntcha='pwntcha -s /usr/local/src/pwntcha/src/'


Thanks to: