1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to put & in a php get command.

Discussion in 'BlackHat Lounge' started by cool0403, Nov 26, 2009.

  1. cool0403

    cool0403 BANNED BANNED

    Joined:
    Dec 29, 2008
    Messages:
    565
    Likes Received:
    718
    I didnt know where to post this but i just have a quick question.

    Suppose i want to pass this data using the GET command but there is a '&' symbol in it.
    example
    mysite.com/get.php?data=hey&you
    basically i want the data variable be equal to hey&you
    The real problem i have is that the data am passing through has a lot of '&'
    it might look like this

    mysite.com/get.php?data=MSCulture=IP=69.237.119.242&IPCulture=en-US&PreferredCulture=en-US&Country=VVM%3D&ForcedExpiration=0&timeZone=-8&myStuffMarket=87&USRLOC=QXJlYUNvZGU9OTE2JkNpdHk9U2FjcmFtZW50byZDb3VudHJ5Q29kZT1VUyZDb3VudHJ5TmFtZT1Vbml0ZWQgU3RhdGVzJkRtYUNvZGU9ODYyJkxhdGl0dWRlPTM4LjU3NjUmTG9uZ2l0dWRlPS0xMjEuNDQ0NSZQb3N0YWxDb2RlPSZSZWdpb25OYW1lPUNB; SessionDDF2=vUTYPyF69wEVMfT8JyPOiqxlIQmWZYX1ZPuAkDphMW/8Cvg9otjeskTNLUfvVbFkMcuD4VYnQx8pFjRhcWQg1Q==; CMSCAP=CDATE=633928370001293959&633553696460632722_ct=1&633553696460632722_exp=633954290001293959&633553704238913972_ct=1&633553704238913972_exp=633954290001293959; NSC_mc_qspgjmf-nbjo_80=447f22183660; __utma=102911388.61039420.1259269990.1259269990.1259269990.1; __utmb=102911388.2.10.1259269990; __utmc=102911388; __utmz=102911388.1259269991.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); LASTUSERCLICK=%7bts+'2009-11-26+12%3a34%3a12'%7d; GADC=EUD=0:0:Y2I0NzU1MjEwNTBkYTgxOKreyNsx1ptWb_LldIyJI8nbL1rcQGY-1LgorAMgpcN7xHETqRlPGeH8ECYO89Dm0xlCenpLabjzXsJf5DkllBVO2749uvtW_5xCciMhpenX; SplashDisplayName=delicious; DERDB=ZG9tYWluPS5teXNwYWNlLmNvbSZ0bGQ9Y29tJnNtb2tlcj0tMSZzZXhwcmVmPS0xJnV0eXBlPTImcmVsaWdpb25pZD0wJnJlZ2lvbj0wJnBvc3RhbGNvZGU9Jm1hcml0YWxzdGF0dXM9UyZpbmNvbWVpZD0wJmhlaWdodD0xJmdlbmRlcj1NJmZyaWVuZHM9MCZldGhuaWNpZD0tMSZhZ2U9MzkmYm9keXR5cGVpZD0tMSZjaGlsZHJlbmlkPS0xJmNvdW50cnk9S0gmZGF0aW5nPTAmZHJpbmtlcj0tMSZlZHVjYXRpb25pZD0tMSZyZWxhdGlvbnNoaXBzPTAmbmdfsdfsdfluZz0wJmRpc3BsYXluYW1lPWRlbGljaW91cyZmcmllbmRpZF9pbnQ9OTExNDQ2MDgmaXBhZGRyZXNzPSc2OS4yMzcuMTE5LjI0Micmc2NobD0wJnNjaGw9MCZzY2hsPTAmZ3JwPTAmZ3JwPTAmZ3JwPTAmY3VsdHVzZXJwcmVmPTEwMzMmbmV3dXNlcj1GYWxzZQ==; MSSession=UNRNDMSG=-1&ATTBUFSIZE=-1&FRREQ=-1&HOMETHEMEID=-1&OPENTHEMECONTROLLER=-1&ISNEWUSER=-1&SHOWADDTOBLOGPREFERREDLIST=False&WIMSTATE=DEFAULT%7C0%7C0%7C%7C%7C%7C0%7C%7C%23%7C%7C&WIMHOSTNAME=http%253A%252F%252Fwebim0270.webim.somesite.com&SUGGESTIONDISMISSED=False&DRAFTMSGCOUNT=-1&CONTRIBUTORID=0&LASTALBUMUPLOADED=0&WEBIMDISABLED=False&ISPOMPOPEN=False


    Thats basically a cookie, but anyways what am trying to say is that what is the way to send all that to the variable 'data' if you notice there are a lot of & that i want to send them to the data variable.
     
  2. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    551
    Likes Received:
    169
    Occupation:
    Finance guy
    Location:
    USSR 1943
    Perhaps use a backslash "\" can cancel the & out?

    I'm kind of a newb at PHP so this is the first thing that came to mind.
     
  3. neta1o

    neta1o Regular Member

    Joined:
    Sep 29, 2008
    Messages:
    388
    Likes Received:
    318
    Home Page:
  4. shadowpwner

    shadowpwner Regular Member

    Joined:
    Apr 19, 2009
    Messages:
    300
    Likes Received:
    73
    I think your url violates the 255 character limit :lol:
     
  5. cool0403

    cool0403 BANNED BANNED

    Joined:
    Dec 29, 2008
    Messages:
    565
    Likes Received:
    718
    yea i think so, well that data is actually the cookie details for a site. Is there a way i can pass that so i can then later save it. I mean there has to be a way to save all that into a file .