Changeset 400 for pwntcha


Ignore:
Timestamp:
Jan 4, 2005, 3:12:26 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • scode captcha decoder
Location:
pwntcha/trunk/src
Files:
1 added
4 edited

Legend:

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

    r389 r400  
    44pwntcha_CFLAGS = $(ADDITIONAL_CFLAGS) -Wall -O6
    55pwntcha_LDFLAGS = $(ADDITIONAL_LDFLAGS)
    6 pwntcha_SOURCES = main.c image.c filters.c common.h slashdot.c phpbb.c test.c
     6pwntcha_SOURCES = \
     7    main.c \
     8    image.c \
     9    filters.c \
     10    common.h \
     11    phpbb.c \
     12    scode.c \
     13    slashdot.c \
     14    test.c
    715
    816if USE_OPENCV
  • pwntcha/trunk/src/main.c

    r392 r400  
    3232{
    3333    char *mode = "auto";
     34    int c;
     35    int digit_optind = 0;
    3436
    3537    argv0 = argv[0];
    36 
    37     int c;
    38     int digit_optind = 0;
    3938
    4039    for(;;)
     
    123122        else if(!strcmp(mode, "phpbb"))
    124123            result = decode_phpbb(img);
     124        else if(!strcmp(mode, "scode"))
     125            result = decode_scode(img);
    125126        else if(!strcmp(mode, "slashdot"))
    126127            result = decode_slashdot(img);
     
    131132                dprintf("autodetecting phpBB captcha\n");
    132133                result = decode_phpbb(img);
     134            }
     135            else if(img->height == 25)
     136            {
     137                dprintf("autodetecting scode captcha\n");
     138                result = decode_scode(img);
    133139            }
    134140            else if(img->height == 69)
  • pwntcha/trunk/src/slashdot.c

    r395 r400  
    3535
    3636/* Main function */
    37 char * decode_slashdot(struct image *img)
     37char *decode_slashdot(struct image *img)
    3838{
    3939    struct image *tmp1, *tmp2, *tmp3, *tmp4, *tmp5, *tmp6, *tmp7;
  • pwntcha/trunk/src/test.c

    r389 r400  
    2929
    3030/* Main function */
    31 char * decode_test(struct image *img)
     31char *decode_test(struct image *img)
    3232{
    3333    struct image *tmp1, *tmp2, *tmp3, *tmp4, *tmp5, *tmp6, *tmp7;
Note: See TracChangeset for help on using the changeset viewer.