Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. re Code

re Code

Scheduled Pinned Locked Moved C#
tutorial
13 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M mutafa81

    Hi all Now i finished My program, got it's EXE works. is there is any way to get the code from EXE and how to protect my EXE from this Thank you..

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #2

    mutafa81 wrote:

    is there is any way to get the code from EXE

    Yes - you can disassemble the code.

    mutafa81 wrote:

    and how to protect my EXE from this

    You might want to try an obfuscator. It won't stop you getting the cod out, but it will make it bloody hard to read.

    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

    My blog | My articles | MoXAML PowerToys

    P 1 Reply Last reply
    0
    • P Pete OHanlon

      mutafa81 wrote:

      is there is any way to get the code from EXE

      Yes - you can disassemble the code.

      mutafa81 wrote:

      and how to protect my EXE from this

      You might want to try an obfuscator. It won't stop you getting the cod out, but it will make it bloody hard to read.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      My blog | My articles | MoXAML PowerToys

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #3

      Pete O'Hanlon wrote:

      You might want to try an obfuscator. It won't stop you getting the cod out, but it will make it bloody hard to read.

      I agree. Though I know of an obfuscator that can cause Reflector to crash when trying to disassemble the obfuscated code.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

      1 Reply Last reply
      0
      • M mutafa81

        Hi all Now i finished My program, got it's EXE works. is there is any way to get the code from EXE and how to protect my EXE from this Thank you..

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #4

        That sort of thing isn't worth worrying about.

        T P 2 Replies Last reply
        0
        • M mutafa81

          Hi all Now i finished My program, got it's EXE works. is there is any way to get the code from EXE and how to protect my EXE from this Thank you..

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #5

          The big question is, why would someone want to read your code ? People who worry about that, usually have nothing to worry about.

          Christian Graus Driven to the arms of OSX by Vista.

          T 1 Reply Last reply
          0
          • P PIEBALDconsult

            That sort of thing isn't worth worrying about.

            T Offline
            T Offline
            Thomas Weller 0
            wrote on last edited by
            #6

            Nah, I don't agree. While this might be true for most apps, it's surely not for all of them. It entirely depends upon what's inside your code (e.g. company-specific algorithms that are protected by law). At least you have to know about the problem to be able to make an informed decision about it. Regards Thomas

            www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
            Programmer - an organism that turns coffee into software.

            1 Reply Last reply
            0
            • C Christian Graus

              The big question is, why would someone want to read your code ? People who worry about that, usually have nothing to worry about.

              Christian Graus Driven to the arms of OSX by Vista.

              T Offline
              T Offline
              Thomas Weller 0
              wrote on last edited by
              #7

              Christian Graus wrote:

              why would someone want to read your code ?

              Spying among competing businesses could be one reason. While most of the programs written won't need protection indeed, there might be some that do. It's in any way a good thing to know about the problem and its possible 'solutions'. Regards Thomas

              www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
              Programmer - an organism that turns coffee into software.

              C 1 Reply Last reply
              0
              • M mutafa81

                Hi all Now i finished My program, got it's EXE works. is there is any way to get the code from EXE and how to protect my EXE from this Thank you..

                T Offline
                T Offline
                Thomas Weller 0
                wrote on last edited by
                #8

                mutafa81 wrote:

                is there is any way to get the code from EXE

                Yes, this is easily done. The best and most popular tool for that is .NET Reflector[^].

                mutafa81 wrote:

                and how to protect my EXE from this

                There is no real escape. What you can do is use an obfuscator. These tools don't protect your code from being disassembled, but they make it as unreadable as possible. Regards Thomas

                www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
                Programmer - an organism that turns coffee into software.

                P 1 Reply Last reply
                0
                • T Thomas Weller 0

                  Christian Graus wrote:

                  why would someone want to read your code ?

                  Spying among competing businesses could be one reason. While most of the programs written won't need protection indeed, there might be some that do. It's in any way a good thing to know about the problem and its possible 'solutions'. Regards Thomas

                  www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
                  Programmer - an organism that turns coffee into software.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #9

                  Perhaps, but in most cases, it's not needed. In fact, I've seen people who have ASP.NET sites ask this ( how does anyone get the dlls in that case ? )

                  Christian Graus Driven to the arms of OSX by Vista.

                  T 1 Reply Last reply
                  0
                  • C Christian Graus

                    Perhaps, but in most cases, it's not needed. In fact, I've seen people who have ASP.NET sites ask this ( how does anyone get the dlls in that case ? )

                    Christian Graus Driven to the arms of OSX by Vista.

                    T Offline
                    T Offline
                    Thomas Weller 0
                    wrote on last edited by
                    #10

                    Christian Graus wrote:

                    Perhaps, but in most cases, it's not needed.

                    I fully agree.

                    Christian Graus wrote:

                    I've seen people who have ASP.NET sites ask this

                    This obviously doesn't make any sense at all. :-\ These things happen when people do not know (or care) how it all works. I just wanted to say: You have to be aware that there can be an issue. Regards Thomas

                    www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
                    Programmer - an organism that turns coffee into software.

                    1 Reply Last reply
                    0
                    • M mutafa81

                      Hi all Now i finished My program, got it's EXE works. is there is any way to get the code from EXE and how to protect my EXE from this Thank you..

                      M Offline
                      M Offline
                      MickCurley
                      wrote on last edited by
                      #11

                      You could always use .NET Reactor, it merges the application with native code. It stops any decompiling according to the website.

                      A craft is an enemy if not well learned.

                      1 Reply Last reply
                      0
                      • T Thomas Weller 0

                        mutafa81 wrote:

                        is there is any way to get the code from EXE

                        Yes, this is easily done. The best and most popular tool for that is .NET Reflector[^].

                        mutafa81 wrote:

                        and how to protect my EXE from this

                        There is no real escape. What you can do is use an obfuscator. These tools don't protect your code from being disassembled, but they make it as unreadable as possible. Regards Thomas

                        www.thomas-weller.de Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
                        Programmer - an organism that turns coffee into software.

                        P Offline
                        P Offline
                        Paul Conrad
                        wrote on last edited by
                        #12

                        Thomas Weller wrote:

                        These tools don't protect your code from being disassembled, but they make it as unreadable as possible.

                        While that is true, I did find one such obfuscator that actually crashes Reflector. The obfuscator was relatively inexpensive compared to some of the others out there.

                        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                        1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          That sort of thing isn't worth worrying about.

                          P Offline
                          P Offline
                          Paul Conrad
                          wrote on last edited by
                          #13

                          PIEBALDconsult wrote:

                          That sort of thing isn't worth worrying about

                          Not if you have intellectual property that you do not want the competition to find, or a client to have some one dig around in your work and sell it to someone else.

                          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups