Results 1 to 16 of 16

Thread: View source of an EXE

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Question View source of an EXE

    Does anyone know if it is possible to view the source code of a vb EXE?. i.e. reverse the EXE to vb source code & show me how it was coded?

    I have a piece of software which was written by a previous employee & i need to be able view his source code.
    All that i have is the EXE which is already bundled up & finished, I need to extract the validation section from his code as it will be the same in my new project. (Validation section was massive so that's why i cant do it from scratch)

    We own the license for the software already so theres no issues with legalities.

    Are there any programs out there which can be downloaded to do this?

    cheers
    Gilly

  2. #2
    New Member
    Join Date
    Jun 2004
    Location
    Raleigh, NC
    Posts
    4
    I don't know if it's possible because if it were, then everyone would rip everyone's work, and no program that is copyrighted would be worth anything...but what do I know, I'm a programming newbie.

    I'm pretty sure theres not, but if there is a way, I would like to know also.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: View source of an EXE

    Originally posted by gilly
    We own the license for the software already so theres no issues with legalities.
    License for software <> License for Code of the software
    (admittedly it sounds as though he worked for your company, in which case the company owns both).


    Basically you cant convert back to VB (assuming VB 5 or 6).

    There are ways of doing it for earlier versions, and there are apparently ways of getting some form of code (usually Assembly code) out of a VB 5/6 exe, which is not likely to be readable to a VB-only developer.


    The easiest option is likely to be reverse-engineering the software (give it several sets of input, and work out what it does each time).

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    what you are talking about it decompiling... and no you can't do it.. sorry. How can your company not have the source code for a program a previous employee wrote? he took it with him?

  5. #5
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Apparently its impossible to do a 100% decompliation but i did read on some formum of a VB6,5 decomplier that produced source code for any VB EXE that was pretty close to the original. They wouldn't say where the decomplier was but it sounded like a genuine post.

    Anyway theres a good chance the exe will have some kind of encryption on it anyway throwing any decomplier off.

  6. #6
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Ever try turning a cake back into Eggs, flower and milk?

  7. #7
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263
    Spajeoly,

    This cake with flower is interesting... it tastes good ??? or only smells good ???

    Guys,

    I used sometime ago a "decompiler" that only gets back the functions and Subs Data (without code)... It's the only one I know that makes some work like that...


    Sorry...


    João Luiz
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

  8. #8
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    I've got a VB6 docompiler but it works only on a few things, you might get lucky and it could work but usually it just turns up very basic information. It's not on my computer here but if you really want it, PM me.

  9. #9
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367
    as si_the_geek said only disasembling the program and looking thru the ASM Code you can get the source code =)
    Remember you gotta know the VB Fucntions in the dissambler because they not the same as in VB example

    Msgbox...VB6
    rtcMsgbox....dissasembler function :P

    and is hard lol...
    Born to help others
    (If I've been helpful then please rate my post. Thanks)

    call me EJ or be slapped!

  10. #10
    Frenzied Member Robbo's Avatar
    Join Date
    Jan 2001
    Location
    Bradford
    Posts
    1,143
    lloks like you have a lot of validation code to write, would have a look at the backups, or on the machine the wrote the software on and have alook for any of the VB files, from an exe u havent got much chance
    -----------------------------------------------
    "The hall is rented,"
    "the orchestra is engaged,"
    "its now time to see if you can dance!"
    Q, Q-Who, Star Trek The Next Generation
    -----------------------------------------------
    General Work day

    -----------------------------------------------
    DOS, Win 95, Win 98 SE, Win ME, Win NT 4.0 SP6a, Windows 2000 SP3, Window XP SP1, Windows 7, Windows 8/8.1, Windows 10, Office 97 Pro, Office 2000 Pro, Office 2010, Office 2013, Office 2016, Office 2019, Visual Basic 6 (SP5), SQL, Oracle

  11. #11
    Hyperactive Member
    Join Date
    May 2002
    Location
    Wisconsin, USA
    Posts
    279
    http://vbrezq.com/

    VB RezQ saves you both time and effort.
    Let VB RezQ help you re-write your program by re-creating your source files from the data that's hidden inside the compiled file. Look at this example of what VB RezQ does.


    VB RezQ provides an accurate framework on which you can rebuild your VB application. It identifies and re-creates all the source files, recovers the project file, the graphical design of each form, references to custom controls and declarations for API calls. It also identifies all events and subroutines. Note: VB RezQ does not recover the source code within subroutines.

  12. #12
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    The earlier versions of VB also stored the comments in the executable. Not helpful I know, but just adding it..

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  13. #13
    Junior Member
    Join Date
    Jun 2004
    Posts
    29

    Its gonna be hard time

    You can reengineer the whole Exe but I am not sure how much would you succeed as the result may or may not make sense to you. But de compiler would help in case you are lucky.
    Give me a place to stand and I will move the Earth

  14. #14
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    Do you have the debug symbols for the executable?
    (usually a file called exename.dbg and created by compiling the app with the generate debug information option switched on)

  15. #15
    Hyperactive Member Jlarini's Avatar
    Join Date
    Jan 2002
    Location
    São Paulo, Brazil
    Posts
    263
    If VB RezQ doesn't retrieves the routines data, say me what f**k it helps him ???

    I tried it some time ago, as I said before (I just forgot its name...), it's helpful to retrieve the Subs / Functions structures, but... What if we need the code ???

    In my case, I've lost all the project, and it helps... nothing...

    []s

    JL
    nothing is impossible, it's sometimes very hard to do!

    If your thread is solved... Please edit it and add [Resolved] or [Solved] on it!

    If you like Marine aquarium, feel free to PM me.

    Sorry my bad English

    God bless Parksie!

  16. #16
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    Originally posted by crpietschmann
    http://vbrezq.com/

    VB RezQ saves you both time and effort.
    Let VB RezQ help you re-write your program by re-creating your source files from the data that's hidden inside the compiled file. Look at this example of what VB RezQ does.


    VB RezQ provides an accurate framework on which you can rebuild your VB application. It identifies and re-creates all the source files, recovers the project file, the graphical design of each form, references to custom controls and declarations for API calls. It also identifies all events and subroutines. Note: VB RezQ does not recover the source code within subroutines.
    There never was true decompiler for VB (any version).
    VB RezQ is just another attempt to accomplish this but in reality it doesn work. Here is a quote from their site:
    1. VB RezQ recovers the binary .frx file that partners this .frm file.
    2. VB RezQ does not recover Attribute VB_TemplateDerived as this cannot be determined from the compiled file.
    3. VB RezQ recovers part of the DLL declaration but cannot determine its argument list, so it is commented out.
    4. VB RezQ recovers the procedure declaration but not its executable code.
    5. This procedure is commented out as VB RezQ cannot determine its argument list or its type (Sub, Function, Get, Let, Set).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width