Changeset 1000 for pwntcha/trunk
- Timestamp:
- Jun 4, 2006, 2:58:45 AM (15 years ago)
- Location:
- pwntcha/trunk/src
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/Makefile.am
r499 r1000 10 10 authimage.c \ 11 11 clubic.c \ 12 java.c \ 12 13 linuxfr.c \ 13 14 livejournal.c \ -
pwntcha/trunk/src/common.h
r482 r1000 36 36 37 37 /* debug function */ 38 void dprintf(const char *fmt, ...);38 void pwnprint(const char *fmt, ...); 39 39 40 40 /* available CAPTCHA decoders */ -
pwntcha/trunk/src/main.c
r499 r1000 122 122 if(!img) 123 123 { 124 dprintf("cannot load %s\n", input);124 pwnprint("cannot load %s\n", input); 125 125 printf("\n"); 126 126 continue; … … 128 128 129 129 count = filter_count(img); 130 dprintf("image size %ix%i, %i colours\n",131 img->width, img->height, count);130 pwnprint("image size %ix%i, %i colours\n", 131 img->width, img->height, count); 132 132 133 133 if(!strcmp(mode, "test")) … … 137 137 else if(!strcmp(mode, "clubic")) 138 138 result = decode_clubic(img); 139 else if(!strcmp(mode, "java")) 140 result = decode_java(img); 139 141 else if(!strcmp(mode, "linuxfr")) 140 142 result = decode_linuxfr(img); … … 159 161 if(img->width == 155 && img->height == 50) 160 162 { 161 dprintf("probably an authimage captcha\n");163 pwnprint("probably an authimage captcha\n"); 162 164 result = decode_authimage(img); 163 165 } 164 166 else if(img->width == 175 && img->height == 35) 165 167 { 166 dprintf("probably a livejournal captcha\n");168 pwnprint("probably a livejournal captcha\n"); 167 169 result = decode_livejournal(img); 168 170 } 169 171 else if(img->width == 100 && img->height == 40 && count < 6) 170 172 { 171 dprintf("probably a linuxfr captcha\n");173 pwnprint("probably a linuxfr captcha\n"); 172 174 result = decode_linuxfr(img); 173 175 } 174 176 else if(img->width == 69 && img->height == 35) 175 177 { 176 dprintf("probably a lmt.lv captcha\n");178 pwnprint("probably a lmt.lv captcha\n"); 177 179 result = decode_lmt(img); 178 180 } 179 181 else if(img->width == 208 && img->height == 26) 180 182 { 181 dprintf("probably a Paypal captcha\n");183 pwnprint("probably a Paypal captcha\n"); 182 184 result = decode_paypal(img); 183 185 } 184 186 else if(img->width == 320 && img->height == 50) 185 187 { 186 dprintf("probably a phpBB captcha\n");188 pwnprint("probably a phpBB captcha\n"); 187 189 result = decode_phpbb(img); 188 190 } 189 191 else if(img->width == 170 && img->height == 50) 190 192 { 191 dprintf("probably a Xanga captcha\n");193 pwnprint("probably a Xanga captcha\n"); 192 194 result = decode_xanga(img); 193 195 } 194 196 else if(img->height <= 40 && count < 10) 195 197 { 196 dprintf("probably a scode/trencaspammers captcha\n");198 pwnprint("probably a scode/trencaspammers captcha\n"); 197 199 result = decode_scode(img); 198 200 } 199 201 else if(img->height <= 30 && count < 100) 200 202 { 201 dprintf("probably a clubic captcha\n");203 pwnprint("probably a clubic captcha\n"); 202 204 result = decode_clubic(img); 203 205 } 204 206 else if(img->height == 69) 205 207 { 206 dprintf("probably a slashdot captcha\n");208 pwnprint("probably a slashdot captcha\n"); 207 209 result = decode_slashdot(img); 208 210 } 211 else if(img->width == 200 && img->height == 100) 212 { 213 pwnprint("probably a java captcha\n"); 214 result = decode_java(img); 215 } 209 216 else if(img->width == 200 && img->height == 40) 210 217 { 211 dprintf("probably a tickets.com captcha\n");218 pwnprint("probably a tickets.com captcha\n"); 212 219 result = decode_tickets(img); 213 220 } 214 221 else if(img->height == 61) 215 222 { 216 dprintf("probably a vbulletin captcha\n");223 pwnprint("probably a vbulletin captcha\n"); 217 224 result = decode_vbulletin(img); 218 225 } 219 226 else if(img->width == 480 && img->height == 360 && count == 253) 220 227 { 221 dprintf("probably not a captcha\n");228 pwnprint("probably not a captcha\n"); 222 229 result = decode_easter_eggs(img); 223 230 } 224 231 else 225 232 { 226 dprintf("could not guess captcha type\n");233 pwnprint("could not guess captcha type\n"); 227 234 printf("\n"); 228 235 image_free(img); … … 235 242 if(!result) 236 243 { 237 dprintf("sorry, decoding failed\n");244 pwnprint("sorry, decoding failed\n"); 238 245 printf("\n"); 239 246 continue; … … 248 255 } 249 256 250 void dprintf(const char *fmt, ...)257 void pwnprint(const char *fmt, ...) 251 258 { 252 259 va_list args; -
pwntcha/trunk/src/scode.c
r478 r1000 222 222 case 5375: return '8'; 223 223 case 4710: return '9'; 224 /* quotatispro font */ 224 225 default: 225 dprintf("don't know about checksum %i\n", count);226 pwnprint("don't know about checksum %i\n", count); 226 227 return '?'; 227 228 }
Note: See TracChangeset
for help on using the changeset viewer.