Page 1 of 1 1
Topic Options
#110567 - 2003-12-18 08:15 AM Detect a file being used
Jeroen Offline
Starting to like KiXtart

Registered: 2001-08-16
Posts: 180
Loc: Netherlands
Hi all,

After searching here and there for a solution, I turn to you at our company, several users were using an illegal software package. We have been able to detect and remove it from the workstations and servers, but are now receiving signals that a couple of users have brought the software with them on CD, and run it from there.

To filter out these last ones, I would like to be able to detect certain files being used on a system. Say for example if a user brings along a CDROM from which he runs a program, and the program is designed to always open a file called PROGRAM.INI. How would I be able to detect this file being opened on a system?

Any help is appreciated!

I have thought about creating my own extra.dat so that the virusscanner will detect this program as a virus, but that would require finding out how these extra.dat files need to be made, so I'm hoping for another solution.
_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.

Top
#110568 - 2003-12-18 09:54 AM Re: Detect a file being used
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
The best way to deal with this is via your companies terms and conditions of employment.
Bringing in illegal software should be categorised as gross misconduct, and these individuals should given a written warning or dismissed - that will deter this type of activity.

Other than that, probably the easiest check you can make is to poll the process list every 5 or 10 minutes and look to see if the program is running.

You might be able to use the file system object (fso) to get alerts when a file is opened, but to be honest the anti-virus products already slow things down enough.

Top
#110569 - 2003-12-18 11:54 AM Re: Detect a file being used
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
yea... if you are running win2k, you can put in a 'Do Not Run' entry in the registry with a list of all the exes you want to block

additionally, another method that works is a process kill app that looks for a specific process, kills it, sleeps for a few seconds, and loops.

write that up as a seperate script, and have your logonscript spin that off in a hidden console or run it with wkix32

Code:

$=setconsole("Hidden")
while 1
$=enumprocess('processname.exe',1)
sleep 3
loop
function enumprocess()
...
endfunction

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


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

Who's Online
0 registered and 640 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.053 seconds in which 0.025 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