head 1.5;
access;
symbols;
locks
root:1.5; strict;
comment @# @;
1.5
date 2004.02.11.16.15.28; author root; state Exp;
branches;
next 1.4;
1.4
date 2003.11.06.01.44.06; author root; state Exp;
branches;
next 1.3;
1.3
date 2003.11.06.01.05.11; author root; state Exp;
branches;
next 1.2;
1.2
date 2003.11.05.22.50.50; author root; state Exp;
branches;
next 1.1;
1.1
date 2003.11.05.01.03.27; author root; state Exp;
branches;
next ;
desc
@Cookie parser OF DOOM
,
@
1.5
log
@prior to wind->M2 change
@
text
@
COOKIE PARSER/VERIFIER of DOOMVerbosity is high in vitamin C!$is so good for you!$makes you go blind!$keeps the terrorists away$is better than rotten cheese!$is a virtue unlike any other.$strengthens your teeth.$cleans the hard-to-get corners behind your sink.
Browser is
testuser@@WI_01/1075635045_01012004123045:testuser@@WI_02/1070702613_06112003102333MilkaKuhFleckenMitSpiegelEier
euro.real.com (and real.com) cookies right now:
*** Do not do all the work if cookie n'existent pas ***
R1EuropeAuth_wind cookie:
Username/entitlement fields:
MD5 verification string in cookie:
#field0#
#secret#
My calculated MD5 code:
The MD5 signature is Good! Wooooo Hoooo
The cookie MD5 hash sucks! Back to the oven!
HAKHAK
There are Product Entitlement Items in this damn cookie.
The FOR loop of DOOM
arrayptr variable is
entitlement string is
username for velocity-checking purposes is:
Product/datecode:
Product code:
Date codes:
Epoch time in cookie:
Expressed in semi-normal terms:
Epoch time now:
Expressed in semi-normal terms:
Difference between cookie-time and current time:
If the above number is negative, then we are good!
diff is
RXML evaluation: cookie still valid! Luser "#username#" is entitled to see "#prodcode#" crap! (assuming MD5 eval is ok)
Your cookie is stale, throw it away!
*** Cookie exists ***
No cookie! No cookie!
@
1.4
log
@some dumb test code, no worries
@
text
@d2 2
a3 1
>Verbosity is high in vitamin C!
@
1.3
log
@works
..
@
text
@d26 1
a26 1
@
1.2
log
@prior to multivariable fun
@
text
@d1 2
a2 2
COOKIE PARSER/VERIFIER of DOOM
Please excuse the verbosity!
d5 1
a5 1
d7 4
a11 1
a13 1
d28 10
a37 2
first entitlement string is
d39 1
a39 1
d47 2
a48 2
d51 1
a51 1
d55 2
a56 2
d71 2
d74 4
@
1.1
log
@Initial revision
@
text
@d21 1
a21 1
d23 1
a23 1
The cookie sucks! Back to the oven!
d58 2
a59 2
RXML evaluation: cookie still valid! Luser is entitled to see #prodcode# crap!
Your cookie is stale, throw it away!
@