I made a small application, in batch
language, which I then made into a .exe
file.
The file asks for a password to be opened, opening a window where it should be inserted, but this password is fixed because it is written in the file .bat
that gave the .exe
. >
What I want is a system, which can be inserted into the source code, so that you have the possibility to change the password.
For example, if it is "Paul 123" when opening the window where the password is written, the letter "X" or the number "Y" is inserted which will make a goto
to a different line where a echo
will be prompted to enter the new password. Of course you would have to have, as a security measure, the need to enter the original password first.
The line of code that takes care of asking for the password in my application is
set /p "pass=>"
if NOT %pass%== "Palavra-passe-sem-as-aspas" goto FAIL
If it is not possible to do this in batch language, it can be anywhere else where possible.
My difficulty is that my knowledge of the commands and their syntax is very limited and boils down to the basics of .bat
files, so it would have to be done in a way that I could copy the lines of code , into the source code of my application, so that it could run.
In case it is not possible to mix the two languages into a single file, the code would have to be executed in a way that would be executed separately so that it could act on the application executable, so I would need to know how to make this code an independent executable.
In addition, in this application that I did, when you type the password in the insert window, it appears revealed and I wanted to know how to do it, so that it appeared as asterisks.