| 
 | 
     
    
    
    
     
    
    
    
 
    
    
 
    
     
    
    
    
     
    
    
    
     
    
    
    
 
    
    
 
    
    
 | 
       | 
      
 
 
	
	
	
	
	
	
	
	
		  | 
	
	
 
 
		
	
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2007, 04:01 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				Captain 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Oct 2001 
					Location: Australia 
					
					
						Posts: 809
					 
					 
	Thanks: 0 
	
		
			
				Thanked 0 Times in 0 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				OT -  Reverse engineer a .dll & .exe
	
			 
             
			
		
		
		
		Question that I thought some of the members here might know about. 
A programmer here created an application and has since left, deleting all his data and code for creating the application, and conveniently not leaving a backup. 
We now need to modify 1 thing in the code? 
Does anyone know how to reverse engineer a .dll & .exe file that was created using a VB developer tool? 
Thanks. 
Baron Grazic 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2007, 06:56 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Shrapnel Fanatic 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2003 
					Location: CHEESE! 
					
					
						Posts: 10,009
					 
					 
	Thanks: 0 
	
		
			
				Thanked 7 Times in 1 Post
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		I think that's illegal. 
		
	
		
		
		
		
		
		
			
				__________________ 
				If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!  
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++ 
  Some of my webcomics. I've got 400+ webcomics at Last count, some dead. 
Sig updated to remove non-working links.
			  
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2007, 07:58 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Feb 2001 
					Location: Pittsburgh, PA, USA 
					
					
						Posts: 3,070
					 
					 
	Thanks: 13 
	
		
			
				Thanked 9 Times in 8 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		I doubt that it's illegal for a company to decompile code that its employees/contractors custom wrote for it. 
 
Still, it's an argument in favor of using Open Source applications whenever possible. 
		
	
		
		
		
		
		
		
			
				__________________ 
				Cap'n Q 
 
"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2007, 10:21 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Shrapnel Fanatic 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Dec 2000 
					Location: USA 
					
					
						Posts: 15,630
					 
					 
	Thanks: 0 
	
		
			
				Thanked 31 Times in 19 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		I remember when one of my former companies top programmers became so dissolutioned with the company that he simply walked in the middle of a high priority project and since he was senior programmer on the project he was the only one who knew the details of the program.  Since the company had already invested several million into the project and didn't want to start over so they had to make arrangements to have him come back to work for them to finish the project.  They paid him six times his wage as a consultant for his expertise.  His contract gave him total control and he had more authority than his former boss and that alone made his day.   
 
Good luck with the reverse engineering thing.  It didn't work out well for my former company but I do hope it works out for yours. 
		
	
		
		
		
		
		
		
			
				__________________ 
				Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2007, 11:01 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				Second Lieutenant 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Sep 2006 
					
					
					
						Posts: 482
					 
					 
	Thanks: 0 
	
		
			
				Thanked 0 Times in 0 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		It is not illegal is the company owns it. 
 
Reverse Engineering take some time to get good at, but check out IDA Pro.  They have a free demo, but if your company is serious about it, they should buy it. 
 
You should know what your getting into though... 
 
There are not really any good tools to reverse it to source code that can compile.  You may be able to make a binary change to the dll/exe depending on the change (i.e. byte for byte).  IDA pro will not convert it to source code, it will just show you the assembly,objects etc. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 23rd, 2007, 02:57 PM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Major 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2004 
					Location: Taganrog, Russia 
					
					
						Posts: 1,087
					 
					 
	Thanks: 0 
	
		
			
				Thanked 0 Times in 0 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		Disassembler is a little help when you're REing VB p-code. 
Good decompiler might help a bit more:   VBD.  
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 23rd, 2007, 06:03 PM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Apr 2001 
					Location: Cincinnati, Ohio, USA 
					
					
						Posts: 4,547
					 
					 
	Thanks: 1 
	
		
			
				Thanked 7 Times in 5 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		VB? If it's VB.NET (not VB6 or earlier), then the code is only compiled into "MSIL" which is not really machine language, and it's actually possible (IIRC) to get meaningful source code out of it, unless it's been run through an obfuscator. You won't get the comments, of course, and you probably won't get the right names for the variables and such, but you will get real honest-to-God source code that you can mess with. Just Google ".net decompiler" for options. I've never actually used any of these tools before so I'm not sure how well they work, but I'm pretty sure there are even free tools to do this at a very basic level. 
Of course if it's not .NET then none of what I said applies, but it's worth a try... worst you can do is get some error saying "this is not a .NET executable" or something!    
		
	
		
		
		
		
		
		
			
				__________________ 
				The Ed draws near! What dost thou deaux?
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				August 17th, 2007, 10:44 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				Private 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2007 
					
					
					
						Posts: 46
					 
					 
	Thanks: 0 
	
		
			
				Thanked 0 Times in 0 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: OT -  Reverse engineer a .dll & .exe
			 
             
			
		
		
		
		You can use   Reflector to decompile .net assemblies.  
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
 
	
		
	
	
	
	
	
	
	
		
	
		 
		Posting Rules
	 | 
 
	
		
		You may not post new threads 
		You may not post replies 
		You may not post attachments 
		You may not edit your posts 
		 
		
		
		
		
		HTML code is On 
		 
		
	  | 
 
 
	 | 
	
		
	 | 
 
 
     |  
 |