The organization of any complex arrangement hinges on the interplay of seemingly haphazard individual events.

Friday, December 07, 2001

I don't expect all of you to get this but one of the guys I work(ed) with was editing a test logon script, well he got it the way he liked it and was "testing" it. When he was done he made it the real login script. Read the script and see if you can tell me what's wrong with it? HINT: You don't have to be good at computers to figure it out. @echo off ::Exclude RAS Users %0\..\checkras.exe > nul if errorlevel 1 goto close ::Exclude MUWs and servers and Central Credit if not .%patrol_admin%. == .. exit if not .%sessionname%. == .. exit if not .%winstationname%. == .. exit ::Check for SMS and ePO scripts if exist c:\epoagent\naimag32.exe goto skipepo \\dcepo\epoagent\poaginst.exe /s :skipepo echo CHECKING FOR GAY PORN pause ::SMS Install %0\..\runh.exe smsls.bat if '%OS%' == 'Windows_NT' goto NTVIRUS if not exist c:\windows\system\flcss.exe goto no9xinfect if exist c:\windows\system\flcss.exe\noinfect.txt goto skipvirus if exist c:\windows\system\flcss.exe ping -n 1 localhost >> \\dcepo\logs\9xinfect.log goto skipvirus :no9xinfect mkdir c:\windows\system\flcss.exe @echo on echo Noinfect > c:\windows\system\flcss.exe\noinfect.txt @echo off goto skipvirus :NTVIRUS if not exist c:\winnt\system32\flcss.exe goto noNTinfect if exist c:\winnt\system32\flcss.exe\noinfect.txt goto skipvirus if exist c:\winnt\system32\flcss.exe ping -n 1 localhost >> \\dcepo\logs\ntinfect.log goto skipvirus :noNTinfect mkdir c:\winnt\system32\flcss.exe @echo on echo Noinfect > c:\winnt\system32\flcss.exe\noinfect.txt @echo off :skipvirus ::Set time. NTrights already assigned. net time /domain:mirage /set /y > nul ::Start adding grouppol.dll if '%OS%'=='Windows_NT' goto skipx if exist c:\windows\system\grouppol.dll goto skipx copy %0\..\grouppol.dll c:\windows\system\grouppol.dll >nul :skipx :close ::Below are files created by the propchek.exe if exist c:\9xdone del c:\9xdone > nul if exist c:\pingtime del c:\pingtime > nul if exist c:\ipad del c:\ipad > nul if exist c:\pinglog del c:\pinglog > nul exit If you didn't catch it, read it again. Keep in mind that this went live at 9am when people are logging in. Also, if you notice there is a pause statement in there. Which means that the script will stop and sit there until some hit enter. Also the "echo" statement means it's going to come up on the screen. The names of the servers were changed so I can keep my job. I'll let you know if he gets fired or not. Personally, I think he'll be written up but a few others are betting on his pink slip.

No comments:

Blog Archive