javascript cookie content=false to content=true

Learn the basics of how to exploit JavaScript.

javascript cookie content=false to content=true

Post by keiferdeanbrown on Fri Jul 24, 2009 11:02 pm
([msg=27411]see javascript cookie content=false to content=true[/msg])

I was taught how to do this once but forgot :| Can someone refresh my memory
CYBER HACKER
User avatar
keiferdeanbrown
New User
New User
 
Posts: 37
Joined: Mon Jul 20, 2009 5:38 pm
Blog: View Blog (0)


Re: javascript cookie content=false to content=true

Post by relictus on Sat Jul 25, 2009 12:23 am
([msg=27413]see Re: javascript cookie content=false to content=true[/msg])

Code: Select all
javascript:void(document.cookie="content=true");


Or use Add'n Edit Cookies.
archlinux user ~ wannabe hacker
User avatar
relictus
New User
New User
 
Posts: 21
Joined: Sat Jul 18, 2009 1:12 pm
Blog: View Blog (0)


Re: javascript cookie content=false to content=true

Post by keiferdeanbrown on Sat Jul 25, 2009 12:50 am
([msg=27416]see Re: javascript cookie content=false to content=true[/msg])

i was thinking you had to name the cookie that you wanted to change content on though.

and where can i get add'n edit cookies for firefox?

edit:name of cookie=content

and here is a brain puzzle say cookie content=false on a page and you want to see the page and when you change it with javascript injection to content=true you have to refresh the page or re-enter the url(right?) but when you refresh the page it automatically changes the cookie content back. is there a way to keep it from overwriting content=?
CYBER HACKER
User avatar
keiferdeanbrown
New User
New User
 
Posts: 37
Joined: Mon Jul 20, 2009 5:38 pm
Blog: View Blog (0)


Re: javascript cookie content=false to content=true

Post by thedotmaster on Sat Jul 25, 2009 5:31 am
([msg=27420]see Re: javascript cookie content=false to content=true[/msg])

Something I finally got round to doing was making a bookmarklet for this function. Create a bookmark that links to this:
Code: Select all
javascript:void(document.cookie=prompt("cookie%20name:")+"="+prompt("cookie%20value:"));

It can save a lot of time when messing with cookies.
Image
User avatar
thedotmaster
Contributor
Contributor
 
Posts: 984
Joined: Sun May 04, 2008 4:39 pm
Location: North West UK
Blog: View Blog (1)



Return to Javascript

Who is online

Users browsing this forum: No registered users and 0 guests