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

 

 


Tema destacado: Curso de javascript por TickTack


  Mostrar Mensajes
Páginas: 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 ... 55
311  Programación / Scripting / [Perl] Finder Text 0.2 en: 23 Junio 2012, 18:15 pm
Simple script para buscar patrones en cualquier directorio.

Código
  1. #!usr/bin/perl
  2. #FinderText 0.2
  3. #Coded by Doddy H
  4.  
  5. head();
  6. print "[+] Directory : ";
  7. chomp( my $dir = <stdin> );
  8. print "\n[+] String : ";
  9. chomp( my $string = <stdin> );
  10. print "\n[+] Searching text\n\n";
  11. goodbye( $dir, $string );
  12. copyright();
  13.  
  14. sub verificar {
  15.  
  16.    my ( $file, $text ) = @_;
  17.    my $numero_linea = 0;
  18.  
  19.    open( FILE, $file );
  20.    my @words = <FILE>;
  21.    close FILE;
  22.  
  23.    chomp @words;
  24.  
  25.    for my $linea (@words) {
  26.        chomp $linea;
  27.        $numero_linea++;
  28.        if ( $linea =~ /$text/ ) {
  29.            print "[+] Text $text Found in file $file in line $numero_linea\n";
  30.        }
  31.    }
  32. }
  33.  
  34. sub goodbye {
  35.    opendir DIR, $_[0];
  36.    my @archivos = readdir DIR;
  37.    close DIR;
  38.  
  39.    for (@archivos) {
  40.        next if $_ eq "." or $_ eq "..";
  41.        my $fichero = $_[0] . "/" . $_;
  42.  
  43.        if ( -f $fichero ) {
  44.            verificar( $fichero, $_[1] );
  45.        }
  46.  
  47.        if ( -d $fichero ) {
  48.            &goodbye( $fichero, $_[1] );
  49.        }
  50.    }
  51. }
  52.  
  53. sub head {
  54.  
  55.    print qq(
  56.  
  57.  
  58. @@@@@ @           @             @@@@@              
  59. @                 @               @               @
  60. @                 @               @               @
  61. @     @ @ @@   @@@@  @@@  @@      @     @@@  @  @ @@
  62. @@@@  @ @@  @ @   @ @   @ @       @    @   @ @  @ @
  63. @     @ @   @ @   @ @@@@@ @       @    @@@@@  @@  @
  64. @     @ @   @ @   @ @     @       @    @      @@  @
  65. @     @ @   @ @   @ @   @ @       @    @   @ @  @ @
  66. @     @ @   @  @@@@  @@@  @       @     @@@  @  @  @
  67.  
  68.  
  69.  
  70. );
  71.  
  72. }
  73.  
  74. sub copyright {
  75.    print "\n\n-- == Doddy Hackman 2012 == --\n\n";
  76.    <stdin>;
  77.    exit(1);
  78. }
  79.  
  80. # The End ?
  81.  
312  Programación / Scripting / Re: [Perl] Hotmail Cracker 0.1 en: 18 Junio 2012, 20:07 pm
si queres hacerlo no me opongo xDD.
313  Programación / Scripting / Re: [Perl] Hotmail Cracker 0.1 en: 18 Junio 2012, 16:48 pm
si lo hay no quiero saberlo , prefiero usar los modulos de este programa para intentar hace un cliente de hotmail para leer mis correos , me parece mas constructivo xDD.

314  Programación / Scripting / Re: [Perl] Hotmail Cracker 0.1 en: 17 Junio 2012, 22:45 pm
ja , me equivoque , lo acabo de probar con Gmail y solo aguanta hasta el intento 20 xDD.

315  Programación / Scripting / Re: [Perl] Hotmail Cracker 0.1 en: 17 Junio 2012, 20:46 pm
y si , pero por suerte Gmail no tiene ese problema (segun lo que eh probado hace 2 meses).
316  Programación / Scripting / Re: [Perl] Hotmail Cracker 0.1 en: 17 Junio 2012, 19:39 pm
no se si ya es un tema viejo pero el programa esta obsoleto debido a que en el intento 5 el programa deja de funcionar y no encuentra nada.

317  Programación / Scripting / [Perl Tk] MD5 Crack 0.2 en: 16 Junio 2012, 20:21 pm
Version Tk de un programa para crackear un hash MD5

Una imagen



Y el codigo

Código
  1. #!usr/bin/perl
  2. #MD5 Crack 0.2
  3. #Version Tk
  4. #Coded By Doddy H
  5. #Test with
  6. #098f6bcd4621d373cade4e832627b4f6 : test
  7. #cc03e747a6afbbcbf8be7668acfebee5 : test.123
  8. #1943b8b39ca8df2919faff021e0aca98 : testar
  9. #177dac170d586383bcc889602b2bb788 : testar.123
  10.  
  11. use Tk;
  12. use Tk::Dialog;
  13. use Tk::FileSelect;
  14. use Cwd;
  15. use Digest::MD5 qw(md5_hex);
  16.  
  17. #if ($^O eq 'MSWin32') {
  18. #use Win32::Console;
  19. #Win32::Console::Free();
  20. #}
  21.  
  22. my $color_texto = "yellow";
  23. my $color_fondo = "black";
  24.  
  25. my $kak =
  26.  MainWindow->new( -background => $color_fondo, -foreground => $color_texto );
  27.  
  28. $kak->title("MD5 Crack T00l 0.2");
  29. $kak->geometry("300x410+50+50");
  30. $kak->resizable( 0, 0 );
  31.  
  32. $menulax = $kak->Frame(
  33.    -relief     => "sunken",
  34.    -bd         => 1,
  35.    -background => $color_fondo,
  36.    -foreground => $color_texto
  37. );
  38. my $menulnowaxmu = $menulax->Menubutton(
  39.    -text             => "Options",
  40.    -underline        => 1,
  41.    -background       => $color_fondo,
  42.    -foreground       => $color_texto,
  43.    -activebackground => $color_texto
  44. )->pack( -side => "left" );
  45. my $aboutnowaxmu = $menulax->Menubutton(
  46.    -text             => "About",
  47.    -underline        => 1,
  48.    -background       => $color_fondo,
  49.    -foreground       => $color_texto,
  50.    -activebackground => $color_texto
  51. )->pack( -side => "left" );
  52. my $exitnowaxmu = $menulax->Menubutton(
  53.    -text             => "Exit",
  54.    -underline        => 1,
  55.    -background       => $color_fondo,
  56.    -foreground       => $color_texto,
  57.    -activebackground => $color_texto
  58. )->pack( -side => "left" );
  59. $menulax->pack( -side => "top", -fill => "x" );
  60.  
  61. $menulnowaxmu->command(
  62.    -label      => "Crack Hash",
  63.    -background => $color_fondo,
  64.    -foreground => $color_texto,
  65.    -command    => \&crackhash
  66. );
  67. $menulnowaxmu->command(
  68.    -label      => "Crack Wordlist",
  69.    -background => $color_fondo,
  70.    -foreground => $color_texto,
  71.    -command    => \&crackhashes
  72. );
  73. $menulnowaxmu->command(
  74.    -label      => "Load hashes",
  75.    -background => $color_fondo,
  76.    -foreground => $color_texto,
  77.    -command    => \&bronafar
  78. );
  79. $menulnowaxmu->command(
  80.    -label      => "Load file",
  81.    -background => $color_fondo,
  82.    -foreground => $color_texto,
  83.    -command    => \&bronaf
  84. );
  85. $menulnowaxmu->command(
  86.    -label      => "Open Logs",
  87.    -background => $color_fondo,
  88.    -foreground => $color_texto,
  89.    -command    => \&openlogska
  90. );
  91.  
  92. $aboutnowaxmu->command(
  93.    -label      => "About",
  94.    -background => $color_fondo,
  95.    -foreground => $color_texto,
  96.    -command    => \&aboutxam
  97. );
  98.  
  99. $exitnowaxmu->command(
  100.    -label      => "Exit",
  101.    -background => $color_fondo,
  102.    -foreground => $color_texto,
  103.    -command    => \&exitnowm
  104. );
  105.  
  106. $kak->Label(
  107.    -text       => "Hash : ",
  108.    -font       => "Impact",
  109.    -background => $color_fondo,
  110.    -foreground => $color_texto
  111. )->place( -x => 20, -y => 40 );
  112. my $md5 = $kak->Entry(
  113.    -width      => 33,
  114.    -background => $color_fondo,
  115.    -foreground => $color_texto
  116. )->place( -x => 70, -y => 45 );
  117.  
  118. $kak->Label(
  119.    -text       => "File : ",
  120.    -font       => "Impact",
  121.    -background => $color_fondo,
  122.    -foreground => $color_texto
  123. )->place( -x => 22, -y => 70 );
  124. my $word = $kak->Entry(
  125.    -width      => 34,
  126.    -background => $color_fondo,
  127.    -foreground => $color_texto
  128. )->place( -x => 63, -y => 75 );
  129.  
  130. $kak->Label(
  131.    -text       => "Salt : ",
  132.    -font       => "Impact",
  133.    -background => $color_fondo,
  134.    -foreground => $color_texto
  135. )->place( -x => 22, -y => 100 );
  136. my $salt = $kak->Entry(
  137.    -width      => 34,
  138.    -background => $color_fondo,
  139.    -foreground => $color_texto
  140. )->place( -x => 63, -y => 105 );
  141.  
  142. $kak->Label(
  143.    -text       => "Hashes Found",
  144.    -font       => "Impact",
  145.    -background => $color_fondo,
  146.    -foreground => $color_texto
  147. )->place( -x => 90, -y => 150 );
  148. my $ha = $kak->Listbox(
  149.    -width      => 40,
  150.    -height     => 10,
  151.    -background => $color_fondo,
  152.    -foreground => $color_texto
  153. )->place( -x => 25, -y => 190 );
  154.  
  155. $kak->Label(
  156.    -text       => "Status : ",
  157.    -font       => "Impact",
  158.    -background => $color_fondo,
  159.    -foreground => $color_texto
  160. )->place( -x => 37, -y => 360 );
  161. my $tatus = $kak->Entry(
  162.    -width      => 25,
  163.    -background => $color_fondo,
  164.    -foreground => $color_texto
  165. )->place( -x => 95, -y => 365 );
  166.  
  167. MainLoop;
  168.  
  169. sub crackhashes {
  170.  
  171.    $ha->delete( "0.0", "end" );
  172.    $tatus->configure( -text => " " );
  173.  
  174.    my $file     = $md5->get;
  175.    my $wordlist = $word->get;
  176.    my $salt     = $salt->get;
  177.  
  178.    my @hashes = openwordlist($file);
  179.  
  180.    my $formar;
  181.  
  182.    for my $md5 (@hashes) {
  183.        chomp $md5;
  184.        my $formar = $md5;
  185.  
  186.        if ( ver_length($md5) ) {
  187.  
  188.            my @words = openwordlist($wordlist);
  189.  
  190.            for my $word (@words) {
  191.                chomp $word;
  192.                $kak->update;
  193.                my $formardos;
  194.  
  195.                if ( $salt eq "" ) {
  196.                    $formardos = md5_hex($word);
  197.                }
  198.                else {
  199.                    $formardos = md5_hex( $word . $salt );
  200.  
  201.                }
  202.  
  203.                if ( $formar eq $formardos ) {
  204.                    $ha->insert( "end", $formar . ":" . $word );
  205.                    $tatus->configure( -text => $word );
  206.                    savefile( "md5-found.txt", $formar . ":" . $word );
  207.                    last;
  208.                }
  209.                else {
  210.                    $tatus->configure( -text => $word );
  211.                }
  212.            }
  213.        }
  214.        else {
  215.            $kak->Dialog(
  216.                -title            => "Error",
  217.                -buttons          => ["OK"],
  218.                -text             => "Hash invalid",
  219.                -background       => $color_fondo,
  220.                -foreground       => $color_texto,
  221.                -activebackground => $color_texto
  222.            )->Show();
  223.            last;
  224.        }
  225.    }
  226. }
  227.  
  228. sub crackhash {
  229.  
  230.    $ha->delete( "0.0", "end" );
  231.    $tatus->configure( -text => " " );
  232.  
  233.    my $md5      = $md5->get;
  234.    my $wordlist = $word->get;
  235.    my $salt     = $salt->get;
  236.  
  237.    my $formar = $md5;
  238.  
  239.    if ( ver_length($md5) ) {
  240.  
  241.        my @words = openwordlist($wordlist);
  242.  
  243.        for my $word (@words) {
  244.            chomp $word;
  245.            $kak->update;
  246.            my $formardos;
  247.  
  248.            if ( $salt eq "" ) {
  249.                $formardos = md5_hex($word);
  250.            }
  251.            else {
  252.                $formardos = md5_hex( $word . $salt );
  253.            }
  254.  
  255.            if ( $formar eq $formardos ) {
  256.                $tatus->configure( -text => $word );
  257.                $ha->insert( "end", $formar . ":" . $word );
  258.                savefile( "md5-found.txt", $formar . ":" . $word );
  259.                last;
  260.            }
  261.            else {
  262.                $tatus->configure( -text => $word );
  263.            }
  264.        }
  265.    }
  266.    else {
  267.        $kak->Dialog(
  268.            -title            => "Error",
  269.            -buttons          => ["OK"],
  270.            -text             => "Hash invalid",
  271.            -background       => $color_fondo,
  272.            -foreground       => $color_texto,
  273.            -activebackground => $color_texto
  274.        )->Show();
  275.    }
  276. }
  277.  
  278. sub ver_length {
  279.    return true if length( $_[0] ) == 32;
  280. }
  281.  
  282. sub openwordlist {
  283.  
  284.    my ( $file, $tipo ) = @_;
  285.  
  286.    unless ( -f $file ) {
  287.        $kak->Dialog(
  288.            -title            => "Error",
  289.            -buttons          => ["OK"],
  290.            -text             => "File not found",
  291.            -background       => $color_fondo,
  292.            -foreground       => $color_texto,
  293.            -activebackground => $color_texto
  294.        )->Show();
  295.        last;
  296.    }
  297.  
  298.    open( FILE, $file );
  299.    my @words = <FILE>;
  300.    close FILE;
  301.  
  302.    return @words;
  303.  
  304. }
  305.  
  306. sub bronafar {
  307.    $kak->update;
  308.    $browse = $kak->FileSelect( -directory => getcwd() );
  309.    my $file = $browse->Show;
  310.    $md5->configure( -text => $file );
  311. }
  312.  
  313. sub bronaf {
  314.    $kak->update;
  315.    $browse = $kak->FileSelect( -directory => getcwd() );
  316.    my $file = $browse->Show;
  317.    $word->configure( -text => $file );
  318. }
  319.  
  320. sub openlogska {
  321.    my $f = "md5-found.txt";
  322.    if ( -f $f ) {
  323.        system($f);
  324.    }
  325.    else {
  326.        $kak->Dialog(
  327.            -title            => "Error",
  328.            -buttons          => ["OK"],
  329.            -text             => "File Not Found",
  330.            -background       => $color_fondo,
  331.            -foreground       => $color_texto,
  332.            -activebackground => $color_texto
  333.        )->Show();
  334.    }
  335. }
  336.  
  337. sub aboutxam {
  338.    $kak->Dialog(
  339.        -title            => "About",
  340.        -buttons          => ["OK"],
  341.        -text             => "Coded By Doddy H",
  342.        -background       => $color_fondo,
  343.        -foreground       => $color_texto,
  344.        -activebackground => $color_texto
  345.    )->Show();
  346. }
  347.  
  348. sub exitnowm {
  349.    exit 1;
  350. }
  351.  
  352. sub savefile {
  353.    open( SAVE, ">>" . $_[0] );
  354.    print SAVE $_[1] . "\n";
  355.    close SAVE;
  356. }
  357.  
  358. sub repes {
  359.    my @limpio;
  360.    foreach $test (@_) {
  361.        push @limpio, $test unless $repe{$test}++;
  362.    }
  363.    return @limpio;
  364. }
  365.  
  366. #The End ?
  367.  
  368.  
318  Programación / Scripting / [Perl] MD5 Crack 0.2 en: 16 Junio 2012, 20:21 pm
Simple script para crackear un hash MD5 mediante un diccionario.

Código
  1. #!usr/bin/perl
  2. #MD5 Crack 0.2
  3. #Coded By Doddy H
  4. #Test with
  5. #098f6bcd4621d373cade4e832627b4f6 : test
  6. #cc03e747a6afbbcbf8be7668acfebee5 : test.123
  7. #1943b8b39ca8df2919faff021e0aca98 : testar
  8. #177dac170d586383bcc889602b2bb788 : testar.123
  9.  
  10. use Digest::MD5 qw(md5_hex);
  11.  
  12. head();
  13. while (1) {
  14.    print qq(
  15.  
  16. [++] Options
  17.  
  18. [+] 1 : Crack hash
  19. [+] 2 : Crack hashes
  20.  
  21. );
  22.    print "\n[+] Option : ";
  23.    chomp( my $op = <stdin> );
  24.  
  25.    if ( $op eq "1" ) {
  26.        print "\n[+] MD5 : ";
  27.        chomp( my $md5 = <stdin> );
  28.        print "\n[+] Salt : ";
  29.        chomp( my $salt = <stdin> );
  30.        print "\n[+] Wordlist : ";
  31.        chomp( my $wordlist = <stdin> );
  32.        crackhash( $md5, $salt, $wordlist );
  33.    }
  34.    elsif ( $op eq "2" ) {
  35.        print "\n[+] File : ";
  36.        chomp( my $md5 = <stdin> );
  37.        print "\n[+] Salt : ";
  38.        chomp( my $salt = <stdin> );
  39.        print "\n[+] Wordlist : ";
  40.        chomp( my $wordlist = <stdin> );
  41.        crackhashes( $md5, $salt, $wordlist );
  42.    }
  43.    else {
  44.        print "\n\n[-] Bad option\n";
  45.    }
  46.  
  47. }
  48. copyright();
  49.  
  50. sub crackhashes {
  51.  
  52.    my ( $file, $salt, $wordlist ) = @_;
  53.    my @hashes = openwordlist($file);
  54.  
  55.    my $formar;
  56.  
  57.    for my $md5 (@hashes) {
  58.        chomp $md5;
  59.        my $formar = $md5;
  60.  
  61.        if ( ver_length($md5) ) {
  62.  
  63.            my @words = openwordlist($wordlist);
  64.  
  65.            print "[+] Cracking ....\n\n";
  66.  
  67.            for my $word (@words) {
  68.                chomp $word;
  69.  
  70.                my $formardos;
  71.  
  72.                if ( $salt eq "" ) {
  73.                    $formardos = md5_hex($word);
  74.                }
  75.                else {
  76.                    $formardos = md5_hex( $word . $salt );
  77.  
  78.                }
  79.  
  80.                if ( $formar eq $formardos ) {
  81.                    print "\n\a[+] Cracked : " . $formar . ":" . $word . "\n";
  82.                    savefile( "md5-found.txt", $formar . ":" . $word );
  83.                    last;
  84.                }
  85.                else {
  86.                    print $formar. " =! " . $formardos . "\n";
  87.                }
  88.            }
  89.        }
  90.        else {
  91.            print "\n[-] Hash invalid";
  92.            last;
  93.        }
  94.    }
  95. }
  96.  
  97. sub crackhash {
  98.  
  99.    my ( $md5, $salt, $wordlist ) = @_;
  100.    my $formar = $md5;
  101.  
  102.    if ( ver_length($md5) ) {
  103.  
  104.        my @words = openwordlist($wordlist);
  105.  
  106.        print "[+] Cracking ....\n\n";
  107.  
  108.        for my $word (@words) {
  109.            chomp $word;
  110.  
  111.            my $formardos;
  112.  
  113.            if ( $salt eq "" ) {
  114.                $formardos = md5_hex($word);
  115.            }
  116.            else {
  117.                $formardos = md5_hex( $word . $salt );
  118.            }
  119.  
  120.            if ( $formar eq $formardos ) {
  121.                print "\n\a[+] Cracked : " . $formar . ":" . $word . "\n";
  122.                savefile( "md5-found.txt", $formar . ":" . $word );
  123.                copyright();
  124.            }
  125.            else {
  126.                print $formar. " =! " . $formardos . "\n";
  127.            }
  128.        }
  129.  
  130.    }
  131.    else {
  132.        print "\n[-] Hash invalid";
  133.    }
  134.  
  135. }
  136.  
  137. sub ver_length {
  138.    return true if length( $_[0] ) == 32;
  139. }
  140.  
  141. sub openwordlist {
  142.  
  143.    my ( $file, $tipo ) = @_;
  144.  
  145.    print "\n[+] Opening file\n\n";
  146.  
  147.    unless ( -f $file ) {
  148.        print "\n[-] File not found\n";
  149.        copyright();
  150.    }
  151.  
  152.    open( FILE, $file );
  153.    my @words = <FILE>;
  154.    close FILE;
  155.  
  156.    print "[+] Words Found : " . int(@words) . "\n\n";
  157.  
  158.    return @words;
  159.  
  160. }
  161.  
  162. sub repes {
  163.    my @limpio;
  164.    foreach $test (@_) {
  165.        push @limpio, $test unless $repe{$test}++;
  166.    }
  167.    return @limpio;
  168. }
  169.  
  170. sub savefile {
  171.    open( SAVE, ">>" . $_[0] );
  172.    print SAVE $_[1] . "\n";
  173.    close SAVE;
  174. }
  175.  
  176. sub head {
  177.    print qq(
  178.  
  179.  
  180. @     @  @@@@    @@@@@     @@@@  @@@@@     @     @@@@  @   @
  181. @     @  @   @   @        @    @ @    @    @    @    @ @  @  
  182. @@   @@  @    @  @        @      @    @   @ @   @      @ @  
  183. @@   @@  @    @  @@@@     @      @    @   @ @   @      @@    
  184. @ @ @ @  @    @  @   @    @      @@@@@   @   @  @      @@    
  185. @ @ @ @  @    @      @    @      @    @  @   @  @      @ @  
  186. @  @  @  @    @      @    @      @    @  @@@@@  @      @  @  
  187. @  @  @  @   @   @   @    @    @ @    @ @     @ @    @ @   @
  188. @     @  @@@@     @@@      @@@@  @    @ @     @  @@@@  @    @
  189.  
  190.  
  191.  
  192. );
  193. }
  194.  
  195. sub copyright {
  196.    print "\n\n-- == (C) Doddy Hackman 2012\n\n";
  197.    <stdin>;
  198.    exit(1);
  199. }
  200.  
  201. #The End ?
  202.  
319  Programación / Scripting / Re: Qué lenguaje me sería conveniente aprender? en: 16 Junio 2012, 15:47 pm
te diria perl , pero te conviene empezar en python.
320  Programación / Scripting / Re: [Perl Tk] Panel Control 0.3 en: 12 Junio 2012, 16:30 pm
yo tambien hice uno en python lo podes encontrar aca.
Páginas: 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 ... 55
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines