Log on batch script code in the making...need a little help
Posted: 21 Oct 2010 17:09
ok so ive been working on this for a few days...I just found one of the things that I needed today and that was how to hide/show task manager...lol pretty cool cuz it actually worked!!! thru commad prompt...i was very impressed..lol but anyway back on topic.
I want to be able to encrypt my batch file at a specific point so that it hides my password and user name when logged on. I have this in the startup folder so its kind of like a double log on cuz my friends like to try to hack my computer so i have to always change my password...but ya ive gotten this far so far...its pretty simple since I don't really kno that much about scripting...just little things here and there that I picked up thts about it but yea here it is.
@echo off
taskkill /IM explorer.exe /f
ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >> %WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg
:confirm
cls
Title Secure File Access Zone
ECHO [SECURE FILE ACCESS ZONE]
echo.
echo WELCOME TO SECURE PROGRAMMABLE EXECUTABLE DISK
echo version 2.3 beta
echo.
echo.
echo.
echo Would you like to log on to your computer?? (y/n)
set /p "cho=Y/N: "
if %cho%==y goto yes
if %cho%==Y goto yes
if %cho%==n goto wow
if %cho%==N goto wow
echo invalid choice.
ping localhost >nul
cls
goto confirm
:yes
echo Would you like to access you file manager that you created? (y/n)
set /p "cho=Y/N: "
if %cho%==y goto derail
if %cho%==Y goto derail
if %cho%==n goto wow
if %cho%==N goto wow
echo invalid choice.
ping localhost >nul
cls
goto yes
:derail
echo Type your name and Security number to get access to your secret file.
echo.
set /p "name=Username: "
if %name%==kjkj007 goto ask1 ----------------------------------------------------->encrypt here
goto ask2
:ask1
cls
echo Type EXIT to quit
set /p number="Security number: "
if %number%==8552 goto command1 -----------------------------------------------> encrypt here
if %number%==exit goto quite2
if %number%== goto ask3
goto ask2
:ask2
cls
echo You are not allowed to view the secret document. Access denied!!!
echo.
echo Type EXIT to quit
set /p name="Username: "
if %name%==kjkj007 goto ask1 --------------------------------------------------------->I want to encrypt here
if %name%==exit goto quite2
goto ask3
:ask3
cls
echo You are shit outa luck mother **censored** cuz ur logged off
echo 1) I am so sorry please let me see the super secret files pretty please!!
echo 2) I dont **censored** care i just want **censored**
set /p number="Answer: "
if %number%==1 goto who
if %number%==2 goto who
goto :who
:who
cls
echo.
echo.
echo GOODBYE
ping localhost >nul
shutdown /f /l
goto quite2
:wow
goto quite2
:command1
ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:0 >> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:0 >> %WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg
cls
echo Welcome %Mr. SOLDIER BOY; Hansen%,
echo.
start explorer.exe
start explorer.exe
echo You've the following options:
echo (fd) facebook dolphin emu
echo (mw2) modern warfare 2
echo (dol) dolphin gamecube emulator
echo (cod4) Call of duty 4
echo (no) exit out of me please
echo.
set /p page="where do you want to go:"
if %page%==fd goto fd
if %page%==mw2 goto mw2
if %page%==dol goto dol
if %page%==cod4 goto cod4
if %page%==no goto quite
goto command1
:cod4
start C:\Users\Owner\Desktop\cod4
:fd
start http://www.facebook.com
start http://forums.dolphin-emu.com
goto quite
:mw2
start C:\Users\Owner\Desktop\iw4sp
goto quite
:dol
start C:\Users\Owner\Desktop\dolphin\R6205x64_SSE41\Dolphin.exe
goto quite
:quite
exit
:quite2
shutdown /f /l
I would also like to kno if I could disable the cange password button when you press control alt delete....it would probably be another DWORD in the registry that would be created like the task manager command is.
thanx for your help !! just joined lol
I want to be able to encrypt my batch file at a specific point so that it hides my password and user name when logged on. I have this in the startup folder so its kind of like a double log on cuz my friends like to try to hack my computer so i have to always change my password...but ya ive gotten this far so far...its pretty simple since I don't really kno that much about scripting...just little things here and there that I picked up thts about it but yea here it is.
@echo off
taskkill /IM explorer.exe /f
ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >> %WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg
:confirm
cls
Title Secure File Access Zone
ECHO [SECURE FILE ACCESS ZONE]
echo.
echo WELCOME TO SECURE PROGRAMMABLE EXECUTABLE DISK
echo version 2.3 beta
echo.
echo.
echo.
echo Would you like to log on to your computer?? (y/n)
set /p "cho=Y/N: "
if %cho%==y goto yes
if %cho%==Y goto yes
if %cho%==n goto wow
if %cho%==N goto wow
echo invalid choice.
ping localhost >nul
cls
goto confirm
:yes
echo Would you like to access you file manager that you created? (y/n)
set /p "cho=Y/N: "
if %cho%==y goto derail
if %cho%==Y goto derail
if %cho%==n goto wow
if %cho%==N goto wow
echo invalid choice.
ping localhost >nul
cls
goto yes
:derail
echo Type your name and Security number to get access to your secret file.
echo.
set /p "name=Username: "
if %name%==kjkj007 goto ask1 ----------------------------------------------------->encrypt here
goto ask2
:ask1
cls
echo Type EXIT to quit
set /p number="Security number: "
if %number%==8552 goto command1 -----------------------------------------------> encrypt here
if %number%==exit goto quite2
if %number%== goto ask3
goto ask2
:ask2
cls
echo You are not allowed to view the secret document. Access denied!!!
echo.
echo Type EXIT to quit
set /p name="Username: "
if %name%==kjkj007 goto ask1 --------------------------------------------------------->I want to encrypt here
if %name%==exit goto quite2
goto ask3
:ask3
cls
echo You are shit outa luck mother **censored** cuz ur logged off
echo 1) I am so sorry please let me see the super secret files pretty please!!
echo 2) I dont **censored** care i just want **censored**
set /p number="Answer: "
if %number%==1 goto who
if %number%==2 goto who
goto :who
:who
cls
echo.
echo.
echo GOODBYE
ping localhost >nul
shutdown /f /l
goto quite2
:wow
goto quite2
:command1
ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:0 >> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:0 >> %WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg
cls
echo Welcome %Mr. SOLDIER BOY; Hansen%,
echo.
start explorer.exe
start explorer.exe
echo You've the following options:
echo (fd) facebook dolphin emu
echo (mw2) modern warfare 2
echo (dol) dolphin gamecube emulator
echo (cod4) Call of duty 4
echo (no) exit out of me please
echo.
set /p page="where do you want to go:"
if %page%==fd goto fd
if %page%==mw2 goto mw2
if %page%==dol goto dol
if %page%==cod4 goto cod4
if %page%==no goto quite
goto command1
:cod4
start C:\Users\Owner\Desktop\cod4
:fd
start http://www.facebook.com
start http://forums.dolphin-emu.com
goto quite
:mw2
start C:\Users\Owner\Desktop\iw4sp
goto quite
:dol
start C:\Users\Owner\Desktop\dolphin\R6205x64_SSE41\Dolphin.exe
goto quite
:quite
exit
:quite2
shutdown /f /l
I would also like to kno if I could disable the cange password button when you press control alt delete....it would probably be another DWORD in the registry that would be created like the task manager command is.
thanx for your help !! just joined lol