hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Automation

 
Reply to topic    hacker.org Forum Index » Mortal Coil View previous topic
View next topic
Automation
Author Message
adum



Joined: 19 Apr 2007
Posts: 390

Post Automation Reply with quote
Like all our puzzles, this is designed to be solved by a computer past a certain point.

Accessing your current level
The URL for the puzzle is http://www.hacker.org/coil/index.php
The URL will accept parameters in the query part of the URL that correspond to your registered account:
name=<username>
password=<password>

Just making a normal HTTP request to the above URL with your name and password will retrieve the current puzzle. To parse this information, look for the line that says FlashVars="...". inside the quotes are params separated by ampersands. he board parameter is the map, where an X is a blocked spot and a dot is an empty one. It's all one string, but you can break it up knowing boardX. (The first boardX characters make the first row, etc.)



Submit a Solution via an HTTP GET:


To submit a solution, use the following parameter:
path=<moves>
x=<starting x coordinate>
y=<starting y coordinate>
where the moves are a list of 'D', 'R', 'U', or 'L' for down, right, up, or left.
For example, to submit a solution where your solution went {down, right, up} from one square over and two down, you would do an HTTP GET on the following URL:
Code:
http://www.hacker.org/coil/index.php?name=<username>&password=<password>&path=DRU&x=1&y=2

Thu May 10, 2007 9:59 pm View user's profile Send private message Visit poster's website
troy7519



Joined: 04 Oct 2008
Posts: 1

Post Reply with quote
What is an http request?
Sat Oct 04, 2008 5:46 am View user's profile Send private message
burnpanck



Joined: 14 Sep 2009
Posts: 5

Post HTTP Error 414: Request-URI Too Large Reply with quote
At the higher levels I am unable to submit a solution with the method described here, as the path gets rather long, too long for a GET. The server answers with "HTTP Error 414: Request-URI Too Large". If I send my solution as a POST, it gets just silently ignored. (Note: I identify myself using the forum cookie, not by name=<username>&password=<password>, is this a problem?)
Tue Oct 13, 2009 2:19 pm View user's profile Send private message
adum



Joined: 19 Apr 2007
Posts: 390

Post Reply with quote
hi, you probably can't use the forum cookie when submitting with POST. try sending your name and pw with the solution, or use name + spw for more security.

by the way, nice job getting so far so fast!
Tue Oct 13, 2009 10:10 pm View user's profile Send private message Visit poster's website
burnpanck



Joined: 14 Sep 2009
Posts: 5

Post Reply with quote
Thank you!
That was it indeed. I thought I had tried with normal user and password, however I realise there I did send the cookie as well. Very embarassing, one would suppose a hacker would find that on his own.. Embarassed
Wed Oct 14, 2009 1:14 am View user's profile Send private message
baha'a



Joined: 02 Jan 2010
Posts: 88

Post Reply with quote
hi

I really realize that how much fun is that

I don't know (still) how to do all these stuff but I hope I will soon

I tried to send a false solution just to test the method but the browser says "invalid user"

I tried to put %27 instead of ' in my user name but it didn't work
Sat Jan 09, 2010 9:45 am View user's profile Send private message
baha'a



Joined: 02 Jan 2010
Posts: 88

Post Reply with quote
well never mind

I'm sorry I thought http request was made just by typing these stuff (user name,password,path) in the URL bar in my browser.

but I realized that it's made by a programming language (well this makes more sense Confused )

I'm sorry I'm subscribed to a hacker community and I'm still not close to be called a hacker

so I'll keep silence for sometime till I gain the knowledge

thanks
Sun Jan 10, 2010 9:50 am View user's profile Send private message
baha'a



Joined: 02 Jan 2010
Posts: 88

Post Reply with quote
I posted one

I didn't know that I have to write the username and password without the tags "<>"
Mon Jan 11, 2010 5:57 am View user's profile Send private message
MrTerry



Joined: 26 Jan 2010
Posts: 33

Post Reply with quote
hi @ all

two simple questions :

the position is in range 0-? or 1-? ?

and

where is 0.0? (or 1.1?) upper left?

btw really thnx for this awesone site.... it took my life (by now) nearly about half a year away.... but that was it worth Very Happy
Thu Apr 29, 2010 2:59 pm View user's profile Send private message
CodeX



Joined: 17 Oct 2008
Posts: 350

Post Reply with quote
Indexing starts at 0,0 which is in the top left corner
Thu Apr 29, 2010 4:55 pm View user's profile Send private message
Tron



Joined: 22 Oct 2010
Posts: 30

Post Reply with quote
There is an alternative form for the answer, which is about factor five shorter. Instead of sending every direction change, you only send direction changes at T-crossings and leave them out for corners. This is mandatory from level 1171 onwards, because the web server drops answers longer than 1.000.000 bytes. The variable name is "qpath" instead of "path".
Here's an example:
adum wrote:
Code:
XXXXXX
X....X
X.X..X
X....X
XXXXXX

the solution would be x=2&y=3&qpath=L
since there are no choices after the first move.

Tue Aug 16, 2011 7:27 am View user's profile Send private message
LudemeGames



Joined: 04 Dec 2015
Posts: 6
Location: Austin, TX

Post Reply with quote
One small note about qpath - The first direction is required, regardless of whether or not the solution has a choice.

For example, level 12 is
Puzzle: "x=7&y=7&board=.............X....X...XX.......X.......XX...X...."
Solution: "&x=6&y=0&qpath=LU"
The qpath formatted solution requires L even though the start point only has one adjacent cell.
Tue Apr 05, 2016 11:16 pm View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:    
Reply to topic    hacker.org Forum Index » Mortal Coil All times are GMT
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


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.