Username: 
Password: 
Restrict session to IP 

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

1 2 3 4
Global Rank: 235
Totalscore: 84998
Posts: 1367
Thanks: 1213
UpVotes: 732
Registered: 12y 112d




Last Seen: 15d 2h
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: 338
Totalscore: 63867
Posts: 32
Thanks: 30
UpVotes: 13
Registered: 11y 138d



Last Seen: 2y 176d
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: 116
Totalscore: 145681
Posts: 9
Thanks: 10
UpVotes: 7
Registered: 11y 177d



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: 235
Totalscore: 84998
Posts: 1367
Thanks: 1213
UpVotes: 732
Registered: 12y 112d




Last Seen: 15d 2h
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: 338
Totalscore: 63867
Posts: 32
Thanks: 30
UpVotes: 13
Registered: 11y 138d



Last Seen: 2y 176d
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: 338
Totalscore: 63867
Posts: 32
Thanks: 30
UpVotes: 13
Registered: 11y 138d



Last Seen: 2y 176d
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: 1215
Totalscore: 18789
Posts: 18
Thanks: 17
UpVotes: 14
Registered: 11y 88d
vs4vijay`s Avatar

Last Seen: 6y 258d
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: 22594
Totalscore: 0
Posts: 250
Thanks: 229
UpVotes: 161
Registered: 20y 195d
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: 235
Totalscore: 84998
Posts: 1367
Thanks: 1213
UpVotes: 732
Registered: 12y 112d




Last Seen: 15d 2h
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: 1808
Totalscore: 11885
Posts: 17
Thanks: 20
UpVotes: 16
Registered: 11y 224d

Last Seen: 6y 15d
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, n0tHappy, vs4vijay, Kruptein, stormsurfer, TheHiveMind, Z, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0 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 48835 times.