ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Bat file Protection

    Scheduled Pinned Locked Moved IT Discussion
    79 Posts 9 Posters 6.6k Views
    Loading More Posts
    • 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.
    • DustinB3403D
      DustinB3403 @Lakshmana
      last edited by

      @lakshmana said in Bat file Protection:

      I am having one bat file for the Automation of commands how to protect that file which should not be used to see by other users?

      Any idea on it?

      Don't share it. . .

      Where is the file stored? WHo are you expecting to look at the file? What is the bat file doing? Are you concerned someone will edit the file, or delete it?

      1 Reply Last reply Reply Quote 0
      • LakshmanaL
        Lakshmana
        last edited by

        The file will be having some small commands like getting the domain details and Antvirus installation from internet like that.
        The commands done as .bat file and I will be running the files in my machine and the other friend should know the commands in that bat file
        No editing should be done in the .bat file as well as should not delete too

        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by

          So who are you concerned about accessing / editing the file? If it's yourself and your buddy who have access to the file, how are you accessing it?

          Can't permissions protect this object for you?

          1 Reply Last reply Reply Quote 0
          • LakshmanaL
            Lakshmana
            last edited by

            My friend should not see the commands which is done in the Bat file this is the requirement

            DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403 @Lakshmana
              last edited by

              @lakshmana said in Bat file Protection:

              My friend should not see the commands which is done in the Bat file this is the requirement

              How? How is he supposed to have access to the file, and not be able to view the file? Your requirements are skewed and can't work like this.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Lakshmana
                last edited by

                @lakshmana said in Bat file Protection:

                My friend should not see the commands which is done in the Bat file this is the requirement

                I'm afraid you earned today's....

                0_1501880151895_IMG_7220.GIF

                1 Reply Last reply Reply Quote 3
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  To run a BAT file, you have to be able to read it. It's just how it works. The same goes for anything that you run. Even if you deal with an executable binary, they can still see what it does. There is no way to run something without seeing inside of it.

                  1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    It would be a bit like asking someone to follow a recipe that they aren't allowed to read.

                    1 Reply Last reply Reply Quote 0
                    • LakshmanaL
                      Lakshmana
                      last edited by

                      I am having test.bat file which i created in my machine where some commands like systeminfo is present for example.The file ran in my machine and saved the file output in .bat in my machine.Then my friend also took that file and able to see the commands inside the bat.
                      He should not open and see that file if he opens the commands should not see the commands in it.

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • LakshmanaL
                        Lakshmana
                        last edited by Lakshmana

                        I have tried one of the option ,encrypt content once the file created but the file is not running now in other machine

                        1 Reply Last reply Reply Quote 0
                        • gjacobseG
                          gjacobse
                          last edited by

                          a Batch file is just a text file renamed to the .BAT extension which all PCs know to read as a set of 'keyboard' commands. You can not have a batch file and not be text readable. As @scottalanmiller pointed out - That's now how it works.

                          If you want something that does x and y and not be 'readable' by your 'buddy' you need to compile it into some 'application'...

                          1 Reply Last reply Reply Quote 1
                          • LakshmanaL
                            Lakshmana
                            last edited by

                            Suggest some applications if possible ?

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @Lakshmana
                              last edited by

                              @lakshmana said in Bat file Protection:

                              I am having test.bat file which i created in my machine where some commands like systeminfo is present for example.The file ran in my machine and saved the file output in .bat in my machine.Then my friend also took that file and able to see the commands inside the bat.
                              He should not open and see that file if he opens the commands should not see the commands in it.

                              But he SHOULD, period. How do you expect him to be able to run it if he can't see it? That's not possible.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Lakshmana
                                last edited by

                                @lakshmana said in Bat file Protection:

                                Suggest some applications if possible ?

                                The issue is that he should not be the one running it. You are attempting security through obscurity. In this case, you are looking for the obscurity. You need to stop and think about goals. You are trying to do something impossible.

                                1 Reply Last reply Reply Quote 2
                                • LakshmanaL
                                  Lakshmana
                                  last edited by

                                  Then how .exe files are created any ideas ?

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @Lakshmana
                                    last edited by

                                    @lakshmana said in Bat file Protection:

                                    Then how .exe files are created any ideas ?

                                    But I just explained that .exe can't do this either. He can still open an exe and see what it is doing.

                                    LakshmanaL 1 Reply Last reply Reply Quote 1
                                    • LakshmanaL
                                      Lakshmana
                                      last edited by

                                      Now i am having the file in encrypted which is not viewable in the PC but the file is not running in the machine B.A machine run the file

                                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                                      • scottalanmillerS
                                        scottalanmiller
                                        last edited by

                                        You need to change fundamentally what you are trying to do. Which we don't know what that is. Why do you want your friend to run this program? Clearly you don't think that he should have this access, so what is going on?

                                        1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @Lakshmana
                                          last edited by

                                          @lakshmana said in Bat file Protection:

                                          Now i am having the file in encrypted which is not viewable in the PC but the file is not running in the machine B.A machine run the file

                                          You can't run an encrypted file.

                                          LakshmanaL 1 Reply Last reply Reply Quote 0
                                          • LakshmanaL
                                            Lakshmana @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Bat file Protection:

                                            @lakshmana said in Bat file Protection:

                                            Then how .exe files are created any ideas ?

                                            But I just explained that .exe can't do this either. He can still open an exe and see what it is doing.

                                            How it able to do ?

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post