Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: serch bat program  (Read 12605 times)

0 Members and 1 Guest are viewing this topic.

marvinengland



    Hopeful

    Thanked: 11
    Re: serch bat program
    « Reply #30 on: June 03, 2010, 09:43:08 AM »
    Marvin bat to exe compilers have a bat file in them
    when you run the exe the bat file is put in a temporary folder this finds it opens it up in notepad
    to be edited

    The reason to complie a batch file to an .exe file is to hide the batch code?

    But now you say the .exe file can be edited with your decomplier and the original batch code is available. 

    I doubt it.

    Please show your output.

    USA

    Salmon Trout

    • Guest
    Re: serch bat program
    « Reply #31 on: June 03, 2010, 11:27:50 AM »
    Marvin bat to exe compilers have a bat file in them
    when you run the exe the bat file is put in a temporary folder this finds it opens it up in notepad
    to be edited

    Sometimes it is run from memory

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: serch bat program
    « Reply #32 on: June 03, 2010, 03:28:17 PM »
    Sometimes it is run from memory
    It all depends on what converter you used.
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    marvinengland



      Hopeful

      Thanked: 11
      Search bat program
      « Reply #33 on: June 03, 2010, 04:13:57 PM »
      It all depends on what converter you used.

      Does Helmeh mean the compiler that changed the original batch file to an exe file?

      Or does Helpmeh mean the "DECompiler"  that changes the exe file to the original batch file?
      USA

      Helpmeh



        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: Search bat program
      « Reply #34 on: June 03, 2010, 04:36:35 PM »
      Does Helmeh mean the compiler that changed the original batch file to an exe file?

      Or does Helpmeh mean the "DECompiler"  that changes the exe file to the original batch file?
      Try reading. If you do, you may realize that neither of those options are what I mean.
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      marvinengland



        Hopeful

        Thanked: 11
        Re: serch bat program
        « Reply #35 on: June 03, 2010, 06:47:31 PM »
        I am making a exe to bat decompliler  but it has problems could you help me fix them




        http://technet.microsoft.com/en-us/library/cc750056.aspx

        All the following from the above link.


        "Compiling Batch Files
        Batch Files are easy to modify, which can create problems. BAT2EXEC  is a compiler for batch files, and it turns your batch file into a exe file. Compiled batch files execute faster and create a source code that is protected from change. Before you compile a batch file, be sure to save the original under another name. Once you have compiled the file using BAT2EXEC, you cannot uncompile it to make changes."
        USA

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: serch bat program
        « Reply #36 on: June 03, 2010, 08:43:36 PM »


        http://technet.microsoft.com/en-us/library/cc750056.aspx

        All the following from the above link.


        "Compiling Batch Files
        Batch Files are easy to modify, which can create problems. BAT2EXEC  is a compiler for batch files, and it turns your batch file into a exe file. Compiled batch files execute faster and create a source code that is protected from change. Before you compile a batch file, be sure to save the original under another name. Once you have compiled the file using BAT2EXEC, you cannot uncompile it to make changes."
        try using bat2exec on a batch file today. Note the date:

        "BAT2EXEC (Douglas Boling, PC Magazine, August 1990)"

        How many batch files posted here would work on DOS 6? a optimistic estimate would be mybe a quarter of a percent.

        It only works for batch files that work in Pure DOS- that is, no for /f, no forfiles, no command extensions whatsoever. You'd be hard pressed to find more then a handful of batch files that will actually work with that compiler today.

        Additionally since the result is also a DOS COM executable it won't work on 64-bit operating systems and doesn't support anything provided by cmd- including long file names. Additionally the number of additional limitations imposed on the function of a batch file when it is converted to a 64K flat model restrict it's usefulness even further.

        Good luck creating something useful within such severe limitations. In fact, even the relatively simple batch file you posted earlier wouldn't work:

        Code: [Select]
        @echo off

        rem Convert exe to bat

        rem http://fixunix.com/ms-dos/539963-converting-exe-file-bat-file.html


        rem How to convert exe file to bat file?
        Rem Simple, here's an example:


        @echo off
        REM tested
        ren myfile.exe myfile.bat

        rem another example:
        echo off
        REM results cause problems in some OS's
        ren Buddist.exe Christian.bat


        Know why? Of course not. That's why you think bat2exec is even close to what is being discussed. If you add a "dir Christian.bat" to the end of that batch (in order to confirm output, as you are so readily able to point out in other peoples batches but appear to neglect in your own) you will get the message "File not found".

        If even the most basic batch consisting of a few rename commands doesn't work properly what hope is there for batches that actually do something useful?
        I was trying to dereference Null Pointers before it was cool.

        marvinengland



          Hopeful

          Thanked: 11
          Re: serch bat program
          « Reply #37 on: June 04, 2010, 05:53:02 PM »


          http://technet.microsoft.com/en-us/library/cc750056.aspx



          I did not write the following code. I provided a link  to the code.  The code demonstrated the futility of a "decompiler."  The code and link did not claim a valid decompiler.

          rem Convert exe to bat

          http://fixunix.com/ms-dos/539963-converting-exe-file-bat-file.html

          How to convert exe file to bat file?
          Simple, here's an example:


          Code: [Select]
          @echo off
          REM tested
          ren myfile.exe myfile.bat

          rem another example:
          echo off
          REM results cause problems in some OS's
          ren Buddist.exe Christian.bat
          USA

          marvinengland



            Hopeful

            Thanked: 11
            Re: serch bat program
            « Reply #38 on: June 05, 2010, 03:52:36 PM »
            http://www.program-transformation.org/Transform/LegalityOfDecompilation



            Legality Of Decompilation
            Program-Transformation.Org: The Program Transformation WikiIf decompilation is possible to a certain extent, is it then also allowed?
            Decompilation can be used for a number of reasons (see WhyDecompilation for more), including:
                Recovery of lost source code (by accident or via a disgruntled employee),
                Migration of assembly language applications to a new hardware platform,
                Translation of code written in obsolete languages no longer supported by compiler tools,
                Determination of the existence of viruses or malicious code in the program, and
                Recovery of someone else's source code (to determine an algorithm for example).
            However, not all uses of decompilers are legal uses.
            Throughout the world, computer programs are protected by copyright law. Copyright protects the expression of an idea in the form of a program, hence protecting the developer's (or company's) investment in writing the software. Copyright law provides a bundle of exclusive rights to the software developer; among others, the right to reproduce and make adaptations to the developed computer program. It is a breach of these rights to make reproductions or adaptations without permission of the copyright holder. Further, license agreements may also bind the user to operate the program in a certain way and to avoid using decompilation or disassembly techniques on that program.
            Different countries have different exceptions to the copyright owner's rights or precedent has been established in court proceedings. This means that these uses are allowed by law. The most common ones are:
                Decompilation/disassembly for the purposes of interoperability (to another piece of software or hardware) where the interface specification has not been made available,
                Decompilation/disassembly for the purposes of error correction where the owner of the copyright is not available to make the correction, and
                To determine parts of the program that are not protected by copyright (e.g. algorithms), without breach of other forms of protection (e.g. patents or trade secrets).
            Not all countries implement the same laws, you should contact your lawyer if in doubt.
            USA