Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Trouble with Aladdin HASP SL unlock system and Dark Basic .exe

Author
Message
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 3rd Jun 2006 23:19
I have signed a contract with another publisher for Firewall, and their site is almost ready to go up. However, when they attempted to inject my game with their unlock system, it screwed up. It would makes things so much easier if they could use their own system instead of me modifying the installer myself, so I thought I'd ask to see if anyone has any experience with this.

The unlock system they are trying to use is called Aladdin HASP SL; here is part of the email that the guy sent me regarding their attemps to use it on my DB .exe:

Quote: "
When I inject your executables (Firewall and Editor) with the unlock
solution (which is Aladdin HASP SL), I get an error message:

The file "Firewall.exe" has unrecognized data as part of its file
structure or its structure does not strictly adhere to standard file
structure guidelines. This file when injected is likely to
malfunction at runtime. Continue injection?

After injection, it does indeed malfunction--when you try to start
the executable, nothing pops up but a window saying that the product
was made with Dark Basic.
"


Anyone know what is going on here?

Xander Moser - Bolt Software - Firewall
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 4th Jun 2006 00:06 Edited at: 4th Jun 2006 00:34
Wonder if it cant handle MFC 80 based executables...

Aside from that I cant see anything out of the ordinary with a DBPro executable - there are 4 sections : .text, .rdata, .data and .rsrc and EOF extra data (which may be a problem - the only other part that may cause problems is .rdata).

Mind you, unexpected OPCODES could be causing the problem...

Only his royal programmingness will know.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 4th Jun 2006 01:17 Edited at: 4th Jun 2006 01:18
Dbpro and dbc are normal exes with data appended on the end. It's probably this appended data that is causing the problem.

I guess the unlock thingy encrypts the original exe so it can control when it is run. That won't work well for a db exe because the exe is essencially the same for all exes, only the appended data differes.
To get around the protection just swap the exe section of the protected exe with the exe section from another db exe.

I suspect the unlock thingy is altering the size of the exe section. This is a problem because db exes store the size of the exe section in the last 4 bytes of the appended data. If this value does not match with the actual size of the exe section when the exe is run it will skip to the wrong place when looking for the appended files.
To fix this you can manually correct the value or just load then save the exe in dark explorer which will correctly calculate the size of the exe section for you.

By way of demonstration, he emitted a batlike squeak that was indeed bothersome.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 4th Jun 2006 02:40
We used to use a similar HASP system ages ago (for those that wanted the USB dongle), I'll forward this to Lee incase there may be some legacy code sitting in the EXEs that may cause this.

Bite my shiny metal ass
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 4th Jun 2006 18:23 Edited at: 4th Jun 2006 18:24
Good work Xander btw on the publishing deal. Just out of interest, and I don't expect exact figures, are you expecting to make pocket money, or a very low salary or a decent income from the sale of Firewall? Just curious because I'll be going down the same route eventually. If you're ok to tell me but dont want to post about it here, I can PM you at TGPF. If it's totally private, no problemo.

Good luck with sorting the problem.

Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 4th Jun 2006 23:50
I forgot to mention for anyone that does not know, this is a Dark Basic Classic compiled .exe file, not Pro.

@ the winch: Wow, that is some complicated looking stuff. I never learned about any of that, but it makes some sense.

@ Rich: Thanks, hopefully he can figure something out

@ Fallout: Well, I already am selling Firewall through 2 other publishers (including TGC) and Plimus, and I have made, well, I guess you could call it pocket money. It is mostly my fault that I have not made more on it, because I never did very much advertising. I don't have much money in the first place, especially during the summer. No car...20 miles out in the country...kind of hard to find a job in that situation. However, if you have a little something to invest into advertising, I'm sure you'll do much better with your game.

Xander Moser - Bolt Software - Firewall
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 6th Jun 2006 17:46
Xander - Lees comments for you:

"If it was DBPro, I would advise that the exe be created as a seperate EXE and PCK file. As it is Classic, there is no such option.

Any solution could not involve changing the DB Classic executable saver in any way, as the code cannot be revisited.

He could try saving as EXE instead of FINAL, so the media is not included. I doubt this will help though.

I had a look on the HASP site, and found this line:

'Protection against Memory Dumping: Removes essential data from the
protected software executable, so that a complete executable cannot be recreated from dumped memory. The protected application cannot run without HASP SL security environment intact.'

I suspect it scans the executable predicting to find a specific layout so it can extract 'key' sections. When it fails to find a standard executable, such as DB classic executables are, it simply fails. To bypass this would be to bypass their security measures, which is not in their interests to do. If the converter tool had options to switch off these invasive levels of protection, it could work but I would need to download the tool and have a look, but that might take a few hours, which might not be the best use of my time.

If he can try saving as EXE, looking for any tick-boxes in the conversion tool of HASP SL (evaluation version is free) or perhaps wrapping the executable in an exe compression system (which would cheat by effectively wrapping the un-orthodox exe within an orthodox exe). Failing all these, let me know and I will delve deeper."

Bite my shiny metal ass
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 6th Jun 2006 18:07
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 6th Jun 2006 18:27
Apparently... Most peoeple rave about Firewall, although I've never tried it myself.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Dont do anything I wouldn't do. But if you do, take pictures.
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 6th Jun 2006 23:13
@Xander - Thanks for the answer mate. As I expected, it's all in the marketting. I'll see how well I do when the time comes.

Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 8th Jun 2006 03:28
Thanks a lot Rich, and tell Lee thanks too. I will relay the information back to my publisher, see what he can do about it. If nothing works, we have a couple of alternate options available, so I won't be needing further assistance. I don't want to waste Lee's time with DBC issues; I understand that he is very busy, as are you.

@ Chris: Yes, it's DBC. I bought DBP halfway through making Firewall, but was unable to convert it over due to a couple problems. So I finished it in Classic.

@ Flappy: Don't expect too much when/if you try it, I don't want you to be disappointed, haha.

@ Fallout: No problem. I wish you luck with your marketing, let me know if you fall upon a marketing goldmine, haha

Xander Moser - Bolt Software - Firewall
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 8th Jun 2006 03:47
Quote: "Apparently... Most peoeple rave about Firewall, although I've never tried it myself."

Blasphemy.

Quote: "@ Flappy: Don't expect too much when/if you try it, I don't want you to be disappointed, haha."

Nonsense.

Congratulations on the publisher lineup.


I'm going to eat you!

Login to post a reply

Server time is: 2024-11-17 04:47:42
Your offset time is: 2024-11-17 04:47:42