Reverse engineering code
Author
Discussion

jamesuk28

Original Poster:

2,176 posts

284 months

Wednesday 12th September 2007
quotequote all
Anybody capable or willing to reverse engineer a programme that a supplier is trying to screw us over?

Its a database programme that writes to a MYSQL database, allowing anybody to upload information, ie classified adds. We would obviously pay for such work.

mystomachehurts

11,669 posts

281 months

Wednesday 12th September 2007
quotequote all
By reverse engineer I asume you mean get the source code from the supplied software.

Do you know what language it was originally developed in?

If it's PHP based the nyou already have the code.
For Java then it is a trivial task to get the source back out.

C, C++ or any .NET stuff is going to be trickier.

Doesn't sound like it is a particularly complicated program.
Can you supply a few more details?

minimac

8,021 posts

234 months

Wednesday 12th September 2007
quotequote all
Quite likely that you violate a number of agreements and a few laws with that one mate.

TheLearner

6,962 posts

266 months

Wednesday 12th September 2007
quotequote all
minimac said:
Quite likely that you violate a number of agreements and a few laws with that one mate.
yes I think most of the clean room reversal loopholes have been closed these days. Having said that, an ad management app written in PHP, talking to MySQL is peanuts and you can get them from places like hot scripts gratis; spend a day or so panel beating it and your laughing.

GreenV8S

31,028 posts

315 months

Wednesday 12th September 2007
quotequote all
jamesuk28 said:
Anybody capable or willing to reverse engineer a programme that a supplier is trying to screw us over?
From your description I very much doubt you own the IPR for the code and judging by what you're trying to do I rather doubt that you have the right to reverse engineer it. Unless you do have the right, what you're proposing is illegal and unethical.

cyberface

12,214 posts

288 months

Thursday 13th September 2007
quotequote all
What functionality are you interested in?

Business logic is most likely to be held in the middleware that calls the MySQL database (or you wouldn't be asking the question) - as mystomachehurts says - this is dependent on the code used.

However you can learn a lot just from enumerating the tables and other objects in the MySQL database and running a trace when the application is running to see what SQL is being called against the database. I assume that MySQL can do this - all you need is a process listening to the comms between the DBMS and the client and you're laughing.

I've done a fair few IT projects where the success was dependent on someone (usually me) working out how the 3rd party SW used its database (which is a form of reverse engineering). This is easy, otherwise I wouldn't be able to do it hehe The hardest trick is reversing compiled code for a hardware platform you're not familiar with. An example would be reversing the firmware for a new mobile phone, like the Apple iPhone. Regardless of the fact that a billion-dollar company spent a lot of money making it hard to reverse, and the guys reversing the code were doing it in their free time, it was done. I now have an unlocked iPhone.

If your reverse-engineering requirement is tricky and applies to non-standard hardware (i.e. it isn't something like reversing VB6 or Java or something) then you ought to try some more focused hacker bulletin boards rather than PH..... wink

jamesuk28

Original Poster:

2,176 posts

284 months

Thursday 13th September 2007
quotequote all
minimac said:
Quite likely that you violate a number of agreements and a few laws with that one mate.
On the face of it yes. But unless you are in receipt of the full facts / story (which I am not going to divuldge here) I would not be quite so quick to pass judgement.

dilbert

7,741 posts

262 months

Thursday 13th September 2007
quotequote all
If it's just machine code that you have, it's usually easier to forward engineer anew, than reverse engineer and rebuild. When machine code is compiled the plain language symbols are removed, and it's virtually impossible to figure out what it's doing.

If you just have one requirement in mind, like perhaps removing copy protection/licencing, then that is usually a much easier task, but obviously illegal. Even though you don't have the symbols, you can usually predict roughly what's happening, and with a bit of trial an error come up with a solution, but it's hit and miss.

If they're charging more than it costs to develop, then just develop yourself. Best thing about that, is that you can legitimately sell to someone else to recoup your costs.

Edited by dilbert on Thursday 13th September 18:23

TheLearner

6,962 posts

266 months

Thursday 13th September 2007
quotequote all
James, from your description of the software I don't think you'd have too much trouble rolling your own. Take a snapshot of the tables, figure out what data is being stored in them, then employ a programmer to panel beat our your compatible version. As I already said, you can find basic running chassis for modification on various script repositories.

Unless for "advertisement software" we should be reading something like "Websphere MQ" and "client" should be a megacorp like "IBM", in which case, nobody will touch it with a 10ft barge pole regardless of how right you legally are.