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
ASDESERVEUR
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
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |