TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-03-2010, 01:54 PM   #1 (permalink)
The Wanderer
 
Join Date: Jul 2010
Posts: 17
Thanks: 0
Arictos is on a distinguished road
Default Please help.

Hey there, I have a script that I've had in my posession for some years now, to which I used to have the key for, however I no longer have it.

The encryption method used on the file isn't he most advanced in the world, however it's stumped me as to revealing the source code to the bnetsq.php file.

I was hoping someone would be willing to give a shot at decrypting it.

The encryption algorithm is an older, but common one known as codelock. You can find many resources regarding it online.

Hopefully someone can help.. Being able to refer to the source code will help me a lot on my current project.

Thanks
Attached Files
File Type: zip bnetsq.zip (16.9 KB, 12 views)
Arictos is offline  
Reply With Quote
Old 07-03-2010, 08:31 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

The codelock file quite clearly says:

Quote:
Reverse engineering is strictly prohibited
Salathe is offline  
Reply With Quote
Old 07-03-2010, 10:00 PM   #3 (permalink)
The Wanderer
 
Join Date: Jul 2010
Posts: 17
Thanks: 0
Arictos is on a distinguished road
Default

The file was given to me by one of its creators, Roy Jezmajian, in attempt for me to re-create it sometime ago.

I very much have his permission to decrypt the file, as he said that he didn't have the key either, which is why it's the issue.

The codelock.php file is an external application that was used with the file to encrypt it, not part of the actual program (beyond encryption).

If need be, I can provide proof of his permission. But being as this was created back in 2004, we don't have the previous information regarding its encryption.
Arictos is offline  
Reply With Quote
Old 07-03-2010, 11:53 PM   #4 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

I would suggest asking Roy for the original source, or a new valid key, to save you the bother of asking on some random PHP forum for help to work around not having a valid key any longer.
Salathe is offline  
Reply With Quote
Old 07-04-2010, 12:26 AM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Arictos View Post
The file was given to me by one of its creators, Roy Jezmajian, in attempt for me to re-create it sometime ago.

I very much have his permission to decrypt the file, as he said that he didn't have the key either, which is why it's the issue.
I almost believed you when I read your first post, now I don't at all. This is actually not the first time I've heard that one. We won't help you crack other people's work.
__________________

Village Idiot is offline  
Reply With Quote
Old 07-04-2010, 04:52 AM   #6 (permalink)
The Wanderer
 
Join Date: Jul 2010
Posts: 17
Thanks: 0
Arictos is on a distinguished road
Default

I'm not trying to deceive anyone.. Roy originally gave me the code and a key some years ago, as I said. At the time, I had no use for it, so it's just been sitting there. Now that i'm trying to make use of it, and having that being the only copy that he and I have (not having the original non-encrypted version), i'm trying to make due with what I have, without having a key.

He has said that since it IS so old, that he doesn't have any keys lying around anymore, so that I could go ahead and decrypt it if I could.

But I understand if you guys don't want to help out. I suppose i'll just keep giving it a go, and hope I have some luck.
Arictos is offline  
Reply With Quote
Old 07-04-2010, 10:38 AM   #7 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Chances are that code written in 2004 is pretty rubbish by today's standards and best practices anyway so even if you did have the original source, it could well be an improvement to re-write the script with a more modern approach. :)
Salathe is offline  
Reply With Quote
Old 07-04-2010, 10:39 AM   #8 (permalink)
The Wanderer
 
Join Date: Jul 2010
Posts: 17
Thanks: 0
Arictos is on a distinguished road
Default

I agree with you :) But I don't understand the concepts of what i'm working on, and the same concepts are inside of the encrypted file.

So being able to use it as an example to learn how things are done within it, will make my learning process a lot easier.
Arictos is offline  
Reply With Quote
Old 07-04-2010, 12:45 PM   #9 (permalink)
The Wanderer
 
Join Date: Jul 2010
Posts: 17
Thanks: 0
Arictos is on a distinguished road
Default

I'm not sure if I made this point clear though, just to defend myself somewhat.

He didn't write the codelock.php file, it's an older version of the software located at this site: http://www.codelock.co.nz/encryptor/index.php

So he used the older version, and just doesn't have the key anymore to give me. So i'm not trying to break his decryption, but just access the files that he gave me permission to view.

If you use the codelock.php program, it's the program itself that says not to reverse engineer the software, but not his code. So.. yeah.. just sayin'
Arictos is offline  
Reply With Quote
Old 07-15-2010, 11:03 PM   #10 (permalink)
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Quote:
I very much have his permission to decrypt the file,
So, even if you do have permission, we don't.
__________________
My Site
adamdecaf is offline  
Reply With Quote
Old 07-16-2010, 02:47 AM   #11 (permalink)
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default

Curiosity got the better of me and I decided to decrypt it, write yourself new software.
__________________
My Blog
Enfernikus is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:59 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design