how To edit exe to insert a serial no wich can be usd by runing exe


 
Thread Tools Search this Thread
Top Forums Programming how To edit exe to insert a serial no wich can be usd by runing exe
# 1  
Old 10-23-2003
how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe.
please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time.
# 2  
Old 10-23-2003
Ummm, ssahu, a couple of things need some clarification....

First, we have a few rules here and one of them states....
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting.

I will delete your duplicate thread. Now a lot of newbies stumble over our rules on a first post. So while this is annoying, it is not really a big deal.

But I'm alarmed by what you're trying to do. Edit an executable? To insert a serial number? This sounds like you're trying to install software licensed to another user. And you're trying to make us your partner in crime. That is a big deal. We don't do that here.

I suggest that you contact the author or the owner of the software and ask for assistance.
# 3  
Old 10-23-2003
you are bleming me with out asking me why are your requirement.
This requirement is given me by company so that they can insure that the Executale and installed version are same. this is requirement is make safe your seft against cheeting by customer.

in window version of our software we are able to do this. so they directed me to do this in solaris.
# 4  
Old 10-23-2003
Just a guess, but if you are trying to verify the version of an executable you have supplied then make sure you use some sort of source control for each source file e.g. RCS

Then include an identifier string. For RCS you might use:

static char ident="$Header$";

RCS will replace the $Header$ part with actual information on the source file. When compiled this information will be included to the executable.

With RCS you could then use the ident command to verify the version of the executable.

A serial number/key could be encoded in a similar way for a specific compilation for a client or the version number of the source could be reserved specifically for that compilation for a client.

You might try something a little bit more elaborate. Like reading the value from an encrypted file.

Is this what you mean?
# 5  
Old 10-23-2003
Quote:
Originally posted by ssahu
this is requirement is make safe your seft against cheeting by customer.

in window version of our software we are able to do this. so they directed me to do this in solaris.
What if a customer signed on to this site and posed the same question? Do you think that we should help him insert a serial number?

What if the customer claimed to be you...how would we know?

What if someone posts some code for you....maybe your customers will see too. We have over 30,000 members and a lot of them use Solaris. Is this the way to protect your product?
# 6  
Old 10-24-2003
Look into the what command, it may gave you a decent starting point to include version information into your software. You would of course have to execute the what command from inside the executable, or find the source for the what command and place it inside of it.

As for editting that value at run-time (or install-time), that's kind of shifty - and not exactly portable. However, if you can read the information, you can write it...provided you do not change the string's size (or be faced with possibly corrupting the string table in your executable).

That's about as much as I can give you. However just realize everything you would be doing is very non-portable considering the differing executable structures on various platforms.
# 7  
Old 10-24-2003
ill also add that even if it is a legitimate reason for you to do this, (im not saying that it is or it isnt...) its not something easily talked through. youd have to learn the concepts and methods of finding this information on your own.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies

2. Programming

exe

hello everyone, could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming. tnx (4 Replies)
Discussion started by: micy
4 Replies

3. Programming

How to build .exe from c

All, I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program. Thanks in advance. (5 Replies)
Discussion started by: thana
5 Replies

4. Programming

exe

Is it possible to extract c program,from its executable file(.exe)? i mean we dont have program but its exe file only which runs,can we retrieve the program? if yes how? if no why? (2 Replies)
Discussion started by: unknown9
2 Replies

5. Programming

running exe

how we can run the exe when the system starts. (2 Replies)
Discussion started by: phani_sree
2 Replies

6. UNIX for Dummies Questions & Answers

.exe files

how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies

7. Programming

exe info

Hi Is it possible to find all the information like its 'ProductName', 'ProductVersion, ''InternalName' , 'FileVersion' etc about a windows excutable file,( i.e. *.exe file ) on Unix/Linux. thanks sumsin (6 Replies)
Discussion started by: sumsin
6 Replies

8. Linux

How to run .exe

Hai, is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter Regards Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies

9. SuSE

does exe

does exe files works withe suse am new n linux system and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies

10. UNIX for Advanced & Expert Users

.exe file

Hello all, how to run windows .exe file in Linux and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies
Login or Register to Ask a Question