Username: 
Password: 
Restrict session to IP 

Problem with this chall ?  Go to the Training: Programming 1 challenge

1 2 3 4
Global Rank: 254
Totalscore: 87263
Posts: 1642
Thanks: 1340
UpVotes: 887
Registered: 16y 95d




Last Seen: 15h 13m
The User is Offline
Problem with this chall ?
Google/translate1Thank You!1Good Post!0Bad Post! link
Sending your phpsessid via GET will not work for this challenge.
You have to submit it via cookie.

Greetings
Gizmore
The geeks shall inherit the properties and methods of object earth.
Global Rank: 349
Totalscore: 67801
Posts: 32
Thanks: 30
UpVotes: 14
Registered: 15y 121d



Last Seen: 3y 166d
The User is Offline
Problem with this chall ?
Google/translate1Thank You!1Good Post!0Bad Post! link
Hmm, well my understanding is that you cannot setcookie or do header(Set-Cookie: ) for a domain other than the one your script is hosted on in php? I'm fairly new at it, and I am pretty sure this is why my cookie was not being set using those commands.

Thanks for the response though Gizmore Smile
Last edited by Degenerate - Feb 06, 2009 - 21:05:53
Global Rank: 107
Totalscore: 162199
Posts: 9
Thanks: 10
UpVotes: 7
Registered: 15y 160d



The User is Offline
Problem with this chall ?
Google/translate1Thank You!1Good Post!0Bad Post! link
Quote from Degenerate

Hmm, well my understanding is that you cannot setcookie or do header(Set-Cookie: ) for a domain other than the one your script is hosted on in php?


Set-Cookie is used by the server to send a cookie to your browser. In this case you need to send a cookie to the server. This is done using the Cookie:-header. In that case you don't need to specify a domain. How you implement this depends on the programming language you use. If you use PHP/curl, you can probably do something like
GeSHi`ed Plaintext code
1
curl_setopt($ch, CURLOPT_COOKIE, "PHPSESSID=...");
(Note that the documentation on CURLOP_COOKIE at php.net talks about "Set-Cookie:", which is an error or just confusing)

A good way to see how Set-Cookie and Cookie work is propably to install livehttpheaders plugin for firefox and look at the output.




Global Rank: 254
Totalscore: 87263
Posts: 1642
Thanks: 1340
UpVotes: 887
Registered: 16y 95d




Last Seen: 15h 13m
The User is Offline
Problem with this chall ?
Google/translate1Thank You!0Good Post!1Bad Post! link
very nice post MrBlueSky Smile

In fact this challenge is all about send cookie credentials.

The server sends the "Set-Cookie:" header.
the clients send the "Cookie:" header.

Good luck on sending your credentials and
Happy Challenging !
The geeks shall inherit the properties and methods of object earth.
Global Rank: 349
Totalscore: 67801
Posts: 32
Thanks: 30
UpVotes: 14
Registered: 15y 121d



Last Seen: 3y 166d
The User is Offline
Problem with this chall ?
Google/translate1Thank You!0Good Post!1Bad Post! link
I have livehttpheaders, I will have a play and see what I can get done Smile

Thanks for an informative post.
Global Rank: 349
Totalscore: 67801
Posts: 32
Thanks: 30
UpVotes: 14
Registered: 15y 121d



Last Seen: 3y 166d
The User is Offline
Problem with this chall ?
Google/translate1Thank You!0Good Post!1Bad Post! link
Thank you very much, have managed this now, I wasn't aware of cURL before but it seems to be a very useful library (I only started to have a go at php for some challenges).

MrBlueSky++ =]
Global Rank: 1359
Totalscore: 18934
Posts: 18
Thanks: 18
UpVotes: 15
Registered: 15y 72d
vs4vijay`s Avatar

Last Seen: 10y 241d
The User is Offline
Problem with this chall ?
Google/translate1Thank You!0Good Post!1Bad Post! link
i have tried it by BASH..........
but it doesnt work.......
how can i send sessionID through BASH>............
I Would Love TO Change The World But They Wont Give Me The Source Code....
Global Rank: 29461
Totalscore: 0
Posts: 257
Thanks: 236
UpVotes: 173
Registered: 24y 178d
Last Seen: 0s
The User is Online
Problem with this chall ?
Google/translate1Thank You!1Good Post!0Bad Post! link
http://www.usenet-forums.com/linux-general/73607-newbie-saving-session-bash.html

Off: 1000'th post
Global Rank: 254
Totalscore: 87263
Posts: 1642
Thanks: 1340
UpVotes: 887
Registered: 16y 95d




Last Seen: 15h 13m
The User is Offline
Problem with this chall ?
Google/translate1Thank You!1Good Post!0Bad Post! link
I'd say you need something like wget or curl to make it work with bash.
so maybe "man curl" or "man wget" will contain useful information how to handle cookies.
The geeks shall inherit the properties and methods of object earth.
Global Rank: 1852
Totalscore: 13885
Posts: 17
Thanks: 20
UpVotes: 16
Registered: 15y 207d

Last Seen: 147d 19h
The User is Offline
Problem with this chall ?
Google/translate1Thank You!1Good Post!0Bad Post! link
For some odd reason my PHP script and class based on http://www.phpclasses.org/browse/package/5990.html needs 15 seconds to process and post the data.
Quote from Unknown
Your answer was correct.<br/>You timed out. (needed 15.1354589462 seconds).
1 2 3 4
quangntenemy, BjornR1989, Redknee, bballMalory, tunelko, silenttrack, n0tHappy, vs4vijay, Kruptein, stormsurfer, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, JanLitwin17, SwolloW, dangarbri have subscribed to this thread and receive emails on new posts.
1 people are watching the thread at the moment.
This thread has been viewed 56265 times.