kyper Posted December 2, 2009 Share Posted December 2, 2009 I would like to know how to make that you have to type the correct password into an inputbox in order to continue with the script and exit if the password is wrong. Link to comment Share on other sites More sharing options...
Mison Posted December 2, 2009 Share Posted December 2, 2009 Have you really tried it? It's easy.. here is an example: $pass = InputBox("Wait...","Insert password, Password = aaa","","*") If $pass <> "aaa" Then Exit MsgBox(0,"Yeah","correct password") Hi ;) Link to comment Share on other sites More sharing options...
spudw2k Posted December 2, 2009 Share Posted December 2, 2009 (edited) Have you really tried it? It's easy.. here is an example: $pass = InputBox("Wait...","Insert password, Password = aaa","","*") If $pass <> "aaa" Then Exit MsgBox(0,"Yeah","correct password") Yea, works great if you don't mind insecure unsecure cleartext passwords. I recommend using a hashing algorithm instead. http://www.autoitscript.com/forum/index.php?showtopic=76976 #include "sha1.au3" $pwd = _SHA1(InputBox("Wait...","Insert password.","My Secret Password. For your eyes only.","*")) If $pwd <> "0xCD9FADB53A246C59501F7F966524ADC710A25F86" Then Exit MsgBox(0,"Yeah","correct password") edit: things are unsecure people are insecure. Edited December 3, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now