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

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


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


Desconectado Desconectado

Mensajes: 545



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

Version Tk de un script para buscar y borrar phpshells.

Una imagen



El codigo

Código
  1. #!usr/bin/perl
  2. #DestroyerShells 0.4
  3. #Version Tk
  4. #Coded By Doddy H
  5.  
  6. use Tk;
  7. use Tk::Dialog;
  8. use LWP::UserAgent;
  9. use File::Find;
  10.  
  11. my @nombres = (
  12.    "C99Shell",
  13.    "r57shell",
  14.    "DxShell",
  15.    "HiddenShell",
  16.    "~ Andr3a92 ~ Sh3ll ~",
  17.    "CShell",
  18.    "Dark Shell",
  19.    "GsC SheLL",
  20.    "N3fa5t1cA Sh3ll",
  21.    "ONBOOMSHELL",
  22.    "StAkeR ~ Shell",
  23.    "MoDDeD By KinG-InFeT",
  24.    "31337 Shel"
  25. );
  26. my @founds;
  27.  
  28. #if ($^O eq 'MSWin32') {
  29. #use Win32::Console;
  30. #Win32::Console::Free();
  31. #}
  32.  
  33. my $color_texto = "orange";
  34. my $color_fondo = "black";
  35.  
  36. my $newdaxz =
  37.  MainWindow->new( -background => $color_fondo, -foreground => $color_texto );
  38.  
  39. $newdaxz->title("DestroyerShells 0.4 || Coded By Doddy H");
  40. $newdaxz->geometry("345x350+50+50");
  41. $newdaxz->resizable( 0, 0 );
  42.  
  43. $menula = $newdaxz->Frame(
  44.    -relief     => "sunken",
  45.    -bd         => 1,
  46.    -background => $color_fondo,
  47.    -foreground => $color_texto
  48. );
  49. my $menulnowaxm = $menula->Menubutton(
  50.    -text             => "Options",
  51.    -underline        => 1,
  52.    -background       => $color_fondo,
  53.    -foreground       => $color_texto,
  54.    -activebackground => $color_texto
  55. )->pack( -side => "left" );
  56. my $aboutnowaxm = $menula->Menubutton(
  57.    -text             => "About",
  58.    -underline        => 1,
  59.    -background       => $color_fondo,
  60.    -foreground       => $color_texto,
  61.    -activebackground => $color_texto
  62. )->pack( -side => "left" );
  63. my $exitnowaxm = $menula->Menubutton(
  64.    -text             => "Exit",
  65.    -underline        => 1,
  66.    -background       => $color_fondo,
  67.    -foreground       => $color_texto,
  68.    -activebackground => $color_texto
  69. )->pack( -side => "left" );
  70. $menula->pack( -side => "top", -fill => "x" );
  71.  
  72. $menulnowaxm->command(
  73.    -label      => "Scan",
  74.    -background => $color_fondo,
  75.    -foreground => $color_texto,
  76.    -command    => \&scan
  77. );
  78. $menulnowaxm->command(
  79.    -label      => "Delete Shells",
  80.    -background => $color_fondo,
  81.    -foreground => $color_texto,
  82.    -command    => \&delnow
  83. );
  84.  
  85. $aboutnowaxm->command(
  86.    -label      => "About",
  87.    -background => $color_fondo,
  88.    -foreground => $color_texto,
  89.    -command    => \&aboutxa
  90. );
  91.  
  92. $exitnowaxm->command(
  93.    -label      => "Exit",
  94.    -background => $color_fondo,
  95.    -foreground => $color_texto,
  96.    -command    => \&exitnow
  97. );
  98.  
  99. $newdaxz->Label(
  100.    -text       => "Directory : ",
  101.    -font       => "Impact",
  102.    -background => $color_fondo,
  103.    -foreground => $color_texto
  104. )->place( -x => 20, -y => 40 );
  105. my $dir = $newdaxz->Entry(
  106.    -text       => "C:/xampp/htdocs",
  107.    -width      => 37,
  108.    -background => $color_fondo,
  109.    -foreground => $color_texto
  110. )->place( -x => 95, -y => 45 );
  111.  
  112. $newdaxz->Label(
  113.    -text       => "Shells Founds",
  114.    -font       => "Impact",
  115.    -background => $color_fondo,
  116.    -foreground => $color_texto
  117. )->place( -x => 120, -y => 80 );
  118. my $files = $newdaxz->Listbox(
  119.    -width      => 40,
  120.    -height     => 10,
  121.    -background => $color_fondo,
  122.    -foreground => $color_texto
  123. )->place( -x => 50, -y => 130 );
  124.  
  125. $newdaxz->Label(
  126.    -text       => "Status : ",
  127.    -font       => "Impact",
  128.    -background => $color_fondo,
  129.    -foreground => $color_texto
  130. )->place( -x => 63, -y => 300 );
  131. my $tatus = $newdaxz->Entry(
  132.    -width      => 25,
  133.    -background => $color_fondo,
  134.    -foreground => $color_texto
  135. )->place( -x => 120, -y => 305 );
  136.  
  137. MainLoop;
  138.  
  139. sub delnow {
  140.  
  141.    my $total = $files->size - 1;
  142.  
  143.    for my $number ( 0 .. $total ) {
  144.        my $ruta = $files->get($number);
  145.        unlink($ruta);
  146.    }
  147.    $files->delete( "0.0", "end" );
  148. }
  149.  
  150. sub scan {
  151.  
  152.    $files->delete( "0.0", "end" );
  153.    my $dir = $dir->get;
  154.  
  155.    find( \&finder, $dir );
  156.  
  157.    sub finder {
  158.        my $file = $_;
  159.        if ( -f $file ) {
  160.            if ( $file =~ /\.txt$/ or $file =~ /\.php$/ ) {
  161.                my $abrir = $File::Find::name;
  162.  
  163.                $tatus->configure( -text => $abrir );
  164.  
  165.                open( FILE, $abrir );
  166.                my $words = join q(), <FILE>;
  167.                close(FILE);
  168.  
  169.                for my $rastro (@nombres) {
  170.                    $newdaxz->update;
  171.                    chomp $rastro;
  172.                    if ( $words =~ /$rastro/ig ) {
  173.                        $files->insert( "end", $abrir );
  174.                    }
  175.                }
  176.            }
  177.        }
  178.    }
  179.    $tatus->configure( -text => " " );
  180. }
  181.  
  182. sub aboutxa {
  183.    $newdaxz->Dialog(
  184.        -title            => "About",
  185.        -buttons          => ["OK"],
  186.        -text             => "Coded By Doddy H",
  187.        -background       => $color_fondo,
  188.        -foreground       => $color_texto,
  189.        -activebackground => $color_texto
  190.    )->Show();
  191. }
  192.  
  193. sub exitnow {
  194.    exit 1;
  195. }
  196.  
  197. #The End ?
  198.  


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,503 Último mensaje 29 Junio 2011, 09:54 am
por WHK
[Perl] Destroyer Shells 0.4
Scripting
BigBear 0 1,524 Último mensaje 30 Junio 2012, 01:38 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines