Username: 
Password: 
Restrict session to IP 

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

1 2 3 4
Global Rank: 227
Totalscore: 94360
Posts: 1684
Thanks: 1360
UpVotes: 920
Registered: 16y 314d




Last Seen: 1d 23h
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: 347
Totalscore: 67810
Posts: 32
Thanks: 30
UpVotes: 14
Registered: 15y 341d



Last Seen: 4y 21d
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: 109
Totalscore: 162234
Posts: 9
Thanks: 10
UpVotes: 7
Registered: 16y 14d



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: 227
Totalscore: 94360
Posts: 1684
Thanks: 1360
UpVotes: 920
Registered: 16y 314d




Last Seen: 1d 23h
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: 347
Totalscore: 67810
Posts: 32
Thanks: 30
UpVotes: 14
Registered: 15y 341d



Last Seen: 4y 21d
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: 347
Totalscore: 67810
Posts: 32
Thanks: 30
UpVotes: 14
Registered: 15y 341d



Last Seen: 4y 21d
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: 1377
Totalscore: 18939
Posts: 18
Thanks: 18
UpVotes: 15
Registered: 15y 291d
vs4vijay`s Avatar

Last Seen: 11y 96d
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: 30068
Totalscore: 0
Posts: 265
Thanks: 243
UpVotes: 180
Registered: 25y 32d
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: 227
Totalscore: 94360
Posts: 1684
Thanks: 1360
UpVotes: 920
Registered: 16y 314d




Last Seen: 1d 23h
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: 1888
Totalscore: 13894
Posts: 17
Thanks: 20
UpVotes: 16
Registered: 16y 62d

Last Seen: 1y 2d
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, nonfungiblesecurity, vs4vijay, Kruptein, stormsurfer, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, SwolloW, dangarbri, csuquvq 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 58006 times.