Log in

View Full Version : Help on Hasp seeds & return codes


cah
September 27th, 2001, 23:14
How to find Seed codes & 4 return codes, if I have hasp dongle data like passwords, Id & memory contents.

Any tutor or help on this regard.

cah...

goatass
September 28th, 2001, 08:13
Hey cah, I'm going to assume you are using HASP version 3 here since you didn't mention anything about the version. Anyways you have to locate the call to the hasp routine with service 2 and the parameters to this function are the 2 passwords, a seed code and the service number (2 for HaspCode). Once you located it write down the passwords and the seed code and find the util called UCLhasp and use it to generate the return codes or you can use ICEDump to do the same thing.

Normally when the hasp routine is called the service number will be in BH, the seed in AX, pass1 in CX and pass2 in DX. A good BPX to set in order to break in the main hasp routine is GetEnvironmentStringsA, F12 twice and you will be at the point where the routine stores the returned values (in your case the return codes). Trace down a bit more past the RET and you will be returned to the calling function, scroll up a little passed that call and you will see the passwords being pushed on the stack and the service number.

Well you need to do some reading so check out CrackZ site (link at the bottom of the MB) and read some papers on HASP.

goatass

CrackZ
September 28th, 2001, 17:34
Hiya,

Better still, if you have the passwords, download haspedit.exe or use any of the win32 HASP test applications from Aladdin's site (also on any of the HASP CD's), plug in the passwords, the seed you want the return codes for and hey presto! click the HaspCode() button ;-).

Regards

CrackZ.

cah
September 29th, 2001, 04:11
Reply to goatass & CrackZ,

Thanking you both for responses, I am very newbie for RE.

I opened haspedit.exe ( win32, v6.2) with pass1 & pass2, I got only hasp id, but no seed code & return codes. My doubt is: Is it possible to get seed code & return codes if I have hasp dongle?.
I am visiting regularly CrackZ’s site also, very useful for RE. I noted his tips & Hasp emulation code.

Hello! Mr. CrackZ,

I got a target NE file(AccuPrint v1.6), I don’t find much information on NE file format to lengthen code segment to insert hasp emulation code.

How to find hasp envelope & reverse it, if I have a dongle .
Can you tute me or any tips for me

cah...