elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 09:17  


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [Perl] Funcion killprocess()
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] Funcion killprocess()  (Leído 149 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Perl] Funcion killprocess()
« en: 11 Octubre 2011, 18:09 »

Hola a todos , aca les traigo un funcion para cerrar el proceso que odien marcando el nombre y el pid

Código
use Win32::Process;
 
sub killprocess {
 
my ($numb,$pid) = @_;
 
if (Win32::Process::KillProcess($pid,$numb)) {
return true;
} else {
return false;
}
}

Ejemplo de uso


Código
if (killprocess("deamon.exe","4052")) {
print "chau\n\a";
}
 


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Funcion Ip Publica [Perl]
Scripting
isseu 2 1,239 Último mensaje 8 Mayo 2010, 00:17
por Leo Gutiérrez.
[Perl] Funcion Speak()
Scripting
Doddy 0 150 Último mensaje 10 Octubre 2011, 16:51
por Doddy
[Perl] Funcion wormer()
Scripting
Doddy 0 105 Último mensaje 10 Octubre 2011, 16:51
por Doddy
[Perl] Funcion writeword()
Scripting
Doddy 0 154 Último mensaje 10 Octubre 2011, 16:52
por Doddy
[Perl] Funcion movewin()
Scripting
Doddy 0 115 Último mensaje 11 Octubre 2011, 18:08
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines