SRL Archive - Other Scripts

Captcha help


malotthouse

2009-06-09 20:53:22

I am working on a Captcha solver for simple captchas, but can't seem to get the order working. I am currently using dtms to solve this captcha (because its an easy one) and searching for deformed dtms. Though the problem i am having is getting the letters/numbers in order as they are shown on the screen. I can identify all of the letters correctly though. If needed i will post some pictures…

Da 0wner

2009-06-09 21:10:06

Post pictures or the site with the capatcha you are trying to crack.

bullzeye95

2009-06-09 21:11:38

Take the positions that you found the DTMs at and sort the letters from smallest X position to highest X position.

malotthouse

2009-06-09 21:58:08

haha i think bullzeye has what i am looking for. is there a simple way to put them in order or do i have to do a lot of </> stuff?

otherwise ill probably have to make a long sorting procedure :(. oh well. ill still post pics, maybe someone has an easier way.

Shuttleu

2009-06-09 21:59:54

post the link to the catchpa

~shut

Da 0wner

2009-06-09 22:05:09

Post the link please :<.

malotthouse

2009-06-09 22:07:02






malotthouse

2009-06-09 22:11:57

I can't post the link, its under a log in thing under facebook. Its called moola. Ive been working on a script for months now, only to be beaten by this the other day. so far it has made me $30 but i can't beat this captcha. still working on it though…

nielsie95

2009-06-09 22:26:42


program New;
var
b: TBitmap;
w, h, i, ii, iii: Integer;
p: TPointArray;
begin
b := LoadBitmap('c:\tmp.jpg');
GetBitmapSize(b, w, h);

SetTargetBitmap(b);

with GetBitmapCanvas(b) do
begin
Brush.Color := clRed;
Pen.Color := clRed;
Rectangle(0, 0, w, 10);
Rectangle(0, 50, w, h);
end;

FindColorsTolerance(p, 0, 0, 10, w, 50, 300);
for i := 0 to High(p) do
for ii := 0 to 1 do
for iii := 0 to 1 do
FastSetPixel(b, p[i].x + ii, p[i].y + iii, clRed);

FindColorsTolerance(p, clWhite, 0, 10, w, 50, 50);
for i := 0 to High(p) do
for ii := -1 to 1 do
for iii := -1 to 1 do
FastSetPixel(b, p[i].x + ii, p[i].y + iii, clWhite);

FindColorsTolerance(p, 0, 0, 10, w, 50, 440);
for i := 0 to High(p) do
for ii := 0 to 1 do
for iii := 0 to 1 do
FastSetPixel(b, p[i].x + ii, p[i].y + iii, clRed);

DisplayDebugImgWindow(w, h);
SafeDrawBitmap(b, GetDebugCanvas, 0, 0);

FreeBitmap(b);
end.

Make sure you change the location of the bitmap in LoadBitmap.
My guess is it's possible.

malotthouse

2009-06-09 22:31:28

my gosh nielsie. you are a god. I wouldve never thought of this in a billion years. now i gotta find where its storing the bmp…

nielsie95

2009-06-09 22:37:08

SCAR also loads jpg through LoadBitmap (as it does above).

malotthouse

2009-06-09 22:42:00

thats kinda weird considering its loadbitmap. oh well, ill keep that in mind.

ShowerThoughts

2009-06-09 22:45:35

From: malotthouse
thats kinda weird considering its loadbitmap. oh well, ill keep that in mind.


Now you used Nielsie's script how do you get the letters now?

malotthouse

2009-06-09 22:48:33

working on it. actually i need to get another captcha first… haha.

malotthouse

2009-06-09 23:05:21

Now is there a function to save the bmp so that i can search the bmp? and then how can i search dtms on something not on screen? any ideas?

malotthouse

2009-06-09 23:27:42

hmm, this won't work considering the captcha is not depositing a picture in any temp i see. Ill keep looking, but it doesn't seem so.

Da 0wner

2009-06-09 23:32:26

Omfg dude. Merge your posts!

But that capatcha is fail.

malotthouse

2009-06-09 23:36:56

sorry about not merging posts. i just keep continuing work and post it as a new one. oh well, ill do it from now on.

it seems like i'll have to go back to the original method of dtms and aligning from left to right by x values. bleh. another day, im done for today.

nielsie95

2009-06-10 00:38:53

Oh sorry! I didn't read the first post correctly! I thought you couldn't detect the letters, but you can :p

Yeah, sorting by x values would be the way to go :)

Blender

2009-06-10 09:30:46

I can just imagine SRL-Forums being a CAPTCHA and site cracking site in a couple of months, running on hidden servers like The Pirate Bay.

Just imagining…

Wrycu

2009-06-27 03:06:33

Are there any known scripts that will solve simple CAPTCHA's?

I am trying to find one, as the CAPTCHA I need to solve is very simple.
URL included.
https://login.aol.hk/idp/Captcha

NiiX

2009-07-01 02:51:58

You could try to download the image with the script and then read it off.

Sorry, I just thougt that could help.