Username: 
Password: 
Restrict session to IP 

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

1 2 3 4
Global Rank: 238
Totalscore: 84572
Posts: 1339
Thanks: 1194
UpVotes: 706
Registered: 11y 216d




Last Seen: 5d 12h
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: 336
Totalscore: 63792
Posts: 32
Thanks: 30
UpVotes: 13
Registered: 10y 242d



Last Seen: 1y 280d
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: 118
Totalscore: 145695
Posts: 9
Thanks: 9
UpVotes: 6
Registered: 10y 281d



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: 238
Totalscore: 84572
Posts: 1339
Thanks: 1194
UpVotes: 706
Registered: 11y 216d




Last Seen: 5d 12h
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: 336
Totalscore: 63792
Posts: 32
Thanks: 30
UpVotes: 13
Registered: 10y 242d



Last Seen: 1y 280d
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: 336
Totalscore: 63792
Posts: 32
Thanks: 30
UpVotes: 13
Registered: 10y 242d



Last Seen: 1y 280d
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: 1200
Totalscore: 18785
Posts: 18
Thanks: 17
UpVotes: 14
Registered: 10y 192d
vs4vijay`s Avatar

Last Seen: 5y 362d
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: 20000
Totalscore: 0
Posts: 248
Thanks: 224
UpVotes: 154
Registered: 19y 299d
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: 238
Totalscore: 84572
Posts: 1339
Thanks: 1194
UpVotes: 706
Registered: 11y 216d




Last Seen: 5d 12h
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: 1758
Totalscore: 11852
Posts: 17
Thanks: 20
UpVotes: 16
Registered: 10y 328d

Last Seen: 5y 119d
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
BjornR1989, Redknee, bballMalory, tunelko, silenttrack, qdxy, vs4vijay, Kruptein, stormsurfer, TheHiveMind, Z, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89 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 44927 times.