elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a Git (Primera Parte)


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Perl] Destroyer Shells 0.4
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] Destroyer Shells 0.4  (Leído 1,524 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Perl] Destroyer Shells 0.4
« en: 30 Junio 2012, 01:38 am »

Version mejorada de este script para buscar y borrar shells.

Código
  1. #!usr/bin/perl
  2. #DestroyerShells 0.4
  3. #Coded By Doddy H
  4.  
  5. use File::Find;
  6.  
  7. my @nombres = (
  8.    "C99Shell",
  9.    "r57shell",
  10.    "DxShell",
  11.    "HiddenShell",
  12.    "~ Andr3a92 ~ Sh3ll ~",
  13.    "CShell",
  14.    "Dark Shell",
  15.    "GsC SheLL",
  16.    "N3fa5t1cA Sh3ll",
  17.    "ONBOOMSHELL",
  18.    "StAkeR ~ Shell",
  19.    "MoDDeD By KinG-InFeT",
  20.    "31337 Shel"
  21. );
  22. my @founds;
  23.  
  24. head();
  25. print "\n[+] Directory : ";
  26. chomp( my $dir = <stdin> );
  27. start($dir);
  28. copyright();
  29.  
  30. sub start {
  31.    my $dir = shift;
  32.    print "\n\n[+] Searching in directory $dir\n\n";
  33.  
  34.    find( \&finder, $dir );
  35.  
  36.    sub finder {
  37.        my $file = $_;
  38.        if ( -f $file ) {
  39.            if ( $file =~ /\.txt$/ or $file =~ /\.php$/ ) {
  40.                my $abrir = $File::Find::name;
  41.  
  42.                open( FILE, $abrir );
  43.                my $words = join q(), <FILE>;
  44.                close(FILE);
  45.  
  46.                for my $rastro (@nombres) {
  47.                    chomp $rastro;
  48.                    if ( $words =~ /$rastro/ig ) {
  49.                        push( @founds, $abrir );
  50.                    }
  51.                }
  52.            }
  53.        }
  54.    }
  55.  
  56.    my @founda = repes(@founds);
  57.  
  58.    print "[+] Number of files found : " . int(@founda) . "\n\n";
  59.  
  60.    if ( int(@founda) ne "0" ) {
  61.        for (@founda) {
  62.            print "[+] File Found : $_\n";
  63.        }
  64.  
  65.        print "\n[+] Delete files y/n : ";
  66.        chomp( my $op = <stdin> );
  67.  
  68.        if ( $op =~ /y/ig ) {
  69.            for (@founda) { unlink($_); }
  70.            print "\n[+] Files Deleted\n";
  71.        }
  72.        elsif ( $op =~ /n/ig ) {
  73.            print "\n[+] Good Bye\n";
  74.        }
  75.        else {
  76.            print "\n[+] Write good stupid\n";
  77.        }
  78.    }
  79. }
  80.  
  81. sub repes {
  82.    foreach $test (@_) {
  83.        push @limpio, $test unless $repe{$test}++;
  84.    }
  85.    return @limpio;
  86. }
  87.  
  88. sub head {
  89.    print qq(
  90.  
  91.  
  92. @@@@                                             @@@   @           @ @    
  93. @   @              @                            @   @  @           @ @    
  94. @    @             @                            @      @           @ @    
  95. @    @   @@@   @@  @@ @@  @@@  @  @  @@@  @@    @      @ @@   @@@  @ @  @@
  96. @    @  @   @ @  @ @  @  @   @ @  @ @   @ @      @@@   @@  @ @   @ @ @ @  @
  97. @    @  @@@@@  @   @  @  @   @ @  @ @@@@@ @         @  @   @ @@@@@ @ @  @  
  98. @    @  @       @  @  @  @   @ @  @ @     @         @  @   @ @     @ @   @
  99. @   @   @   @ @  @ @  @  @   @  @@  @   @ @     @   @  @   @ @   @ @ @ @  @
  100. @@@@     @@@   @@   @ @   @@@   @    @@@  @      @@@   @   @  @@@  @ @  @@
  101.                                 @                                          
  102.                               @@                                          
  103.  
  104.  
  105.  
  106. );
  107. }
  108.  
  109. sub copyright {
  110.    print "\n\n-- == Doddy Hackman 2012 == --\n\n";
  111.    <stdin>;
  112.    exit(1);
  113. }
  114.  
  115. # The End ?
  116.  


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Web Shells
Nivel Web
kamsky 2 3,197 Último mensaje 11 Diciembre 2009, 22:14 pm
por wisehacks
Shells en .jpg o .gif
Hacking
VCore 3 4,502 Último mensaje 29 Junio 2011, 09:54 am
por WHK
[Perl Tk] Destroyer Shells 0.4
Scripting
BigBear 0 2,071 Último mensaje 30 Junio 2012, 01:39 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines