![]() |
2 questions about hasp
1. After haspstatus() service call, if the dongle is usb type, what kind of value should be used for ecx ( number of LPT) ? Or it does not matter ?
2. I found right return value of haspcode(), but the return value of readblock() is a little strange. For example, the return value, eax, is zero which is not expected. Is this related with question #1? |
1. It will return usb port address, ex. 101, 102 etc
2. Be more exlplicit. P.S: GET SOME TIME AND LOOK AT HASP SDKS ;) Br;) |
Hiya suddenLy,
The returns depend on the version of HASP API, but it sounds like you've got a slightly older ver. So/ HaspStatus(): Par3=ECX port address, 0x66/0x67 (102, 103) for LPT devices & 201-255 for USB devices. Never saw an app that was really concerned to check them though ;-). ReadBlock(): Returns : Par1 = EAX (offset of read, value of EDI before hasp()) Par2 = EBX (number of words read) Par3 = ECX (status of operation, should be 0) Par4 = EDX (pointer to returned data, value of EAX before hasp()) In several HASP API versions these returns aren't necessarily correct, all you must do for ReadBlock() is clear the status and return memory data. Regards CrackZ. |
thank you, .:hack3r2k:. , CrackZ
Yep, I emulated hasp target successfully. And as you said, the value of LPT or ISB number is not important. By the way, is there any useful method or tips to find right return values of haspcode() and readblock()? thanks again. |
| All times are GMT +8. The time now is 08:02. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX