What does this Network Script do..???

SuPeRzSaVeR

Junior Member
Oct 15, 2001
16
0
0
Here at work there was this script recently installed on my computer that starts up whenever my computer turns on. They recently upgraded to a new email server and a file server and I am wondering if this may be the culprit.

What is this script doing to my PC?


Here is the script:

@ECHO OFF
VER|FIND "XP">NUL
IF NOT ERRORLEVEL 1 GOTO WinXP
VER|FIND "2000">NUL
IF NOT ERRORLEVEL 1 GOTO Win2K
VER|FIND "NT">NUL
IF NOT ERRORLEVEL 1 GOTO WinNT
VER|FIND "98">NUL
IF NOT ERRORLEVEL 1 GOTO Win98
VER|FIND "95">NUL
IF NOT ERRORLEVEL 1 GOTO Win95
GOTO BADOS

:WinXP
ECHO "WinXP"
goto ZeSync

:Win2K
ECHO "Win2K"
goto ZeSync

:WinNT
ECHO "WinNT"
goto ZeSync

:Win98
ECHO "Win98"
rem $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
@echo off
if /==%1/ goto Begin
echo Sets COMPUTERNAME and USERNAME variable. (Requires WSH 1.0+)
echo.
echo [CALL] WSHName
for %%X in (echo. goto:End) do %%X
:Begin ------------------------------------------------------------
ver | FIND "98" | if errorlevel 1 for %%X in (echo goto:End) do %%X Windows 98+ required.
echo>%TEMP%.\~tmp.vbs Set oNet = CreateObject("WScript.Network")
echo>>%TEMP%.\~tmp.vbs Set oFs = CreateObject("Scripting.FileSystemObject")
echo>>%TEMP%.\~tmp.vbs Set Tmpbat = oFs.CreateTextFile("%TEMP%.\~tmp.bat", True)
echo>>%TEMP%.\~tmp.vbs Tmpbat.WriteLine "set COMPUTERNAME=" & oNet.ComputerName
echo>>%TEMP%.\~tmp.vbs Tmpbat.WriteLine "set USERNAME=" & oNet.UserName
echo>>%TEMP%.\~tmp.vbs Tmpbat.Close
CSCRIPT //Nologo //I %TEMP%.\~tmp.vbs
for %%X in (%TEMP%.\~tmp.bat del) do call %%X %TEMP%.\~tmp.*
echo %USERNAME%
rem $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
GOTO ZeSync

:Win95
ECHO "Win95"
GOTO END

:ZeSync
rem -----------------------------------------------------------------------------------------------
echo "Synchronization of user's loginscript begins..."
echo "Hello, you are %USERNAME%"
echo "We test your connection with your file server"
sleep 3
rsync 172.20.128.1::loginscript >NUL:
IF ERRORLEVEL 1 GOTO PASDESERVEUR
echo "Connection established with fileserver"
C:
cd \SuperSync
sleep 2
rsync -avu --delete --include "login_%USERNAME%.bat" --exclude "*" 172.20.128.1::loginscript ./
sleep 3
call login_%USERNAME%.bat
IF EXIST "P:\MAJ\MASTER_MAJ.BAT" (call "P:\MAJ\MASTER_MAJ.BAT")
GOTO FIN
:pASDESERVEUR
echo "Unable to establish connection with the file server !!!!"
:FIN
echo "Login Script ended... !!!"
GOTO END
rem -----------------------------------------------------------------------------------------------


:BADOS
ECHO "This OS is not supported"
GOTO END

:END
 

InlineFive

Diamond Member
Sep 20, 2003
9,599
2
0
I can't help you with this question direcly. However I can say that you should consider posting this in Operating Systems as lots of admins reside there.
 

netsysadmin

Senior member
Feb 17, 2002
458
0
0
Well the first part is looking for what OS the machine is running then it starts ZeSync which seems to be a Linux based syncing program. Looks like they are using to sync the scripts to the local machines.

John
 

Buzzman151

Golden Member
Apr 17, 2001
1,455
0
0
looks to me like a login script which could tie into giving your permission to network drives



<-------- W333337!!!!! MY 1337 POST :D :D :D :D