Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Putting Extra passwords at logon


  • Please log in to reply
1 reply to this topic
Xatmo97
  • Members
  • 39 posts
  • Last active: May 25 2015 08:10 AM
  • Joined: 11 Dec 2008
i cant seem to get the second variable to read
when you get to the

question1:
MsgBox, The First password is %ispassright% The second password is %passright%

;Password Protection Program: Xatmo97
#Persistent
OnExit, Exit
RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, passwordstart, C:\Hello.exe 
start:
settitlematchmode, 3 
settimer, password 
settimer, stoptaskman 
settimer, noexplorer
return

   

password:
Process, Close, explorer.exe
MsgBox, This Computer is password Protected
IfExist, C:\password.txt
{InputBox, password, Enter Password 1, , hide 
FileReadLine, ispassright, C:\password.txt, 1
if Password = %ispassright% 
{ 
   Goto, 2
}
else
{
MsgBox, wrong password
Goto, question1 
}
}
else
{InputBox, passcreate, Select Password, Please Enter What password#1 Will be., HIDE 
FileAppend, %passcreate%, C:\password.txt 
Goto, 2 
}
return

2:
IfExist, C:\password2.txt
{InputBox, password, Enter Password 2, , hide 
FileReadLine, passright, C:\password2.txt, 1
if Password = %passright% 
{ 
   Goto, end
}
else
{
MsgBox, wrong password
Goto, start 
}
}
else
{InputBox, passcreate, Select Password, Please Enter What password#2 Will be., HIDE 
FileAppend, %passcreate%, C:\password2.txt 
Goto, question 
}
return

question:
InputBox, questionmake, Enter Your secrity question, , hide
FileAppend, %questionmake%, C:\Question.txt
InputBox, answermake, Enter The Answer to the question, , hide
FileAppend, %answermake%, C:\Answer.txt
Goto, start

question1:
MsgBox, If you forgot you password here is the security Question
FileReadLine,  questionmake, C:\Question.txt, 1
MsgBox, %questionmake%
InputBox, answermake1, Enter The Answer, , hide
FileReadLine, answermake, C:\Answer.txt, 1
if answermake1 = %answermake%
{
MsgBox, The First password is %ispassright% The second password is %passright% 
Goto, start
}
else
{
MsgBox, Wrong answer 
Goto, start
}
return

stoptaskman:
IfWinExist, Windows Task Manager
{                                 
winClose, Windows Task Manager   
}  
return 

noexplorer:
Process, Exist, explorer.exe    
Process, Close, explorer.exe
return


end: 
ExitApp 

Exit:
Run, explorer.exe                       
ExitApp



Xatmo97
  • Members
  • 39 posts
  • Last active: May 25 2015 08:10 AM
  • Joined: 11 Dec 2008
NVM i got it all working with this

;Password Protection Program: Xatmo97
#Persistent
OnExit, Exit
RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, passwordstart, C:\Hello.exe 
start:
settitlematchmode, 3 
settimer, password 
settimer, stoptaskman 
settimer, noexplorer
return

   

password:
Process, Close, explorer.exe
MsgBox, This Computer is password Protected
IfExist, C:\password.txt
{InputBox, password, Enter Password 1, , hide 
FileReadLine, ispassright, C:\password.txt, 1
if Password = %ispassright% 
{ 
   Goto, 2
}
else
{
MsgBox, wrong password
Goto, question1 
}
}
else
{InputBox, passcreate, Select Password, Please Enter What password#1 Will be., HIDE 
FileAppend, %passcreate%, C:\password.txt 
Goto, 2 
}
return

2:
IfExist, C:\password2.txt
{InputBox, password, Enter Password 2, , hide 
FileReadLine, passright, C:\password2.txt, 1
if Password = %passright% 
{ 
   Goto, end
}
else
{
MsgBox, wrong password
Goto, start 
}
}
else
{InputBox, passcreate, Select Password, Please Enter What password#2 Will be., HIDE 
FileAppend, %passcreate%, C:\password2.txt 
Goto, question 
}
return

question:
InputBox, questionmake, Enter Your secrity question, , 
FileAppend, %questionmake%, C:\Question.txt
InputBox, answermake, Enter The Answer to the question, , 
FileAppend, %answermake%, C:\Answer.txt
InputBox, questionmake2, Enter Your secrity question#2, ,
FileAppend, %questionmake2%, C:\Question2.txt
InputBox, answermake2, Enter The Answer to question#2, ,
FileAppend, %answermake2%, C:\Answer2.txt
Goto, start

question1:
MsgBox, If you forgot you password here is the security Question
FileReadLine,  questionmake, C:\Question.txt, 1
MsgBox, %questionmake%
InputBox, answermake1, Enter The Answer, , 
FileReadLine, answermake, C:\Answer.txt, 1
if answermake1 = %answermake%
{
MsgBox, The First password is %ispassright%  
Goto, question2
}
else
{
MsgBox, Wrong Answer 
Goto, start
}
return

question2:
FileReadLine,  questionmake2, C:\Question2.txt, 1
MsgBox, %questionmake2%
InputBox, answermake2, Enter The Answer to question#2, ,
FileReadLine, answermake2, C:\Answer2.txt, 1
if answermake2 = %answermake2%
{
FileReadLine, passright, C:\password2.txt, 1
MsgBox, The second password is %passright%
}
else
{
MsgBox, Wrong Answer
Goto, start
}
return

stoptaskman:
IfWinExist, Windows Task Manager
{                                 
winClose, Windows Task Manager   
}  
return 

noexplorer:
Process, Exist, explorer.exe    
Process, Close, explorer.exe
return


end: 
ExitApp 

Exit:
Run, explorer.exe                       
ExitApp