Source code !?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dam

    #1

    Source code !?

    Hi,

    since there are tools that can decompile assemblies and
    show ENTIRE SOURCE CODE (!?) is there any way for
    developers to protect their work ?

    Or, is famoues .NET framework just for companies who sell
    their source code. If this is true - it is unbelievable
    childish !

  • Jon Skeet [C# MVP]

    #2
    Re: Source code !?

    dam <dam_hr@hotmail .com> wrote:[color=blue]
    > since there are tools that can decompile assemblies and
    > show ENTIRE SOURCE CODE (!?) is there any way for
    > developers to protect their work ?[/color]

    There are obfuscators which will make the code much harder to read.
    [color=blue]
    > Or, is famoues .NET framework just for companies who sell
    > their source code. If this is true - it is unbelievable
    > childish ![/color]

    Any non-trivial app which has been obfuscated (and probably most which
    haven't been obfuscated) will be *very* hard to fully understand. Don't
    forget that you don't get any comments back when you decompile.

    What *exactly* are you afraid of? One thing it *does* make easier is
    simple cracking of licence code (or rather, simple bypassing of licence
    code) but it's not like that's impossible with native code either.

    For the most part, I believe it would be harder to steal intellectual
    property by decompiling than to take the ideas that are apparent in the
    app itself and redevelop them from scratch.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • Guest's Avatar

      #3
      Re: Source code !?

      > since there are tools that can decompile assemblies and[color=blue]
      > show ENTIRE SOURCE CODE (!?) is there any way for
      > developers to protect their work ?
      >[/color]
      In my opinion (seen enough examples) taking out of the protection from 99%
      of the applications is just a matter of hours.
      So don't concentrate too much in protecting, use that energy to improve your
      application.
      [color=blue]
      > Or, is famoues .NET framework just for companies who sell
      > their source code. If this is true - it is unbelievable
      > childish !
      >[/color]
      There are things build in .NET that actually improves protection.
      Compared to conventional exe applications, building-in a protection
      mechanism is simpler, but not perfect.

      Copy protection must be built in from te very first line of code that you
      write and mixed in all your functions.
      It must be part of your code, not some library that you link with. And when
      the program discovers that something is wrong, it should wait an random
      interval before reporting this dialog box with the error message somewhere
      encrypted in your application.



      Comment

      • news.microsoft.com

        #4
        Re: Source code !?

        LicenseProvider . Is the component license model also at risk. Im supprised
        somebody has not done this already, then again there may not be alot of
        licensed components out there, and there is no framework for licensing apps.


        <Olaf.Baeyens@s kyscan.be> wrote in message
        news:3fa0ea01$0 $20141$ba620e4c @reader1.news.s kynet.be...[color=blue][color=green]
        > > since there are tools that can decompile assemblies and
        > > show ENTIRE SOURCE CODE (!?) is there any way for
        > > developers to protect their work ?
        > >[/color]
        > In my opinion (seen enough examples) taking out of the protection from 99%
        > of the applications is just a matter of hours.
        > So don't concentrate too much in protecting, use that energy to improve[/color]
        your[color=blue]
        > application.
        >[color=green]
        > > Or, is famoues .NET framework just for companies who sell
        > > their source code. If this is true - it is unbelievable
        > > childish !
        > >[/color]
        > There are things build in .NET that actually improves protection.
        > Compared to conventional exe applications, building-in a protection
        > mechanism is simpler, but not perfect.
        >
        > Copy protection must be built in from te very first line of code that you
        > write and mixed in all your functions.
        > It must be part of your code, not some library that you link with. And[/color]
        when[color=blue]
        > the program discovers that something is wrong, it should wait an random
        > interval before reporting this dialog box with the error message[/color]
        somewhere[color=blue]
        > encrypted in your application.
        >
        >
        >[/color]


        Comment

        • dam

          #5
          Re: Source code !?

          Obfuscators are certainly better than nothing. But, in my
          opinion, the more logic in one method, the easier it gets
          to understand. String protection (and there could be
          important data) is poor by obfuscators. Here

          is good discussion on that.

          In my oppinion, the one should write source code,
          obfuscate it, decompile it, and if it looks easy to
          understand write it other way (by using more methods)
          until it gets hard enough to understand. But, on the
          other hand, calling a method puts extra overhead.




          [color=blue]
          >-----Original Message-----
          >dam <dam_hr@hotmail .com> wrote:[color=green]
          >> since there are tools that can decompile assemblies[/color][/color]
          and[color=blue][color=green]
          >> show ENTIRE SOURCE CODE (!?) is there any way for
          >> developers to protect their work ?[/color]
          >
          >There are obfuscators which will make the code much[/color]
          harder to read.[color=blue]
          >[color=green]
          >> Or, is famoues .NET framework just for companies who[/color][/color]
          sell[color=blue][color=green]
          >> their source code. If this is true - it is[/color][/color]
          unbelievable[color=blue][color=green]
          >> childish ![/color]
          >
          >Any non-trivial app which has been obfuscated (and[/color]
          probably most which[color=blue]
          >haven't been obfuscated) will be *very* hard to fully[/color]
          understand. Don't[color=blue]
          >forget that you don't get any comments back when you[/color]
          decompile.[color=blue]
          >
          >What *exactly* are you afraid of? One thing it *does*[/color]
          make easier is[color=blue]
          >simple cracking of licence code (or rather, simple[/color]
          bypassing of licence[color=blue]
          >code) but it's not like that's impossible with native[/color]
          code either.[color=blue]
          >
          >For the most part, I believe it would be harder to steal[/color]
          intellectual[color=blue]
          >property by decompiling than to take the ideas that are[/color]
          apparent in the[color=blue]
          >app itself and redevelop them from scratch.
          >
          >--
          >Jon Skeet - <skeet@pobox.co m>
          >http://www.pobox.com/~skeet
          >If replying to the group, please do not mail me too
          >.
          >[/color]

          Comment

          • Guest's Avatar

            #6
            Re: Source code !?

            [color=blue]
            >There are things build in .NET that actually improves[/color]
            protection.[color=blue]
            >Compared to conventional exe applications, building-in a[/color]
            protection[color=blue]
            >mechanism is simpler, but not perfect.
            >
            >Copy protection must be built in from te very first line[/color]
            of code that you[color=blue]
            >write and mixed in all your functions.
            >It must be part of your code, not some library that you[/color]
            link with. And when[color=blue]
            >the program discovers that something is wrong, it should[/color]
            wait an random[color=blue]
            >interval before reporting this dialog box with the[/color]
            error message somewhere[color=blue]
            >encrypted in your application.
            >
            >[/color]

            Could you, please, be more specific on that. I'm not sure
            I understand this completely.

            I mean, when somebody sees your source code, he sees the
            heart of your application, he sees the competitive
            advantage your application has over other application
            that perform more or less the same task.


            Comment

            • dam

              #7
              Re: Source code !?


              There are bunch of applications that perform the same
              tasks, but some do that better than the others.

              And no mather how you obfuscate your application, the
              competition will find what they are looking for.



              [color=blue]
              >-----Original Message-----
              >dam <dam_hr@hotmail .com> wrote:[color=green]
              >> since there are tools that can decompile assemblies[/color][/color]
              and[color=blue][color=green]
              >> show ENTIRE SOURCE CODE (!?) is there any way for
              >> developers to protect their work ?[/color]
              >
              >There are obfuscators which will make the code much[/color]
              harder to read.[color=blue]
              >[color=green]
              >> Or, is famoues .NET framework just for companies who[/color][/color]
              sell[color=blue][color=green]
              >> their source code. If this is true - it is[/color][/color]
              unbelievable[color=blue][color=green]
              >> childish ![/color]
              >
              >Any non-trivial app which has been obfuscated (and[/color]
              probably most which[color=blue]
              >haven't been obfuscated) will be *very* hard to fully[/color]
              understand. Don't[color=blue]
              >forget that you don't get any comments back when you[/color]
              decompile.[color=blue]
              >
              >What *exactly* are you afraid of? One thing it *does*[/color]
              make easier is[color=blue]
              >simple cracking of licence code (or rather, simple[/color]
              bypassing of licence[color=blue]
              >code) but it's not like that's impossible with native[/color]
              code either.[color=blue]
              >
              >For the most part, I believe it would be harder to steal[/color]
              intellectual[color=blue]
              >property by decompiling than to take the ideas that are[/color]
              apparent in the[color=blue]
              >app itself and redevelop them from scratch.
              >
              >--
              >Jon Skeet - <skeet@pobox.co m>
              >http://www.pobox.com/~skeet
              >If replying to the group, please do not mail me too
              >.
              >[/color]

              Comment

              • phoenix

                #8
                Re: Source code !?

                Ever heard of programs like softice (debugger), w32dasm (decompiler), ...
                They gave you the full source code of any win32 app. Okay it was assembler
                but if your competitors really wanted to steal it, that wouldn't have
                stopped them.

                "dam" <dam_hr@hotmail .com> schreef in bericht
                news:09fe01c39e de$a52af4d0$a30 1280a@phx.gbl.. .[color=blue]
                > Obfuscators are certainly better than nothing. But, in my
                > opinion, the more logic in one method, the easier it gets
                > to understand. String protection (and there could be
                > important data) is poor by obfuscators. Here
                > http://www.remotesoft.com/salamander/obfuscator.html
                > is good discussion on that.[/color]

                Strings were never save. In "oldfashion ed" win32 apps the only thing you had
                to do was a memory dump and most of the time you could read everything you
                needed to know.
                [color=blue]
                > In my oppinion, the one should write source code,
                > obfuscate it, decompile it, and if it looks easy to
                > understand write it other way (by using more methods)
                > until it gets hard enough to understand. But, on the
                > other hand, calling a method puts extra overhead.
                >[/color]




                Comment

                • Jon Skeet [C# MVP]

                  #9
                  Re: Source code !?

                  dam <dam_hr@hotmail .com> wrote:[color=blue]
                  > There are bunch of applications that perform the same
                  > tasks, but some do that better than the others.
                  >
                  > And no mather how you obfuscate your application, the
                  > competition will find what they are looking for.[/color]

                  I think you're just guessing - and so am I, admittedly. I don't think
                  it *actually* happens much. By the time class names have been
                  obfuscated, the architecture of significant app really takes a long
                  time to understand.

                  Bearing in mind that most actual *algorithms* are well-known, you're
                  really just left with the architecture.

                  --
                  Jon Skeet - <skeet@pobox.co m>
                  Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

                  If replying to the group, please do not mail me too

                  Comment

                  • Christian Boult

                    #10
                    Re: Source code !?

                    The belief that native code protects your source code is false. How do you
                    think hackers find holes in software... By guessing ? Hell no you need to
                    look at the code that is running and find sweet spots. SoftIce or some other
                    tools that shows you code in the form of assembly language has always been
                    there. If someone is competent enough to understand your whole architecture
                    then he is no average bumbling fool and, no matter what, he will get to your
                    precious source code (or some interpretation of it).

                    Obfuscators exist out there that do a pretty decent job of keeping the
                    bumbling fool from easily reading your code, but a competent Joe will always
                    be able to read and understand (after some thinking) what your code does.

                    Anyways there's not much in terms of algorithm that's not already out there
                    somewhere.

                    Web services can help in this respect by putting sensitive code on the
                    server and not being accessible by a client and the code that's not so
                    sensitive (GUI stuff) on the client.

                    Chris.


                    "dam" <dam_hr@hotmail .com> wrote in message
                    news:025301c39e c5$38a8d340$a00 1280a@phx.gbl.. .[color=blue]
                    > Hi,
                    >
                    > since there are tools that can decompile assemblies and
                    > show ENTIRE SOURCE CODE (!?) is there any way for
                    > developers to protect their work ?
                    >
                    > Or, is famoues .NET framework just for companies who sell
                    > their source code. If this is true - it is unbelievable
                    > childish !
                    >[/color]


                    Comment

                    • dam

                      #11
                      Source code !?

                      Thank you all for participating.
                      You made me believe that good obfuscator will get the job
                      done.
                      Now, I have seen the output from dotfuscator and I think
                      it is pretty good.

                      If anyone knows for better obfuscator, please post it.

                      Thanks.

                      Comment

                      • Michael Lang

                        #12
                        Re: Source code !?

                        "dam" <dam_hr@hotmail .com> wrote in news:0be701c39e f6$a1fd95c0
                        $a401280a@phx.g bl:
                        [color=blue]
                        > Thank you all for participating.
                        > You made me believe that good obfuscator will get the job
                        > done.
                        > Now, I have seen the output from dotfuscator and I think
                        > it is pretty good.
                        >
                        > If anyone knows for better obfuscator, please post it.
                        >
                        > Thanks.
                        >[/color]

                        This is what I am going to use when I am ready to deploy my app. It does
                        alot more than obfuscators. It actually encrpts the executeable. They
                        show samples on the web page what the source and outputs looks like.



                        I haven't actually tested it yet, but it sounds better. I won't be ready
                        to actually buy it for another 6 months, when my application is in the beta
                        test phase. I'd be interested if anyone has been able to hack around code
                        that has been protected by this program.

                        Michael Lang, MCSD

                        Comment

                        • news.microsoft.com

                          #13
                          Re: Source code !?

                          Does this affect the performance of the appliation when its obscfuated



                          "Michael Lang" <ml@nospam.co m> wrote in message
                          news:Xns9426572 B9CC43lang1474i cqmailcom@207.4 6.248.16...[color=blue]
                          > "dam" <dam_hr@hotmail .com> wrote in news:0be701c39e f6$a1fd95c0
                          > $a401280a@phx.g bl:
                          >[color=green]
                          > > Thank you all for participating.
                          > > You made me believe that good obfuscator will get the job
                          > > done.
                          > > Now, I have seen the output from dotfuscator and I think
                          > > it is pretty good.
                          > >
                          > > If anyone knows for better obfuscator, please post it.
                          > >
                          > > Thanks.
                          > >[/color]
                          >
                          > This is what I am going to use when I am ready to deploy my app. It does
                          > alot more than obfuscators. It actually encrpts the executeable. They
                          > show samples on the web page what the source and outputs looks like.
                          >
                          > http://www.remotesoft.com/salamander/protector.html
                          >
                          > I haven't actually tested it yet, but it sounds better. I won't be ready
                          > to actually buy it for another 6 months, when my application is in the[/color]
                          beta[color=blue]
                          > test phase. I'd be interested if anyone has been able to hack around code
                          > that has been protected by this program.
                          >
                          > Michael Lang, MCSD[/color]


                          Comment

                          Working...