Log in

View Full Version : question about HASP


dive2code
January 19th, 2005, 01:38
Hi all,

I tried with hasp dongle, may be hasp4.

In this case, the seed code (eax) of IsHasp() is 'zero'.

Is it not important or something wrong?

CrackZ
January 21st, 2005, 20:39
Hiya,

IsHasp() (service 1) doesn't care about a SeedCode (nor in fact the HASP passwords, it just fires back EAX=1 for HASP present or 0 no HASP), the seed is only relevant to HaspCode() (service 2).

Regards

CrackZ.

dive2code
January 22nd, 2005, 08:12
Hi CrackZ,

Yes, the seed code is not meaningful for service1.

And emulating was no problem.

But I am wondering the seed code is still 'zero' value with service2 in this target.

Code:
cmp bh,32
jb short 0040C9FF
mov esi,dword ptr [ebp+28]
mov eax,dword ptr [esi]
mov esi,dword ptr [ebp+20]
mov esi,dword ptr [esi]
push ebp
call 0040C0BD -==> ax 0x0
-==> bx 0x0201
-==> cx 0x7882
-==> dx 0x20CE


I want to know why the seed code is still 'zero' in service2,

and the meaning of bl.

( the 2nd question may be solved by myself with reference in the web :P )

CrackZ
January 22nd, 2005, 08:49
Hiya,

I don't see the problem, the seed code can range 0x0-0xFFFF, so 0x0 is a perfectly valid query. If I remember rightly BL holds the LPT number.

Regards

CrackZ.

dive2code
January 22nd, 2005, 15:17
Thanks a lot CrackZ