GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CAPTCHA Decoders? (https://gfy.com/showthread.php?t=786422)

Sosa 11-21-2007 12:08 PM

CAPTCHA Decoders?
 
Anyone do CAPTCHA decoding software? I'm looking at having something that wrote that will quickly decode and enter the Captcha for me when it is pulled up on a website.

It has to be quick and accurate. Something so all I have to is hit enter when the page loads since the CAPTCHA is the only thing that needs entered on the page.

leave your info here if you do this kind of work and references / samples

WiredGuy 11-21-2007 01:00 PM

LOL, planning on spamming sites?
WG

fris 11-21-2007 01:01 PM

heh ya why would you want to do that ? :p

OzMan 11-21-2007 01:39 PM

"yes hello, I'd like to see what types of silencers you sell that would fit my glock"

"oh no particular reason"

dready 11-21-2007 01:41 PM

Quote:

Originally Posted by OzMan (Post 13402804)
"yes hello, I'd like to see what types of silencers you sell that would fit my glock"

"oh no particular reason"

:1orglaugh:1orglaugh

Sosa 11-21-2007 01:57 PM

lol no even close to spamming websites.

rowan 11-21-2007 07:22 PM

Quote:

Originally Posted by Sosa (Post 13402876)
lol no even close to spamming websites.

Scraping someone's hard work then?

I'm developing a site which as a whole will contain a shitload of useful data, I can't wait until idiots start scraping it... :321GFY

justFred 11-21-2007 07:36 PM

wow I definitely rolled my eyes at this one.

$5 submissions 11-21-2007 07:42 PM

Hit me up on Yahoo IM (lolz)

Xrated J 11-21-2007 07:46 PM

:1orglaugh:1orglaugh:1orglaugh

DBS.US 11-21-2007 08:14 PM

We have been testing one in a craigslist auto-poster, it's working good, but still needs a few tweaks.

Sosa 11-22-2007 05:00 PM

this isn't anything for stealing someones website work, spamming websites or anything like that. Simply filling in the captcha on one page after I make some selections by hand.

fluffygrrl 11-22-2007 05:50 PM

Quote:

Originally Posted by Sosa (Post 13402338)
Something so all I have to is hit enter

I think you're missing a sublte point on this entire automation thingee.

Now go hit enter.

pr0 11-22-2007 07:14 PM

Quote:

Originally Posted by rowan (Post 13404671)
Scraping someone's hard work then?

I'm developing a site which as a whole will contain a shitload of useful data, I can't wait until idiots start scraping it... :321GFY

seriously? link me on icq :1orglaugh

SmokeyTheBear 11-22-2007 07:20 PM

Code:

<?php
class OCR
{
    private $im;

    function Color($x, $y)
    {
        if (!is_resource($this->im))
        {
            return false;
        }

        extract(imagecolorsforindex($this->im, imagecolorat($this->im, $x, $y)));

        $red = base_convert($red, 10, 16);

        if (strlen($red) < 2)
        {
            $red = '0' . $red;
        }

        $green = base_convert($green, 10, 16);

        if (strlen($green) < 2)
        {
            $green = '0' . $green;
        }

        $blue = base_convert($blue, 10, 16);

        if (strlen($blue) < 2)
        {
            $blue = '0' . $blue;
        }

        return strtoupper($red . $green . $blue);
    }

    function Info($image, $flag = null)
    {
        list($width, $height, $type) = getimagesize($image);

        if (!empty($flag))
        {
            $flag = strtolower(trim($flag));

            if ($flag == 'width')
            {
                return $width;
            }

            else if ($flag == 'height')
            {
                return $height;
            }

            else if ($flag == 'type')
            {
                switch ($type)
                {
                    case 1:
                        return 'gif';
                    break;

                    case 2:
                        return 'jpg';
                    break;

                    case 3:
                        return 'png';
                    break;
                }
            }

            return false;
        }

        switch ($type)
        {
            case 1:
                $type = 'gif';
            break;

            case 2:
                $type = 'jpg';
            break;

            case 3:
                $type = 'png';
            break;
        }

        $result = array
        (
            'width' => $width,
            'height' => $height,
            'type' => $type
        );

        return $result;
    }

    function Read($tag, $image, $background_vector = 'FFFFFF')
    {
        $image_info = $this->Info($image);

        $tag = strtolower($tag);

        if (!is_dir('OCR/' . $tag . '/'))
        {
            return false;
        }

        $characters = array();

        $handle = opendir('OCR/' . $tag . '/patterns/');

        while (($file = readdir($handle)) !== false)
        {
            if (($file != '.') && ($file != '..'))
            {
                if (!is_dir('OCR/' . $tag . '/patterns/' . $file))
                {
                    $file = str_replace('.ocr', '', $file);

                    $characters[$file] = $file;
                }
            }
        }

        closedir($handle);

        $ignore_hash = '';

        if (!empty($background_vector))
        {
            if (strlen($background_vector) == 6)
            {
                $ignore_hash = md5(str_repeat($background_vector, $image_info['height']));
            }

            else
            {
                $ignore_hash = md5($background_vector);
            }
        }

        if ($image_info['type'] == 'gif')
        {
            $this->im = imagecreatefromgif($image);
        }

        else if ($image_info['type'] == 'jpg')
        {
            $this->im = imagecreatefromjpeg($image);
        }

        else if ($image_info['type'] == 'png')
        {
            $this->im = imagecreatefrompng($image);
        }

        $test = array();
        $column = 0;
        $candidates = array();
        $result = '';

        for ($i = 0; $i < $image_info['width']; $i++)
        {
            $test[$column] = '';

            for ($j = 0; $j < $image_info['height']; $j++)
            {
                $test[$column] .= $this->Color($i, $j);
            }

            $test[$column] = md5($test[$column]);

            if ($test[$column] == $ignore_hash)
            {
                $test = array();
                $column = 0;
            }

            else
            {
                if (empty($candidates[$i - $column]))
                {
                    foreach ($characters as $character)
                    {
                        $pattern = unserialize(file_get_contents('OCR/' . $tag . '/patterns/' . $character . '.ocr'));

                        if ($test[$column] == $pattern[$column])
                        {
                            $candidates[$i - $column][] = $character;
                        }
                    }
                }

                else
                {
                    foreach ($candidates[$i - $column] as $character)
                    {
                        $pattern = unserialize(file_get_contents('OCR/' . $tag . '/patterns/' . $character . '.ocr'));

                        if ($test[$column] != $pattern[$column])
                        {
                            $key = array_search($character, $candidates[$i - $column]);

                            unset($candidates[$i - $column][$key]);
                        }
                    }
                }

                if (count($candidates[$i - $column]) == 1)
                {
                    $candidates[$i - $column] = array_values($candidates[$i - $column]);
                    $result .= $candidates[$i - $column][0];

                    $character_width = $this->Info('OCR/' . $tag . '/source/' . $candidates[$i - $column][0] . '.' . $image_info['type'], 'width');

                    $i = $i - $column + $character_width - 1;
                    $column = 0;
                }

                else
                {
                    $column++;
                }
            }
        }

        return $result;
    }

    function Train($tag, $character, $image)
    {
        if (!file_exists($image))
        {
            return false;
        }

        else
        {
            $image_info = $this->Info($image);
        }

        $tag = strtolower($tag);

        if (!is_dir('OCR/' . $tag . '/'))
        {
            mkdir('OCR/' . $tag . '/');
        }

        if (!is_dir('OCR/' . $tag . '/source/'))
        {
            mkdir('OCR/' . $tag . '/source/');
        }

        if (file_exists('OCR/' . $tag . '/source/' . $character . '.' . $image_info['type']))
        {
            @unlink('OCR/' . $tag . '/source/' . $character . '.' . $image_info['type']);
        }

        @copy($image, 'OCR/' . $tag . '/source/' . $character . '.' . $image_info['type']);

        $image = 'OCR/' . $tag . '/source/' . $character . '.' . $image_info['type'];

        if ($image_info['type'] == 'gif')
        {
            $this->im = imagecreatefromgif($image);
        }

        else if ($image_info['type'] == 'jpg')
        {
            $this->im = imagecreatefromjpeg($image);
        }

        else if ($image_info['type'] == 'png')
        {
            $this->im = imagecreatefrompng($image);
        }

        $result = array();

        for ($i = 0; $i < $image_info['width']; $i++)
        {
            $result[$i] = '';

            for ($j = 0; $j < $image_info['height']; $j++)
            {
                $result[$i] .= $this->Color($i, $j);
            }

            $result[$i] = md5($result[$i]);
        }

        if (!is_dir('OCR/' . $tag . '/patterns/'))
        {
            mkdir('OCR/' . $tag . '/patterns/');
        }

        if (file_exists('OCR/' . $tag . '/patterns/' . $character . '.ocr'))
        {
            @unlink('OCR/' . $tag . '/patterns/' . $character . '.ocr');
        }

        $handle = @fopen('OCR/' . $tag . '/patterns/' . $character . '.ocr', 'wb');

        flock($handle, LOCK_EX);
        fwrite($handle, serialize($result));
        flock($handle, LOCK_UN);
        fclose($handle);
    }
}

?>


DBS.US 11-22-2007 08:50 PM

http://en.wikipedia.org/wiki/Captcha

baddog 11-26-2007 11:03 PM

So, how many of you would buy a copy of a script that did that if it were made available?

Just wondering.

WiredGuy 11-26-2007 11:40 PM

Everyone who posted your gonna spam with it.
WG

blogman9 11-27-2007 02:23 AM

try this team: http://www.ocr-research.org.ua/

Naja-ram 11-27-2007 02:32 AM

now listen to me:
no one puts up a captcha for no reason on his forms/pages.
don't think we are all stupid.
either you post a link of where you want it or you go down as a spammer in this board's history.

SmokeyTheBear 11-27-2007 02:46 AM

Quote:

Originally Posted by Naja-ram (Post 13426464)
now listen to me:
no one puts up a captcha for no reason on his forms/pages.
don't think we are all stupid.
either you post a link of where you want it or you go down as a spammer in this board's history.

actually thats not true , i put captcha's on my porn sites to keep the blind guys from cheating me out of my goods. , obviously he isnt blind so he might need it for that..:winkwink:

actually its a serious issue.. ( blind people and captcha's ) many sites now offer audio "captchas"

StarkReality 11-27-2007 03:32 AM

Depending on what you need the captchas entered for, you could go the visitor incentived way, too. Easy example: A proxy site that requires a captcha before the visitor can surf to the site of his choice...so you basically let others manually enter the captchas you need to be entered...

Naja-ram 11-27-2007 07:38 AM

Quote:

Originally Posted by Sosa (Post 13407890)
this isn't anything for stealing someones website work, spamming websites or anything like that. Simply filling in the captcha on one page after I make some selections by hand.

so why not post a link?

fris 11-27-2007 09:21 AM

i used something like that for my craigslist bot

baddog 11-27-2007 12:55 PM

Quote:

Originally Posted by Naja-ram (Post 13427460)
so why not post a link?

Maybe because it is none of your business and he doesn't need/want the competition for what he is doing.

Sosa 11-27-2007 01:02 PM

Quote:

Originally Posted by Naja-ram (Post 13427460)
so why not post a link?

Umm because why would I want 10 other people jumping and doing the same thing. A few people know about it, and I have already talked to them about the project.

For everyone that thinks this is spam, sorry but it isn't just like I have mentioned before.

DBS.US 11-27-2007 11:56 PM

It's about the competition baby:winkwink:

DBS.US 11-27-2007 11:57 PM

It's about the competition baby:winkwink:
Two many sheep here:2 cents:


All times are GMT -7. The time now is 09:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123