Page 2 of 2 <12
Topic Options
#145399 - 2005-09-22 07:14 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I doubt it, but it is possible. I haven't used it since Les found the 'not free for corporate use clause'
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#145400 - 2005-09-23 12:24 AM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
2manyhats Offline
Fresh Scripter

Registered: 2005-09-07
Posts: 33
Actually I do have code that uses goto's for version 1.4 and it works quite well but of course needs to be more efficient. Some of the switches have changed (minor changes). I have a bad habit of not declaring variables so it's not clean but it works. Tonight I will post what I use for ver 1.4 which also accomidates the new "XP 64 bit edition" 32 bit application install path of "Program Files (x86)" instead of the standard "Program Files" directory. Separately I will start a new post with the code that I put in this post. I tried to rework scriptdudes code for version 1.3 pretty much as a learning exercise to see if I could properly convert a goto script to something a little more professional. I am also a goto junkie . Thanks all.

Kevin

Top
#145401 - 2005-09-23 04:45 AM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Shaba1 Offline
Fresh Scripter

Registered: 2005-08-20
Posts: 44
2manyhats;
I would appreciate being kept abreast of your progress. I DESPERATELY need to have Spybot 1.4 installed on my network. If you change to a thread please use spybot in the title so I can search for it.

Top
#145402 - 2005-09-23 09:16 AM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Shaba1

Please be forwarned that using Spybot in a business without a license it not legal.

Top
#145403 - 2005-09-23 06:56 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
2manyhats Offline
Fresh Scripter

Registered: 2005-09-07
Posts: 33
My understanding is that only the autoupdate network feature was not free. Hmm, I could be wrong.
Top
#145404 - 2005-09-23 07:10 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
2manyhats Offline
Fresh Scripter

Registered: 2005-09-07
Posts: 33
Kind of grey but listed below is what is on the site. Guess it depends on the legal interpretation of individual use.


II.e. Corporate use
As companies are not individual persons and would have problems fullfilling the above terms, there is a license for corporate users that can be found at safer-networking.ie.

Top
#145405 - 2005-10-24 10:05 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Scriptodude Offline
Fresh Scripter

Registered: 2005-04-22
Posts: 26
Quote:

Kind of grey but listed below is what is on the site. Guess it depends on the legal interpretation of individual use.


II.e. Corporate use
As companies are not individual persons and would have problems fullfilling the above terms, there is a license for corporate users that can be found at safer-networking.ie.




Technically corporate individuals that are using Spybot are not doing anything illegal because for some reason the "II.e. Corporate use" policy is not included in the 1.3 or 1.4 execuatable program. I may be wrong but from my point of view the aggreement is with the license included in the piece of software that I am installing on the system not the aggreement on the website. I have not heard a reason as to why they did not include this policy in the 1.4 license aggreement release.

Top
#145406 - 2005-10-24 10:20 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Scriptodude Offline
Fresh Scripter

Registered: 2005-04-22
Posts: 26
[EDITED By NTDOC to remove long lines]


UPDATED WEEKLY SCAN SCRIPT!!!!!!!!!!!

Code:
 
:start

$nul = ""
$PCNAME = @WKSTA
$NTEventSource = "KiXtart"
$SpybotExists = EXIST("%PROGRAMFILES%\Spybot - Search & Destroy\spybotsd.exe")
$SpybotVer = GetFileVersion("%PROGRAMFILES%\Spybot - Search & Destroy\spybotsd.exe", "ProductVersion")
$install = "Spybot\spybotsd14.exe /verysilent /noicons"


COPY ".\PSKILL.EXE" "C:\"
$process = 'teatimer','180ax','a','actalert','adaware','alchem','alevir','aqadcup','arr','arupdate','asm','av',+
'avserve','avserve2','autoupdate','backweb','bargains','basfipm','belt','biprep','blss','bokja','bootconf','bpc',+
'brasil','bridge','bugsfix','bundle','bvt','cashback','cfd','cmd32','CMEsys','CMEupd','conime','conscorr',+
'datemanager','dcomx','directs','divx','dllreg','dmserver','dpi','dpps2','dssagent','dvdkeyauth','ebatesmoemoneymaker',+
'emsw','exdl','exec','explore','explored','fash','fntldr','fs_4104','fvprotect','game','gator','GMT','goidr','hbinst',+
'hbsrv','hxdl','hxiul','iedll','iedriver','iehost','iexplorer','infus','infwin','intdel','intdel_2','isass',+
'istsvc','jawa32','jdbgmrg','kazza','keenvalue','kernel32','lass','launcher','loader','lssas','mapisvc32',+
'mario','md','mfin32','mmod','mostat','msapp','msbb','msblast','mscache','msccn32','mscman','msdm','msgfix',+
'msiexec16','msinfo','mslagent','mslaugh','msmc','msmgt','msmsgri32','msn','msrexe','mssvc32','mssys','msvxd',+
'mwsoemon','mwsvm','netd32','nls','nssys32','nstask32','nsupdate','omniscient','onsrvr','optimize','p2p',+
'networking','patch','pcsvc','pgmonitr','pib','powerscan','Precisiontime','precpop2','prizesurfer','prmt',+
'prmvr','ray','rb32','rcsync','run32dll','rundll','rundll16','ruxdll32','saap','sahagent','sais','save',+
'savenow','sc','scam32','scrsvr','scvhost','searchupgrader','service','showbehind','slmss','soap','spoler',+
'spoolsvv','spyhunter','srng','start','stcloader','support','svc','svchosts','svshost','sync','system',+
'system32','tb_setup','teekids','trickler','tsadbot','tvm','tvmd','tvtmd','update','updatestats','updmgr',+
'uptodate','viewmgr','virtualbouncer','vvsn','wast','weather','web','webdav','webrebates','webrebates0',+
'win_upd2','win32','win32us','winactive'winad','winadtools','win-bugsfix','windirect','windows','wingo',+
'wininetd','wininit','winlock','winlogin','winmain','winnet','winppr32','winratchet'winservn','winssk32',+
'winstart','winstart001','wintime','wintsk32','winupdate','winxp','wjview'wmon32','wnad','wo','wovax','wsup',+
'wtoolsa','wtoolss','wuamgrd','wupdate','wupdater','wupdmgr','wupdt','y','ytrckrbr'
For each $proc in $process
SHELL "C:\pskill $proc.exe" ;Kills a long list of the most common malware processes if they are running!
Next
DEL "c:\pskill.exe"

SELECT

CASE $SpybotExists = 1 and $SpybotVer >= "1, 4" ;If Spybot 1.4 is already installed rename the old fixes log
IF EXIST("%ALLUSERSPROFILE%\Application Data\Spybot - Search & Destroy\logs\fixe*.txt")
MOVE "%ALLUSERSPROFILE%\Application Data\Spybot - Search & Destroy\logs\fixe*.txt"
"%ALLUSERSPROFILE%\Application Data\Spybot - Search & Destroy\logs\fixe*.old"
ENDIF

CASE $SpybotExists = 1 and $SpybotVer >= "1, 3"
SHELL $install ;Run Spybot 1.4 install silently and do not create shortcut icons!
IF @ERROR <> 0
$err = @ERROR
$serr = @SERROR
OPEN (1, ".\Spybot\Spybot14_failed.log", 5)
WRITELINE (1, @DATE + " " + @TIME + " Spybot v1.4 failed to install on " + $PCNAME +
" with error code " + $err + " " + $serr + @CRLF)
CLOSE(1)
ENDIF

CASE $SpybotExists = 1 and $SpybotVer < "1, 3"
OPEN (1, ".\Spybot\Spybot_OldVer.log", 5)
WRITELINE (1, @DATE + " " + @TIME + " An older version of Spybot is installed on " + $PCNAME + @CRLF)
CLOSE(1)
exit

CASE other
SHELL $install ;Run Spybot 1.4 install silently and do not create shortcut icons!
IF @ERROR <> 0
$err = @ERROR
$serr = @SERROR
OPEN (1, ".\Spybot\Spybot14_failed.log", 5)
WRITELINE (1, @DATE + " " + @TIME + " Spybot v1.4 failed to install on " + $PCNAME +
" with error code " + $err + " " + $serr + @CRLF)
CLOSE(1)
ENDIF


ENDSELECT


MD "%ALLUSERSPROFILE%\Application Data\Spybot - Search & Destroy\logs"
;Logs directory must be created manually for silent installs. Normally this directory is created when Spybot
;is ran and an update is done from within the program!
COPY ".\Spybot\SPYBOT\Excludes\*.*" "%ALLUSERSPROFILE%\Application Data\Spybot - Search & Destroy\Excludes" /c /h /r /s
;Copy exclude files to prevent Spybot from removing some needed Apropos entries!
COPY ".\Spybot\SPYBOT\config\configuration.ini" "%ALLUSERSPROFILE%\Application Data\Spybot - Search & Destroy" /c /h /r /s
;Copy the config file to set running priority!

SHELL "C:\Program Files\Spybot - Search & Destroy\spybotsd.exe /taskbarhide /autoupdate /autoclose"
;Run a silent autoupdate and then close the program!
IF @ERROR <> 0
$err = @ERROR
$serr = @SERROR
OPEN (1, ".\Spybot\Spybot14_UpdateFail.log", 5)
WRITELINE (1, @DATE + " " + @TIME + " Spybot v1.4 failed to update definitions on " + $PCNAME +
" with error code " + $err + " " + $serr + @CRLF)
CLOSE(1)
ENDIF



SHELL "C:\Program Files\Spybot - Search & Destroy\spybotsd.exe /taskbarhide /autocheck /autofix /autoclose"
;Run a silent check, fix any problems found and then close the program!
IF @ERROR <> 0
$err = @ERROR
$serr = @SERROR
OPEN (1, ".\Spybot\Spybot14_UpdateFail.log", 5)
WRITELINE (1, @DATE + " " + @TIME + " Spybot v1.4 failed to update definitions on " + $PCNAME +
" with error code " + $err + " " + $serr + @CRLF)
CLOSE(1)
ELSE
$RunOnce = DelValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "SpybotSnD")
;remove the value to run Spybot at next reboot one time because most of the users in the domain do
;not have local admin priv.
$Filename = Dir("%AllUSERSPROFILE%\Application Data\Spybot - Search & Destroy\logs\Fixes*.txt")
;set variable for the fix log.
COPY "%AllUSERSPROFILE%\Application Data\Spybot - Search & Destroy\logs\$Filename"
".\Spybot\Weekly\@WKSTA_@YDAYNO.log"
;Copy the fixes log to smslogs weekly folder.
LOGEVENT( 4 , 1001 , "Spybot has scanned and removed spyware on this computer!" , "$PCNAME", "$NTEventSource")
;Log an event in the application log.
OPEN (1, ".\Spybot\Spybot14_Scan.log", 5)
WRITELINE (1, @DATE + " " + @TIME + " Spybot 1.4 has scanned and fixed spyware on " +
$PCNAME + chr(13) + chr(10))
CLOSE(1)
ENDIF

:end
Exit




Server paths' removed for obvious reasons......


Edited by NTDOC (2005-10-24 11:59 PM)

Top
#145407 - 2005-10-24 10:44 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Sweet.
But can you PLEASE break those d#mn long lines
I got a 20" TFT here and must scroll like 5 screens to the right if I want to see the end of some lines Imagine what it's like on a regular 17" CRT


Edited by Mart (2005-10-24 10:50 PM)

Top
#145408 - 2005-10-25 06:44 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Scriptodude Offline
Fresh Scripter

Registered: 2005-04-22
Posts: 26
Sorry about that Mart and thx for adding the breaks DOC!
Top
#145409 - 2005-10-25 07:04 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Scriptodude Offline
Fresh Scripter

Registered: 2005-04-22
Posts: 26
Forgot to add one thing when I posted the updated script for 1.4. When ran on a system silently the Spybot 1.4 setup automatically reboots the system once the install is complete. I have not been able to find a solution for this problem(I am assuming the reboot was added to help deter corporate use). If you have the option of pushing the software at night this is not really a big deal but I am not that fortunate.
Top
#145410 - 2005-10-26 05:28 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Maybe the reboot is there to install an in-use file or otherwise activate a change? Monitor the install via file or registry monitoring tool, it'll tell you what necessitates the reboot.
_________________________
There are two types of vessels, submarines and targets.

Top
#145411 - 2006-01-24 04:32 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
kixarse Offline
Lurker

Registered: 2005-12-23
Posts: 4
Quote:

Quote:

Kind of grey but listed below is what is on the site. Guess it depends on the legal interpretation of individual use.


II.e. Corporate use
As companies are not individual persons and would have problems fullfilling the above terms, there is a license for corporate users that can be found at safer-networking.ie.




Technically corporate individuals that are using Spybot are not doing anything illegal because for some reason the "II.e. Corporate use" policy is not included in the 1.3 or 1.4 execuatable program. I may be wrong but from my point of view the aggreement is with the license included in the piece of software that I am installing on the system not the aggreement on the website. I have not heard a reason as to why they did not include this policy in the 1.4 license aggreement release.




You are considered a corporate user because of your affiliation and reason for use within a corporate environment and thus is illegal according to the lic. The way you state is more that your a corporate user because of your work environment but use it at home as a consumer.

Top
#145412 - 2006-06-24 09:07 AM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Recently ran accross this image for SpyBot.

 

 

Top
#145413 - 2006-06-24 03:34 PM Re: Weekly Spybot scan using KIX script!!!!!!!!!!!!!!!!!!!!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, japanese finally found it.

did you pick up this old thread just for this?
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.075 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org