Post Reply 
Fake cookie function.
Apr. 24, 2008, 10:59 PM
Post: #1
Fake cookie function.
Hi,

I'm new to this forum,
I have some problems with the fake cookie filter by sidki,

This is the some post I made on the castlecops forums, but I couldn't get it working with the help I received there (Thanks to whenever who did everything he could to help me, but I think the problem must be with the filter itself.

So, here goes :

I'm trying to fake a cookie value for some site, so I added this line into the IncludeExlude-U.ptxt file
Code:
[^.]+.sitename.com/ $SET(0=f_cookie.) $SET(sCookieF=browserID=Superbrowser)
According to the helpfile, this should replace the browserID value in the cookie with "Superbrowser" and that it does, unfortunatelly while it does that it also destroys any other cookievalues which were originally there.

When I access the site, the cookie is sent like :
Cookie: browserID=Superbrowser

In the response I get there is this :
Set-Cookie: sessionID=b939f638; path=/; domain=.sitename.com

So, I expect the next request I make to the site, this cookie will be sent :
Cookie: browserID=Superbrowser; sessionID=b939f638; path=/; domain=.sitename.com

...unfortunatelly, the filter somehow deletes all the contents, and only sends :

Cookie: browserID=Superbrowser

Please, what am I doing wrong, or does the filter deletes everything else by default ?

I'm just interested in anyone else trying out to fake part of some site's cookie, but I expect them to get the same results as I have.
either $SET(sCookieP=0)$SET(0=f_cookie.) doing exactly that, not faking a cookie, so if the site sets the cookie browserID=Firefox, the cookie isn't changed into browserID=Superbrowser (= not good)
or $SET(sCookieP=1)$SET(0=f_cookie.) doing just a blind add, resulting in double values being sent. (browserID=Firefox; browserID=Superbrowser) (= not good)
or the simple $SET(0=f_cookie.) which does nothing else than blindly overwriting the whole cookie string, not taking into account the restrictions set by for example $SET(sCookieF=browserID=Opera) only altering the browserID value, but rather simply overwriting EVERYTHING.

The Fake-Cookie filter from sidki is this one :
Code:
In = FALSE
Out = TRUE
Key = "Cookie: 2 Fake Cookies on sel. Sites     7.07.24 [sd] (d.0 l.3) (Out)"
URL = "($TST(keyword=\0&*.(a_cookie|i_level:[12]).)|$LST(AllowCookies))$SET(keyword=$TST(\0=\1.f_cookie.\2)\1.\2)$SET(sCookieP=)$SET(sCookieF=)PrxFail$TST()|$TST(\0=*.f_cookie.*)"
Match = "\0&($TST(sCookieP=0(^$TST(\0=*))|1$SET(1=; \0))$SET(sCookieP=)|(^$TST(sCookieP=*)))"
Replace = "$GET(sCookieF)\1$SET(sCookieF=)"

Please, can anyone help ?
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Fake cookie function. - Toppy - Apr. 24, 2008 10:59 PM
RE: Fake cookie function. - Kye-U - Apr. 24, 2008, 11:32 PM
RE: Fake cookie function. - whenever - Apr. 25, 2008, 02:26 PM
RE: Fake cookie function. - Toppy - Apr. 24, 2008, 11:46 PM
RE: Fake cookie function. - Kye-U - Apr. 25, 2008, 11:54 PM
RE: Fake cookie function. - Toppy - Apr. 26, 2008, 10:27 AM
RE: Fake cookie function. - Kye-U - Apr. 26, 2008, 07:55 PM
RE: Fake cookie function. - Toppy - Aug. 06, 2008, 07:41 PM
RE: Fake cookie function. - Kye-U - Aug. 06, 2008, 07:46 PM
RE: Fake cookie function. - Toppy - Aug. 22, 2008, 10:56 AM
RE: Fake cookie function. - ProxRocks - Aug. 22, 2008, 01:52 PM
RE: Fake cookie function. - Kye-U - Aug. 23, 2008, 03:32 AM
RE: Fake cookie function. - whenever - Aug. 22, 2008, 02:55 PM
RE: Fake cookie function. - ProxRocks - Aug. 23, 2008, 01:11 PM

Forum Jump: