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 


HackQuest?

 
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 Jun 16, 2010 5:31 pm    Post subject: HackQuest? Reply with quote

I've read about HackQuest in some post in this forum, regarding to some challanges related to primes so I've registered and searched for this challange (number 82) and it looks nice, and generally, this site looks awesome, even thought I didn't dig any deeper than this challange - mainly because I got stuck at it...
Can someone explain the purpose in this challange? it says there's "3 seconds limit" to get a prime number from another page, perform some calculations on it and enter the result. (which is also too long for this text box)
What I thought I have to do is create a program to read the value and post the answer using sockets and by that also bypassing the max-length limit, however, it doesn't seem to work.
Before I post any code or executables or any explaination for that matter, I'd like to know 2 things:
Am I even in the right direction? or am I way off?
And when I post the result, it takes 0.000 seconds to send it, however, it takes 16 seconds to receive about 6KB. when I click the button with the browser it generates an error right away, but when I use sockets to post the request it also returns very weird results, unexpected new-lines and messed up HTML... perhaps it prevents somehow from doing such a thing so I won't use any external programs to calculate the result? should I try JavaScript and set the answer the at text box instead?

Thanks.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Jun 16, 2010 8:42 pm    Post subject: Reply with quote

The objective of the challenge is to compute the number given with their steps, then send the result back to their service within the 3 seconds.

As stated on the page:

Code:
Example: Number = 17

1. Primes: 17 13 11 7 5 3 2
2. Primes: 17 11 5 2
3. 1+7 + 1+1 + 5+5 + 2+2 = 24
4. 24 (Not that large :P) = 12 x 2 = 6 x 2 x 2 = 3 x 2 x 2 x 2 -> 3+2+2+2 = 9
5. Answer: 17:24:9


So the answer in that case is 17:24:9, which you send back to the page. The page that gives you the number is the page you post the data back to:
http://www.hackquest.com/modules/HackQuest/hacking/9814165717/service.php

Doing other challenges on the site first would get you accustom to how they want you to do things. In this case you need to send it back like:

http://www.hackquest.com/modules/HackQuest/hacking/9814165717/service.php?answer=17:24:9

I wrote a C# prog to do this one for me:
http://www.mediafire.com/?jmzmozz2zyi

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Thu Jun 17, 2010 4:30 am    Post subject: Reply with quote

I don't want a solution just yet, so I won't download it right now.
I also wrote such a program, but instead of sending a GET request to serivce.php I thought I have to send POST request to 9814165717.php, like in the form "<form action=".../91...php", so I'm a little confused...

As I said, I've already written a lil' something to do this, but after sending the POST request it takes 16 seconds to respond...

Edit: why does my cookie look like this now?
Code:
Cookie: VIRUS!=Hello+I+am+a+virus%2C+and+I+come+from+HackQuest%21+Boooh%21+Be+scared%21; ...


Edit2: SUCCESS! Very Happy
Thanks a lot - but how did you know you have to send GET request to service.php? the form method was POST and to another page...

Edit3: I looked at the code trying to figure out what was happening and why I got weird log - the reason my request had Connection: keep-alive! Very Happy
Silly me... I guess I copy-pasted it without looking at it first... my bad.
Now my code works perfectly fine! thank you! Razz

By the way, what do I do with the code I get? I got something very long like Nxy239Z...

I used your method of executing the web browser, but I still wonder why couldn't I send the GET request using sockets? when I received a response it was just the headers, I didn't get any output.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Jun 17, 2010 7:55 am    Post subject: Reply with quote

At the top of the site there is a link called 'Rank Up!' you put any of the long messages they give you in there to mark the challenge as completed.

As for the cookie, don't worry about it, it was a joke one of the administrators did during an April fools prank I believe it was and it was never removed. There was info on their forum about it but it's not to worry about.

The send back to the service page, as I said above is learned throughout doing other challenges on their site. A few of them get into detail on how to send the answer back to their service pages which becomes a frequently used method of finishing some of the challenges.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Thu Jun 17, 2010 9:54 am    Post subject: Reply with quote

Hehe, not worried about the cookie, kinda funny actually. Razz

Thanks for the info, I've solved about 8 of the JavaScript challanges and ofcourse the first logic "challange", althought I don't quite understand the rest of the logic challanges... and I don't really have any clue about most other challanges, cryptography, stegano, internet or anything... I'm more of a software, internet, web and networking isn't really my thing.

Thanks for the info and website - interesting, useful, time well spent.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Jun 17, 2010 1:43 pm    Post subject: Reply with quote

The majority of the challenges on the site are designed to be simple but cause people to over think the solutions which leads to not being able to solve them. If you get stuck just either rethink the whole question, reread it and such, or go back to it later. Don't stress over not solving one, overall they are fairly easy.

This is my current record, I haven't actually touched the site in a while though due to work:
http://www.hackquest.com/user.php?op=userinfo&uname=atom0s

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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