Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[SOLVED] Download the PHPBB CAPTCHA Image?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Wed Dec 08, 2010 5:36 pm    Post subject: [SOLVED] Download the PHPBB CAPTCHA Image? Reply with quote

Edit: I solved my problem.

Hey everybody.

I've been trying to do this for a while now, but I can't seem to figure out how to download the CAPTCHA image from the registeration page.
I took a random page from google and come up with ("complete random" - first result Rolling Eyes ) this forum's registeration page:
http://sanbarrow.com/phpBB2/profile.php?mode=register&agreed=true&coppa=true

What I've done (in C#) is connect to this web page first, once I've had my cookie set and generated a session ID for my CAPTCHA, I took the URL of the CAPTCHA and tried to download this image (using the cookie I've got), but it doesn't seem to work, it returns a stream with no seek operations and length 0 (actually throwing an exception and ReadToEnd() returns empty string).
The same happens when trying to access the CAPTCHA image with a different cookie.
I've also noticed that everytime I access the CAPTCHA it generates a (actually 2) new cookie(s) for me with data from the PHPBB system.

I also tried changing my User-Agent and simulating a web browser, but I can't seem to download the image properly.

I'm not an expert when it comes to web protocols, so I'd be glad if anyone could help.
Razz


Last edited by Deltron Z on Thu Dec 09, 2010 12:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
elpacco
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Oct 2007
Posts: 1267

PostPosted: Wed Dec 08, 2010 6:12 pm    Post subject: Reply with quote

You're not supposed to be able to be able to have any access to a captcha image except to be able to view it with your own eyes. I mean, the entire purpose of captcha is to require a person to solve it and prevent anything automated to get by. Considering its extremely popular usage, I'd think they do that job very well. While I don't know much about bypassing captcha, common sense tells me that you're not the first to try, and that it's likely very difficult if feasible at all.
_________________
[AM]Misery wrote:

FangBanger wrote:
What is the best way for a lv19 Soldier to solo Sledge on Borderlands?
Shoot him.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Wed Dec 08, 2010 6:54 pm    Post subject: Reply with quote

Well, I know what is their purpose, I just find PHPBB's CAPTCHAs relatively easy and I'd like to add them to my database. I've already got most of the code for basic actions like custom user-input rules to search for the CAPTCHA on web pages, custom image processing and recognition. (however, this is still just the very early basic skeleton of a beta version of a future potentioal project)
I've managed to get 100% recognition on some basic CAPTCHAs, and now I'd like to expand my database, but when I occured PHPBB systems I wasn't able to deviese rules for my program to search for the CAPTCHA. I couldn't even manage to get to download the image by writing the headers into the code manually, even though later I'd like to try something a little more dynamic...
Downloading the CAPTCHA isn't supposed to be even hard, but PHPBB has some defence mechanism.

By the way, I've managed to devise algorithms to read some (very basic and old) reCAPTCHAs (the two shown in Wikipedia), however my program doesn't support such advance custom rules so it can't read it, but I can write a seperate program to specifically read these two reCAPTCHAs, with inverted colors and noise.

Now, don't mind what I am going to do with the image after I download it, just thought I could use some help figuring out how to simulate a web browser to trick the system into letting me access the generated CAPTCHAs.


Edit: problem solved, appearntly it was nothing I thought it could be, and like every weird bug the solution is naive and simple - it was simply a typo in the regular expression. Sad at least now I support the change of cookies.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites