Permanent Programming 11

Put your programming skills to the test in these challenges.

Re: Permanent Programming 11

Post by stringplayer92 on Sat Apr 26, 2008 5:21 pm
([msg=1447]see Re: Permanent Programming 11[/msg])

I guess a second option, that I also can't get to work...

Code: Select all
#!/usr/bin/perl
use LWP;
use HTTP::Cookies;
#learn perl yourself


What am I doing wrong here?

Edit: removed some spoilerfic code. ~fas
stringplayer92
New User
New User
 
Posts: 15
Joined: Thu Apr 24, 2008 8:33 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by TheMindRapist on Sat Apr 26, 2008 6:21 pm
([msg=1467]see Re: Permanent Programming 11[/msg])

I don't think you have to edit the cookie file, you should be able to set them someway.
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by sharpskater69 on Sat Apr 26, 2008 6:39 pm
([msg=1470]see Re: Permanent Programming 11[/msg])

I was messing around earlier, I just sent my PHPSESSID cookie and it logged me in.
sharpskater69
New User
New User
 
Posts: 34
Joined: Tue Apr 22, 2008 4:10 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by Jimmy_xor on Sun Apr 27, 2008 12:24 pm
([msg=1517]see Re: Permanent Programming 11[/msg])

Why not just use a JavaScript and get rid of all the cookie problems?
Jimmy_xor
New User
New User
 
Posts: 22
Joined: Tue Apr 22, 2008 4:35 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by sharpskater69 on Sun Apr 27, 2008 1:14 pm
([msg=1519]see Re: Permanent Programming 11[/msg])

You mean like a Greasemonkey script, Jimmy? Yeah that works too if it's what you mean. I just didn't know I could when I first started these missions.
sharpskater69
New User
New User
 
Posts: 34
Joined: Tue Apr 22, 2008 4:10 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by Jimmy_xor on Sun Apr 27, 2008 4:26 pm
([msg=1531]see Re: Permanent Programming 11[/msg])

No, I mean that you put javascript:<very much code> in the address bar. It worked great for me :D
Jimmy_xor
New User
New User
 
Posts: 22
Joined: Tue Apr 22, 2008 4:35 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by TheMindRapist on Mon Apr 28, 2008 5:23 pm
([msg=1643]see Re: Permanent Programming 11[/msg])

Yeah, that's the easy way to do it, I'll have to try that sometime.
Learning how to send cookies is good though.
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by s3klyma on Tue Apr 29, 2008 12:10 am
([msg=1685]see Re: Permanent Programming 11[/msg])

okay..
so I've found that the only cookie I need to actually send
is the PHPSESSID.. I wasn't sure because there are so many.
What's _utm[a,b,c,z,ect.]?

But.. How am I supposed to decide what the value should be?
Every time you delete it, and re-login, it changes..
s3klyma
New User
New User
 
Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by sharpskater69 on Tue Apr 29, 2008 12:20 am
([msg=1686]see Re: Permanent Programming 11[/msg])

Just do a
Code: Select all
javascript:alert(document.cookie)
in the address bar.

Send it however you do in Perl and it should log you in. "PHPSESSID=*" There used to be like a salted hash that we could use beside that, but that works.
sharpskater69
New User
New User
 
Posts: 34
Joined: Tue Apr 22, 2008 4:10 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by TheMindRapist on Sun May 18, 2008 3:35 pm
([msg=2765]see Re: Permanent Programming 11[/msg])

Yes, just copy and paste your cookie into your program and have it get set. Then you don't need to log in.
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)


PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests