Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2005, 22:35
suddenLy suddenLy is offline
Friend
 
Join Date: Jan 2005
Posts: 60
Rept. Given: 2
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 1
Thanks Rcvd at 7 Times in 7 Posts
suddenLy Reputation: 3
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?
Reply With Quote
  #2  
Old 01-11-2005, 01:58
.:hack3r2k:.'s Avatar
.:hack3r2k:. .:hack3r2k:. is offline
Friend
 
Join Date: Mar 2002
Location: Inside the c0de ...
Posts: 66
Rept. Given: 1
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 3 Times in 3 Posts
.:hack3r2k:. Reputation: 0
Cool

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
Reply With Quote
  #3  
Old 01-11-2005, 04:11
CrackZ CrackZ is offline
VIP
 
Join Date: Sep 2004
Posts: 51
Rept. Given: 2
Rept. Rcvd 66 Times in 8 Posts
Thanks Given: 0
Thanks Rcvd at 21 Times in 9 Posts
CrackZ Reputation: 67
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.
Reply With Quote
  #4  
Old 01-12-2005, 01:51
suddenLy suddenLy is offline
Friend
 
Join Date: Jan 2005
Posts: 60
Rept. Given: 2
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 1
Thanks Rcvd at 7 Times in 7 Posts
suddenLy Reputation: 3
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
two questions for admin TomaHawk General Discussion 8 04-01-2014 00:51
PE Loader Questions dila General Discussion 13 12-20-2011 12:03
Armadillo questions? ManSun General Discussion 20 05-12-2004 17:46
2 questions (IDA / Windows 2k/2k3) skyper General Discussion 8 04-22-2004 08:44
some unpacking questions gnasher General Discussion 2 01-03-2004 20:44


All times are GMT +8. The time now is 18:15.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )