Re: Can't understand this code snippet

2008-01-18 Thread bootleg86 bootleg86
Thanks all! I was wondering why the author didn't just call rand. I checked the rest of the source and it's just used as a unique identifier. So using rand would have been much easier. > If that were my program, running under any modern perl version, I'd > exploit the fact that Perl's random numb

Re: Can't understand this code snippet

2008-01-18 Thread Tom Phoenix
On Jan 18, 2008 7:45 AM, bootleg86 bootleg86 <[EMAIL PROTECTED]> wrote: > I can't for the life of me figure out what this is trying to do > $token = $$ ^ unpack "%L*", `ps -A | "./bin/gzip" Well, it's not complete, for one thing. What comes next? > Just seems to be it's trying to generate some r

Re: Can't understand this code snippet

2008-01-18 Thread Jenda Krynicky
From: yitzle <[EMAIL PROTECTED]> > On 1/18/08, bootleg86 bootleg86 <[EMAIL PROTECTED]> wrote: > > Hi, > > I can't for the life of me figure out what this is trying to do > > $token = $$ ^ unpack "%L*", `ps -A | "./bin/gzip" > > > > Just seems to be it's trying to generate some random number. > > I

Re: Can't understand this code snippet

2008-01-18 Thread yitzle
On 1/18/08, bootleg86 bootleg86 <[EMAIL PROTECTED]> wrote: > Hi, > I can't for the life of me figure out what this is trying to do > $token = $$ ^ unpack "%L*", `ps -A | "./bin/gzip" > > Just seems to be it's trying to generate some random number. > I only know it's trying to XOR the process ID. >

Can't understand this code snippet

2008-01-18 Thread bootleg86 bootleg86
Hi, I can't for the life of me figure out what this is trying to do $token = $$ ^ unpack "%L*", `ps -A | "./bin/gzip" Just seems to be it's trying to generate some random number. I only know it's trying to XOR the process ID. What does this part do? unpack "%L*", `ps -A | "./bin/gzip" Thanks --