help with java

Discussion in 'Ethical hacking' started by hellsbunny, Apr 22, 2008.

  1. hellsbunny

    hellsbunny New Member

    Joined:
    Apr 21, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    alright i have read up on java script editing on a website provided to me by SpOonWiZaRd
    (Thanks again man)
    but i read up on the script:
    javascript: void(document.cookie="PHPSESSID=Hacked"); alert(document.cookie)

    the site said it is suppose to change the cookie but it just creates a new one at the end of the list. is there something i am doin wrong in this script.

    i do know that you are suppose to put the first part of the cookie where it say "PHPSESSID" but i did that and it still placed a new cookie at the end of the list..
    can someone tell me what i am doing wrong

    -Thanks
     
  2. SpOonWiZaRd

    SpOonWiZaRd Know what you can do.

    Joined:
    May 30, 2007
    Messages:
    746
    Likes Received:
    8
    Trophy Points:
    0
    Occupation:
    Network Engineer/Programmer
    Location:
    South Africa
    Maybe you must try the injection using your cookie, type the injection in the content of the cookie, but if that doesn't work then the site is not entirely vulnerable to javascript injections. The creator of the site could have patched it when he created it. Is the persons account yourt trying to hack on the same network as you?
     
  3. hellsbunny

    hellsbunny New Member

    Joined:
    Apr 21, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    no im really just trying to learn java injections
     
  4. SpOonWiZaRd

    SpOonWiZaRd Know what you can do.

    Joined:
    May 30, 2007
    Messages:
    746
    Likes Received:
    8
    Trophy Points:
    0
    Occupation:
    Network Engineer/Programmer
    Location:
    South Africa

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice