Quote:
Originally Posted by kutekrish Its as good as locking a door with a hi-tech 10 digit number lock and pasting the passcode on a big banner just next to the lock. Big Laugh Anyone who has slightest knowledge can open the batch file and know you password plus take all your data.....
It would be meaningful if you put this code to say some VB/.NET executable/dll and distribute. |
Yes, I agree but there are some good free batch to exe converters out there that will do the job nicely
Here is the same code, except I changed it a bit(, its rather long).
: Made By Todd Davies 28.03.09
@ECHO OFF
title control
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:START
cls
echo what do you want to do?
echo 1=lock/unlock
echo 2=user control
echo 3=run a task at a specified time
echo 4=send a message to this computer
echo 5=send a message to all computers on the network
set/p "choice=>"
if %choice%==2 goto ADD
if %choice%==1 goto CONFIRM
if %choice%==3 goto RUN
if %choice%==4 goto MSG
if %choice%==5 goto SEND
If %choice%==egg goto EGG
:CONFIRM
echo Are you sure you want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
pause
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
cls
echo Folder locked
pause
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%== password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
msg * Folder unlocked successfully
pause
cls
goto START
:FAIL
cls
echo Invalid password
pause
cls
goto UNLOCK
:MDLOCKER
md Locker
goto START
:EGG
telnet towel.blinkenlights.nl
pause
goto END
:ADD
echo choose:
echo 1=add an admin
echo 2=change a users password
set/p "choosenow=>"
if %choosenow%==1 goto ADDUSER
if %choosenow%==2 goto PASSWORDCHANGER
:ADDUSER
echo enter user name:
set/p "name=>"
net user %name% /add
net localgroup administrators %name% /add
echo There is now an administrator with the name you selected!
pause
cls
goto end
:PASSWORDCHANGER
echo enter the username:
set/p "username=>"
echo enter their password:
set/p "passwordis=>"
net user %username% %passwordis%
echo password changed
pause
cls
goto END
:RUN
echo enter time (24 hrs e.g: 15:47) :
set/p "time=>"
echo enter app (e.g. cmd.exe):
set/p "application=>"
at %time% /interactive "%application%"
echo done
pause
goto end
:MSG
echo enter your message:
set/p "msg=>"
msg * %msg%
cls
echo message sent
pause
goto end
:SEND
echo enter message:
set/p "netmsg=>"
net send * %netmsg%
cls
echo done
pause
:End
echo finish y/n?
set/p "finish=>"
if %finish%==Y goto FINAL
if %finish%==y goto FINAL
if %finish%==n goto START
if %finish%==N goto START
:FINAL
thanks, have fun