Jump to content

Something to ask


Recommended Posts

ei ... i from malaysia... my english is bad ... sry ar ... :wacko:

ei ...

@echo off

color B

Title Password Tester

set tries=10

:top

cls

set /a tries=%tries% -1

if %tries%==0 (

goto penalty

)

Echo You have %tries% attempts left.

::Note: the above part is optional, as it will show the user how many attempts they have left until the penalty action takes place.

Echo Please Enter Password To Proceed

set /p password=

if %password%==abc (

start C:\PROGRA~1\Garena\garena.exe

) else (

goto top

)

goto top

:penalty

ei ... i wan ask is wat command is for dun display tat password when i typing ...

where should i change for my coding ?

coz when i run tat bat but what i type will showing ...

help me pls ... :ph34r:

thx ...

Link to comment
Share on other sites


If I get it right, you are asking for a way to type a paasword without it being "echoed" to console. :unsure:

This is possible in pure "batch" files, but it is NOT recommended, see here for some ideas:

http://www.geocities.com/leopignataro86/batchfiles/

There are workarounds, in .vbs, depending on the system you want to run it:

http://www.robvanderwoude.com/wshexamples_i.html#IEDialogs

http://www.robvanderwoude.com/files/ielogin2_vbs.txt

Or using third party apps, like (as an example - good as it works both on 9x/Me and NT based systems):

Wizard's Apprentice:

http://wizapp.sourceforge.net/

http://wizapp.sourceforge.net/manual.html

(Editbox HIDDEN)

or - more specific - EditV32:

http://www.westmesatech.com/

http://www.westmesatech.com/editv.html

jaclaz

Link to comment
Share on other sites

Maybe you can use ANSI escape sequences to set the foreground and background color the same.

Sure, but the actual point why it is NOT recommended is that you have a plain text file (the .bat or .cmd) with the password written in plain text. :blink:

My 4 years old nephew would probably be able to break it in less time that it takes to say "ANSI escape sequences" :whistle:

jaclaz

Link to comment
Share on other sites

Sure, but the actual point why it is NOT recommended is that you have a plain text file (the .bat or .cmd) with the password written in plain text.
echo %password% | md5sum -c password.md5

if errorlevel goto penalty

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...