#71246 - 2002-10-29 06:15 PM
hahahaha evil script
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
do not use this code unless you are immune to office politics.
Fill badapps with offensive apps at your desire, and call this run this script in a seperate process.
code:
$badapps=split("aim,aol,sol,freecell",",")
$=setconsole("hide") :check for $app =0 to ubound($badapps) $program=$badapps[$app]+".exe" $=findproc(@wksta,$program,1) next sleep 15 goto check
FUNCTION FindPROC($COMPUTER,$PROC,optional $terminate) dim $GetObject, $Select $GetObject="winmgmts:{impersonationLevel=impersonate}!//$COMPUTER" $select="select * from Win32_Process where Name='$PROC'" For each $Process in GetObject("$GetObject").ExecQuery("$select") if $terminate $Process.Terminate endif $FindPROC= $FindPROC+ " " +$Process.ProcessId Next ENDFUNCTION
|
|
Top
|
|
|
|
#71248 - 2002-10-29 07:07 PM
Re: hahahaha evil script
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#71250 - 2002-10-29 07:23 PM
Re: hahahaha evil script
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
Well, we have had issues with netscape also... specifically various versions having differences with enforcing proxy settings and such.
as I'm sure you are aware, this will not prevent someone from starting an application, but it certainly will prevent someone from using it, if it kills it every 15 or 30 seconds...
AD with GPO can handle this better, but I don't jave that available yet.
|
|
Top
|
|
|
|
#71252 - 2002-11-05 07:24 PM
Re: hahahaha evil script
|
Clancy
Fresh Scripter
Registered: 2002-08-26
Posts: 14
Loc: Reno, NV
|
This is such a classic script. Easily one of the most fun I've seen in a while!
|
|
Top
|
|
|
|
#71257 - 2002-11-21 07:32 PM
Re: hahahaha evil script
|
jhbell
Lurker
Registered: 2002-11-21
Posts: 1
Loc: Philadelphia
|
Does this script work on Win9X ? I tried but it does not seem to work, I hope I'm doing something wrong because I could sure use this bad boy. You see I work for a school district and everytime I remove the programs the kids just bring they in again. I'm slowly move to Xp but till thats here I need some way to stop the apps from running.
Thanks
|
|
Top
|
|
|
|
#71258 - 2002-11-21 07:35 PM
Re: hahahaha evil script
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
you need to have WMI installed... Beyond that, I'm not sure...
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 978 anonymous users online.
|
|
|