Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Q_Q

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 ...

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×