Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SET /P variable=Password :
- echo %variable%
- Pause
- @echo off
- :: GetPwd.cmd - Get password with no echo.
- <nul: set /p passwd=Password:
- for /f "delims=" %%i in ('cscript /nologo GetPwd.vbs') do set passwd=%%i
- echo.
- :: This bit's just to prove we have the password.
- echo %passwd%
- ' GetPwd.vbs - Get password with no echo then echo it. '
- Set oScriptPW = CreateObject("ScriptPW.Password")
- strPassword = oScriptPW.GetPassword()
- Wscript.StdOut.WriteLine strPassword
- C:Pax> GetPwd
- Password:
- this is my password
- C:Pax>
- regsvr32 scriptpw.dll
- ..
- echo Before you enter your password, make sure no-one is looking!
- set /P password=Password:
- cls
- echo Thanks, got that.
- ..
- cls
- @echo off
- TITLE CHECK CREDENTIALS
- goto menu
- :menu
- cls
- echo.
- echo ....................................
- echo ~Written by Cajun Wonder 4/1/2010~
- echo ....................................
- echo.
- @set /p un=What is your domain username?
- if "%un%"=="PUT-YOUR-DOMAIN-USERNAME-HERE" goto debugsupport
- if not "%un%"=="PUT-YOUR-DOMAIN-USERNAME-HERE" goto noaccess
- echo.
- :debugsupport
- "%SYSTEMROOT%system32runas" /netonly /user:PUT-YOUR-DOMAIN-NAME-HERE%un% "\PUT-YOUR-NETWORK-SHARE-PATH-HEREDebug Support.bat"
- @echo ACCESS GRANTED! LAUNCHING THE DEBUG UTILITIES....
- @ping -n 4 127.0.0.1 > NUL
- goto quit
- :noaccess
- cls
- @echo.
- @echo.
- @echo.
- @echo.
- @echo \\\\\\\\\\\\\\\\\\\
- @echo \ \
- @echo \ Insufficient privileges \
- @echo \ \
- @echo \ Call Cajun Wonder \
- @echo \ \
- @echo \ At \
- @echo \ \
- @echo \ 555-555-5555 \
- @echo \ \
- @echo \\\\\\\\\\\\\\\\\\\\
- @ping -n 4 127.0.0.1 > NUL
- goto quit
- @pause
- :quit
- @exit
- cls
- @echo off
- TITLE SUPPORT UTILITIES
- goto menu
- :menu
- cls
- @echo %username%
- echo.
- echo .....................................
- echo ~Written by Cajun Wonder 4/1/2010~
- echo .....................................
- echo.
- echo What do you want to do?
- echo.
- echo [1] Launch notepad
- echo.
- :choice
- set /P C=[Option]?
- if "%C%"=="1" goto notepad
- goto choice
- :notepad
- echo.
- @echo starting notepad....
- @ping -n 3 127.0.0.1 > NUL
- start notepad
- cls
- goto menu
Add Comment
Please, Sign In to add comment