Changeset 419 for pwntcha/trunk/src


Ignore:
Timestamp:
Jan 5, 2005, 12:10:43 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • linuxfr.org captchas
Location:
pwntcha/trunk/src
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/src/Makefile.am

    r414 r419  
    99    filters.c \
    1010    common.h \
     11    linuxfr.c \
    1112    phpbb.c \
    1213    scode.c \
  • pwntcha/trunk/src/common.h

    r414 r419  
    2222
    2323/* available CAPTCHA decoders */
     24char *decode_linuxfr(struct image *img);
    2425char *decode_phpbb(struct image *img);
    2526char *decode_scode(struct image *img);
  • pwntcha/trunk/src/main.c

    r414 r419  
    125125        if(!strcmp(mode, "test"))
    126126            result = decode_test(img);
     127        else if(!strcmp(mode, "linuxfr"))
     128            result = decode_linuxfr(img);
    127129        else if(!strcmp(mode, "phpbb"))
    128130            result = decode_phpbb(img);
     
    135137        else
    136138        {
    137             if(img->width == 320 && img->height == 50)
     139            if(img->width == 100 && img->height == 40)
     140            {
     141                dprintf("autodetected linuxfr captcha\n");
     142                result = decode_linuxfr(img);
     143            }
     144            else if(img->width == 320 && img->height == 50)
    138145            {
    139146                dprintf("autodetected phpBB captcha\n");
Note: See TracChangeset for help on using the changeset viewer.