Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 12:30

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: gspassenc ?
PostPosted: 13 Nov 2010 13:06 

Joined: 27 Dec 2007 09:55
Posts: 8
Hi guys, im currently making my gs login emulator a bit more dynamically.
Therefore im using a python system which will be responsable for all data handling and i need to port the gspassenc function from c to python.
Cuz im not very familiar with byte operations i could need some help with it (how does it exactly work?).

Hope some1 can help me.
Cheers Krauzi.


Top
 Profile  
 
 
 Post subject: Re: gspassenc ?
PostPosted: 13 Nov 2010 21:30 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
basicly gspassenc is composed by the base64 part (on which there is nothing to explain) and the math part handled by the gspassenc and gslame functions.

obviously I can't explain everything step by step moreover because after all is only a basic math stuff, so I will explain a bit the symbols/operators I used:
"!num" means "num == 0"
"&=" means the AND operator like num = num AND 0x7fffffff
"^=" means the XOR operator like pass[i] = pass[i] XOR a
passlen is the lenght of the input string called pass
"pass[i]" means the char located at offset "i" of the input password, so the current char
"a++" means "a = a + 1"
"a +=" mean "a = a +" and so the same is for "*=" "-=" and so on
">>" is the shift right, so "0x1234 >> 8" becomes 0x12

if you have a specific doubt I'm here


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron