Decoy login call file issue

January 20, 2012 at 18:44:07
Specs: Windows 7 Ultimate
What we have below is a batch file ment to look like the normal CMD window as if the user opened the windows by clicking on CMD.exe and not the batch file. I have tried and cannot get it to work though. Sure it looks like my PROMPT window exactly but id like it to work like it to. The purpase of this is so that the decoy could allow the user access to what ever id like this to guard but if by chance someone got on that thought it was a REAL cmd prompt and tried entering commands then it could continue to function as a normal CMD window till it was either closed or the magic word (password) was entered, in the this case, LETMEIN

@echo off
SetLocal EnableDelayedExpansion

SET decoypass=
ECHO Microsoft Windows [Version 6.1.7601]
ECHO Copyright (c) 2009 Microsoft Corporation. All rights reserved.
SET /P decoypass=!windir!\System32^>
IF /i "!decoypass!"=="letmein" GOTO accessgranted

Echo '!decoypass!' is not recognized as an internal or external command,
Echo operable program or batch file.

cd "!windir!\System32"
SET /P decoypass=!windir!\System32^>
IF EXIST !decoypass!.exe CLS & CALL !decoypass!
IF /i "!decoypass!"=="letmein" GOTO accessgranted
IF NOT "!decoypass!"=="letmein" GOTO er1

echo works

See More: Decoy login call file issue

Report •

March 21, 2012 at 12:28:45
what is the limited stuff you want to do?
you could write your own setup to give the user access to certain things. In theory this

@echo off

set sneakyprompt=

rem sets the fake prompt up
set /p sneakyprompt=C:\

rem sets up the bypass command to open an actual cmd prompt
if %sneakyprompt% equ letmein start cmd.exe

rem a couple of basic commands, more are possible of course
if %sneakyprompt% equ cls cls && goto SECRETBEGIN
if %sneakyprompt% equ dir dir && goto SECRETBEGIN
if %sneakyprompt% equ exit goto eof

rem if the command isnt recognized returns to secretbegin
Echo %sneakyprompt% is not recognized as an internal or external command,


this worked fine for me, kinda fun too, you could in theory set it up to do whatever commands you want. Let me know if there are more you want.


Report •

March 21, 2012 at 13:08:20
Thnk GOSH! Someone replied.

MIKE, I originally was making this for a multipurpose batch file. I made a work messenger here:

And I wanted to make the decoy login to the batch file look more legit and actually work.

After that I had planned to ad a OS auto detect so that the decoy login would change for which ever system the batch was running on. THEN I would add OS specific commands for example some of the programs in the OS are present throughout the series of OS release but have different settings and switches.

Report •

March 21, 2012 at 14:33:22
Looking at the original scripting

SET /P RLESE=C:\Documents and Settings\!USERNAME!^>
IF /i "!RLESE!"=="letmein" GOTO handle
) ELSE (
Call :NewLabel

rem this next line should let people go ahead and use cmd?
IF NOT "!RLESE!"=="-" CLS & goto eof & CALL CMD.exe
rem so it looks like its already set up?
rem unless of course you want to do something different


Report •

Related Solutions

Ask Question