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

 

 


Tema destacado: Sigue las noticias más importantes de seguridad informática en el Twitter! de elhacker.NET


  Mostrar Mensajes
Páginas: 1 ... 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 [45] 46 47 48 49 50 51 52 53 54 55
441  Programación / Scripting / [Perl] FinderText 0.1 en: 1 Diciembre 2011, 22:11 pm
Un simple programa para buscar cierto texto en un archivo o directorio.

Código
  1. #!usr/bin/perl
  2. #FinderText 0.1
  3. #Written by Doddy H
  4.  
  5. print "\n-- == FinderText 0.1 == --\n\n";
  6. unless($ARGV[0]) {
  7. print "\n[+] sintax : $0 <file/dir> <text>\n";
  8. } else {
  9. print "\n[+] Searching text\n\n";
  10. if (-f $ARGV[0]) {
  11. verificar($ARGV[0],$ARGV[1]);
  12. }
  13. if (-d $ARGV[0]) {
  14. goodbye($ARGV[0],$ARGV[1]);
  15. }
  16. print "\n[+] Finished\n";
  17. }
  18. print "\n\n[+] Written By Doddy H\n\n";
  19.  
  20. sub verificar {
  21.  
  22. my ($file,$text) = @_;
  23. my $numero_linea = 0;
  24.  
  25. open(FILE,$file);
  26. my @words = <FILE>;
  27. close FILE;
  28.  
  29. chomp @words;
  30.  
  31. for my $linea(@words) {
  32. chomp $linea;
  33. $numero_linea++;
  34. if ($linea=~/$text/ig) {
  35. print "[+] Text $text Found in file $file in line $numero_linea\n";
  36. }}}
  37.  
  38. sub goodbye {
  39.  
  40. opendir DIR,$_[0];
  41. my @archivos = readdir DIR;
  42. close DIR;
  43.  
  44. for (@archivos) {
  45. next if $_ eq "." or $_ eq "..";
  46. my $fichero = $_[0]."/".$_;
  47.  
  48. if (-f $fichero) {
  49. verificar($fichero,$_[1]);
  50. }
  51.  
  52. if (-d $fichero) {
  53. &goodbye($fichero);
  54. }}}
  55.  
  56. # The End ?
442  Programación / Scripting / [Perl] FinderShells 0.3 en: 1 Diciembre 2011, 22:11 pm
Simple programa para buscar phpshells activas usando google

Código
  1. #!/usr/bin/perl
  2. #Finder Shells 0.3 (c) Doddy Hackman 2011
  3.  
  4. use LWP::UserAgent;
  5. use HTTP::Request::Common;
  6.  
  7. installer();
  8.  
  9. my $nave = LWP::UserAgent->new();
  10. $nave->timeout(3);
  11. $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12");
  12.  
  13. &head;
  14.  
  15. print "\n[Pages] : ";
  16. chomp(my $pa = <stdin>);
  17.  
  18. $option = men();
  19.  
  20. if ($option eq 1) {
  21. @pages = google("www.google.com.ar","intitle:\"- c99shell\"",$pa);
  22. print "\n[+] Count Pages : ".int(@pages)."\n\n";
  23. for my $pax(@pages) {
  24. $code = toma($pax);
  25. if ($code=~/--\[ c99shell/ig) {
  26. print "\a[Link] : ".$pax."\n";
  27. savefile("shells.txt",$pax);
  28. }
  29. }
  30. }
  31. elsif ($option eq 2) {
  32. @pages = google("www.google.com.ar","intitle:\"r57shell\"",$pa);
  33. print "\n[+] Count Pages : ".int(@pages)."\n\n";
  34. for my $pax(@pages) {
  35. $code = toma($pax);
  36. if ($code=~/o---\[ r57shell - http-shell by RST/ig) {
  37. print "\a[Link] : ".$pax."\n";
  38. savefile("shells.txt",$pax);
  39. }
  40. }
  41. }
  42. elsif ($option eq 3) {
  43. @pages = google("www.google.com.ar","intitle:\"--= DxShell 1.0 - by o_O Tync =--\"",$pa);
  44. print "\n[+] Count Pages : ".int(@pages)."\n\n";
  45. for my $pax(@pages) {
  46. $code = toma($pax);
  47. if ($code=~/--= DxShell 1.0 - by o_O Tync =--/ig) {
  48. print "\a[Link] : ".$pax."\n";
  49. savefile("shells.txt",$pax);
  50. }
  51. }
  52. }
  53. elsif ($option eq 4) {
  54. @pages = google("www.google.com.ar","o--\[ heroes1412 \]--",$pa);
  55. print "\n[+] Count Pages : ".int(@pages)."\n\n";
  56. for my $pax(@pages) {
  57. $code = toma($pax);
  58. if ($code=~/o--\[ heroes1412 \]--/ig) {
  59. print "\a[Link] : ".$pax."\n";
  60. savefile("shells.txt",$pax);
  61. }
  62. }
  63. }
  64. elsif ($option eq 5) {
  65. @pages = google("www.google.com.ar","Locus7Shell",$pa);
  66. print "\n[+] Count Pages : ".int(@pages)."\n\n";
  67. for my $pax(@pages) {
  68. $code = toma($pax);
  69. if ($code=~/--\[ x2300 Locus7Shell/ig) {
  70. print "\a[Link] : ".$pax."\n";
  71. savefile("shells.txt",$pax);
  72. }
  73. }
  74. }
  75. else {
  76. print "\n\n[-] Bad Option\n\n";
  77. }
  78. print "\n\n[+] Finish\n\n";
  79. copyright();
  80. <stdin>;
  81.  
  82.  
  83. sub men {
  84. print "\n\n[+] Shells to find : \n\n";
  85. print "[1] : c99\n";
  86. print "[2] : r57\n";
  87. print "[3] : Dxshell\n";
  88. print "[4] : heroes1412\n";
  89. print "[5] : Locus7Shell\n\n";
  90. print "\n[Options] : ";
  91. chomp(my $option = <STDIN>);
  92. return $option;
  93. }
  94.  
  95.  
  96. sub head {
  97. print "\n\n -- == Finder Shells == --\n\n\n";
  98. }
  99.  
  100. sub copyright {
  101. print "\n\n(C) Doddy Hackman 2010\n\n";
  102. }
  103.  
  104. sub toma {
  105. return $nave->request (GET $_[0])->content;
  106. }
  107.  
  108. sub google {
  109. print "\n[Dork] : $_[1]\n[Paginas] : $_[2]\n\n[+] Searching pages..\n";
  110. for ($pages=0;$pages<=$_[2];$pages=$pages+10) {
  111. $response = toma("http://$_[0]/search?hl=&q=$_[1]&start=$pages");
  112. while ($response=~m/<h3 class=.*?<a href="([^"]+).*?>(.*?)<\/a>/g) {
  113. push(@founds,$1);
  114. }}
  115. print "[+] Erasing repeated\n";
  116. for(@founds) {
  117. $t = $_;
  118. push(@r,$t);
  119. }
  120. return(repes(@r));
  121. }
  122.  
  123.  
  124. sub repes {
  125. foreach my $palabra ( @_ ) {
  126. next if $repety{ $palabra }++;
  127. push @revisado,$palabra;
  128. }
  129. return @revisado;
  130. }
  131.  
  132.  
  133. sub clean {
  134. if ($_[0] =~/\=/) {
  135. my @sacar= split("=",$_[0]);
  136. return(@sacar[0]."=");
  137. }
  138. }
  139.  
  140. sub savefile {
  141. open(SAVE,">>logs/".$_[0]);
  142. print SAVE $_[1]."\n";
  143. close SAVE;
  144. }
  145.  
  146. sub installer {
  147. unless (-d "/logs") {
  148. mkdir("logs/",777);
  149. }
  150. }
  151.  
  152. # ¿ The End ?
443  Programación / Scripting / [Perl] FinderPaths 0.5 en: 1 Diciembre 2011, 22:10 pm
Simple programa para buscar el tipico listado de directorios , lo pueden usar de dos formas , la primera es una busqueda simple y la otra al estilo spider , esta ultima nos ayuda a seguir buscando directorios escalando los encontrados

Código
  1. #!usr/bin/perl
  2. #Finder Paths 0.5 Coded By Doddy H
  3.  
  4. use LWP::UserAgent;
  5. use URI::Split qw(uri_split);
  6. use HTML::LinkExtor;
  7. use Getopt::Long;
  8.  
  9. my $nave = LWP::UserAgent->new();
  10. $nave->timeout(5);
  11. $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12");
  12.  
  13. GetOptions(
  14. "-target=s" => \$target,
  15. "-option=s" => \$opcion);
  16.  
  17. head();
  18. unless ($target && $opcion) {
  19. sintax();
  20. }
  21. else  {
  22. if ($opcion eq "spider") {
  23. print "\n[+] Searching in $target\n";
  24. escalar($target);
  25. }
  26. elsif($opcion eq "simple") {
  27. print "\n[+] Searching in $target\n\n\n";
  28. simple($target);
  29. } else {
  30. print "\n[-] Error\n";
  31. }
  32. }
  33. copyright();
  34.  
  35. sub escalar {
  36.  
  37. my $code  = toma( $_[0] );
  38. my @links = get_links($code);
  39.  
  40. if ( $code =~ /Index of (.*)</ig ) {
  41. my $dir_found = $1;
  42. chomp $dir_found;
  43. print "\n\n[+] Directory Found : $dir_found\n\n";
  44. while ( $code =~ /<a href=\"(.*)\">(.*)<\/a>/ig ) {
  45. my $ruta   = $1;
  46. my $nombre = $2;
  47. unless ( $nombre =~ /Parent Directory/ig or $nombre =~ /Description/ig ) {
  48. unless ($nombre=~/\/$/) {
  49. print "[+] File Found : $nombre\n";
  50. }
  51. push(@encontrados,$_[0]."/".$nombre);
  52. }
  53. }
  54. }
  55.  
  56. #get more
  57.  
  58. for my $com (@links) {
  59. my ( $scheme, $auth, $path, $query, $frag ) = uri_split( $_[0] );
  60. if ( $path =~ /\/(.*)$/ ) {
  61. my $path1 = $1;
  62. $_[0] =~ s/$path1//ig;
  63. my ( $scheme, $auth, $path, $query, $frag ) = uri_split($com);
  64. if ( $path =~ /(.*)\// ) {
  65. my $parche = $1;                                
  66. unless($repetidos=~/$parche/){
  67. $repetidos.=" ".$parche;
  68. escalar("http://".$auth.$parche );                    
  69. }
  70. }
  71. for(@encontrados) {
  72. escalar($_);
  73. }}}}
  74.  
  75. sub simple {
  76.  
  77. my $code  = toma($_[0]);
  78. my @links = get_links($code);
  79.  
  80. for my $com (@links) {
  81. my ( $scheme, $auth, $path, $query, $frag ) = uri_split( $_[0] );
  82. if ( $path =~ /\/(.*)$/ ) {
  83. my $path1 = $1;
  84. $_[0] =~ s/$path1//ig;
  85. my ( $scheme, $auth, $path, $query, $frag ) = uri_split($com);
  86. if ( $path =~ /(.*)\// ) {
  87. my $parche = $1;                                
  88. unless($repetidos=~/$parche/){
  89. $repetidos.=" ".$parche;
  90. my $code=toma("http://".$auth.$parche);    
  91.  
  92. if ( $code =~ /Index of (.*)</ig ) {
  93. my $dir_found = $1;
  94. chomp $dir_found;
  95. print "[+] Directory Found : $dir_found\n";
  96. }}}}}}
  97.  
  98. sub toma {
  99. return $nave->get( $_[0] )->content;
  100. }
  101.  
  102. sub get_links {
  103.  
  104. $test = HTML::LinkExtor->new( \&agarrar )->parse( $_[0] );
  105. return @links;
  106.  
  107. sub agarrar {
  108. my ( $a, %b ) = @_;
  109. push( @links, values %b );
  110. }
  111. }
  112.  
  113. sub head {
  114. print "\n\n-- == FinderPaths 0.5 == --\n\n";
  115. }
  116.  
  117. sub sintax {
  118. print "\n[+] Sintax : $0 -target <web> -option <simple/spider>\n";
  119. }
  120.  
  121. sub copyright {
  122. print "\n\n(C) Doddy Hackman 2011\n\n";
  123. }
  124.  
  125. # The End ?
  126.  
444  Programación / Scripting / [Perl] DestroyerShells 0.3 en: 1 Diciembre 2011, 22:09 pm
Un programa para buscar phpshells en nuestra computadora y poder borrarlas si nos molesta

Código
  1. #!usr/bin/perl
  2. #DestroyerShells 0.3
  3. #Writtten By Doddy H
  4.  
  5. use File::Find;
  6.  
  7. my @nombres = ("C99Shell","r57shell","DxShell","HiddenShell","~ Andr3a92 ~ Sh3ll ~","CShell","Dark Shell","GsC SheLL","N3fa5t1cA Sh3ll","ONBOOMSHELL",
  8. "StAkeR ~ Shell","MoDDeD By KinG-InFeT","31337 Shel");
  9. my @founds;
  10.  
  11. print "\n-- == DestroyerShells 0.3 == --\n";
  12. unless($ARGV[0]) {
  13. print "\n[+] sintax : $0 <dir>\n";
  14. } else {
  15. start($ARGV[0]);
  16. }
  17. print "\n\n[+] Written By Doddy H\n\n";
  18.  
  19. sub start {
  20. my $dir = shift;
  21. print "\n\n[+] Searching in directory $dir\n\n";
  22.  
  23.  
  24. find(\&finder,$dir);
  25.  
  26. sub finder {
  27. my $file = $_;
  28. if(-f $file) {
  29. if ($file =~ /\.txt$/ or $file =~ /\.php$/){
  30. my $abrir = $File::Find::name;
  31.  
  32. open(FILE,$abrir);
  33. my $words = join q(),<FILE>;
  34. close(FILE);
  35.  
  36. for my $rastro(@nombres) {
  37. chomp $rastro;
  38. if ($words=~/$rastro/ig) {
  39. push(@founds,$abrir);
  40. }}}}}
  41.  
  42. my @founda = repes(@founds);
  43.  
  44. print "[+] Number of files found : ".int(@founda)."\n\n";
  45.  
  46. if (int(@founda) ne "0") {
  47. for(@founda) {
  48. print "[+] File Found : $_\n";
  49. }
  50.  
  51. print "\n[+] Delete files y/n : ";
  52. chomp(my $op=<stdin>);
  53.  
  54. if ($op=~/y/ig) {
  55. for(@founda) { unlink($_);}
  56. print "\n[+] Files Deleted\n";
  57. }
  58. elsif ($op=~/n/ig) {
  59. print "\n[+] Good Bye\n";
  60. } else {
  61. print "\n[+] Write good stupid\n";
  62. }
  63. }
  64. }
  65.  
  66. sub repes {
  67. foreach $test(@_) {
  68. push @limpio,$test unless $repe{$test}++;
  69. }
  70. return @limpio;
  71. }
  72.  
  73. # The End ?
  74.  
445  Programación / Scripting / [Perl Tk] SerialFinder 0.2 en: 1 Diciembre 2011, 22:09 pm
Simple programa en tk para buscar seriales de programas o juegos

Código
  1. #!usr/bin/perl
  2. #SerialFinder 0.2
  3. #By Doddy H
  4.  
  5. use Tk;
  6. use Tk::PNG;
  7.  
  8. if ($^O eq 'MSWin32') {
  9. use Win32::Console;
  10. Win32::Console::Free();
  11. }
  12.  
  13. my $ventana = MainWindow->new();
  14. $ventana->title("SerialFinder 0.2 By Doddy H");
  15. $ventana->geometry("370x300+20+20");
  16. $ventana->resizable(0,0);
  17.  
  18. $ventana->Label(-font=>"Impact1",-text=>"String : ")->place(-x=>20,-y=>20);
  19. my $p = $ventana->Entry(-text=>"Nero",-width=>"31")->place(-x=>80,-y=>23);
  20. $ventana->Button(-width=>"10",-text=>"Load",-command=>\&now)->place(-x=>278,-y=>23);
  21.  
  22. $ventana->Label(-text=>"Options",-font=>"Impact1")->place(-x=>140,-y=>70);
  23.  
  24. $ventana->Radiobutton(-text =>"serials.be", -value => "serials.be",-variable=> \$op)->place(-x=>130,-y=>130);
  25. $ventana->Radiobutton(-text =>"serials.ws", -value => "serials.ws",-variable=> \$op)->place(-x=>130,-y=>160);
  26. $ventana->Radiobutton(-text =>"cracks.vg", -value => "cracks.vg",-variable=> \$op)->place(-x=>130,-y=>190);
  27. $ventana->Radiobutton(-text =>"serialportal.com", -value => "serialportal.com",-variable=> \$op)->place(-x=>130,-y=>220);
  28. $ventana->Radiobutton(-text =>"freeserials.ws", -value => "freeserials.ws",-variable=> \$op)->place(-x=>130,-y=>250);
  29.  
  30. MainLoop;
  31.  
  32. sub now {
  33.  
  34. my $link;
  35. my $test = $p->get;
  36.  
  37. chomp $test;
  38.  
  39. if ($op eq "serials.be") {
  40. $link = "http://www.serials.be/search_serial.php?serial=".$test;
  41. }
  42. elsif ($op eq "serials.ws") {
  43. $link = "http://www.serials.ws/?chto=".$test;
  44. }
  45. elsif ($op eq "cracks.vg") {
  46. $link = "http://www.cracks.vg/search.php?query=".$test;
  47. }
  48. elsif ($op eq "serialportal.com") {
  49. $link = "http://www.serialportal.com/search.php?serial=".$test;
  50. }
  51. elsif ($op eq "freeserials.ws") {
  52. $link = "http://www.freeserials.ws/?q=".$test."&Search=Search";
  53. } else {
  54. $link = "http://www.google.com.ar/search?q=como aprender a escribir";
  55. }
  56.  
  57. system("start firefox $link");
  58.  
  59. }
  60.  
  61. # The End ?
  62.  
446  Programación / Scripting / [Perl Tk] GoogleHack 0.3 en: 1 Diciembre 2011, 22:08 pm
Simple programa en tk para buscar en google


Código
  1. #!usr/bin/perl
  2. #GoogleHack 0.3
  3. #By Doddy H
  4. #Based in the program GoogleHacks
  5. use Tk;
  6. use Tk::PNG;
  7.  
  8. if ($^O eq 'MSWin32') {
  9. use Win32::Console;
  10. Win32::Console::Free();
  11. }
  12.  
  13. my $ventana = MainWindow->new();
  14. $ventana->title("GoogleHack 0.3 By Doddy H");
  15. $ventana->geometry("370x300+20+20");
  16. $ventana->resizable(0,0);
  17.  
  18. $ventana->Label(-font=>"Impact1",-text=>"String : ")->place(-x=>20,-y=>20);
  19. my $v = $ventana->Entry(-text=>"Test",-width=>"31")->place(-x=>80,-y=>23);
  20. $ventana->Button(-width=>"10",-text=>"Load",-command=>\&now)->place(-x=>278,-y=>23);
  21.  
  22. $ventana->Label(-text=>"Options",-font=>"Impact1")->place(-x=>140,-y=>70);
  23.  
  24. $ventana->Radiobutton(-text =>"Music", -value => "music",-variable=> \$op)->place(-x=>140,-y=>130);
  25. $ventana->Radiobutton(-text =>"Programs", -value => "programs",-variable=> \$op)->place(-x=>140,-y=>160);
  26. $ventana->Radiobutton(-text =>"Book", -value => "book",-variable=> \$op)->place(-x=>140,-y=>190);
  27. $ventana->Radiobutton(-text =>"Videos", -value => "videos",-variable=> \$op)->place(-x=>140,-y=>220);
  28. $ventana->Radiobutton(-text =>"Torrent", -value => "torrent",-variable=> \$op)->place(-x=>140,-y=>250);
  29.  
  30. MainLoop;
  31.  
  32. sub now {
  33.  
  34. my $test = $v->get;
  35. my $link;
  36.  
  37. if ($op eq "music") {
  38. $link = '-inurl:(htm|html|php) intitle:index of +last modified +parent directory +description +size +(.mp3|.wma|.ogg) "'.$test.'"';
  39. }
  40. elsif ($op eq "programs") {
  41. $link = '-inurl:(htm|html|php) intitle:index of +last modified +parent directory +description +size +(.exe|.zip|.ddl) "'.$test.'"';
  42. }
  43. elsif ($op eq "book") {
  44. $link = '-inurl:(htm|html|php) intitle:index of +last modified +parent directory +description +size +(.txt|.pps|.lit|.odt|.doc|.rtf|.zip|.rar|.pdf|.chm) "'.$test.'"';
  45. }
  46. elsif ($op eq "videos") {
  47. $link = '-inurl:(htm|html|php) intitle:index of +last modified +parent directory +description +size +(.mpg|.avi|.flv|.wmv|.di) "'.$test.'"';
  48. }
  49. elsif ($op eq "torrent") {
  50. $link = "$test filetype:torrent";
  51. } else {
  52. $link = "como aprender a escribir";
  53. }
  54. chomp $link;
  55. my $final = "http://www.google.com.ar/search?q=".$link;
  56. system('start firefox "'.$final.'"');
  57. }
  58.  
  59. # The End ?
  60.  
447  Programación / Scripting / Re: [Perl] Stalker By Doddy H en: 19 Octubre 2011, 22:47 pm
diste en el blanco, esa es la idea de este proyecto xDDD
448  Programación / Scripting / [Python] PasteBin Uploader en: 16 Octubre 2011, 02:52 am
Un simple programa para subir codigos a pastebin

Código
  1. #!usr/bin/python
  2. #PasteBin Uploader (C) Doddy Hackman 2011
  3.  
  4. import urllib2,sys,re
  5.  
  6. nave = urllib2.build_opener()
  7. nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')]
  8.  
  9. def tomar(web,vars) :
  10. return nave.open(web,vars).read()
  11.  
  12. def head():
  13. print "\n-- == PasteBin Uploader == --\n\n"
  14.  
  15. def copyright():
  16. print "\n(C) Doddy Hackman 2011\n"
  17. sys.exit(1)
  18.  
  19. def sintax():
  20. print "[+] paste.py <file> <title> <perl/python/ruby/php>\n"
  21.  
  22. def chubir(file,title,type):
  23. print "[+] Uploading file\n"
  24. try:
  25.  lineas = open(file,"r").readlines()
  26. except:
  27.  print "[-] Error open file\n"
  28.  copyright()
  29. lin = "".join(lineas)
  30. try:
  31.  code = tomar("http://pastebin.com/api_public.php","paste_code="+str(lin)+"&paste_name="+title+"&paste_format="+type+"&paste_expire_date=N&paste_private=public&submit=submit")
  32. except:
  33.  print "[-] Page offline\n"
  34. if re.findall("Bad API request",code):
  35.  print "[-] Error uploading file\n"
  36. else:
  37.  print "[+] Enjoy : ",code+"\n"
  38.  copyright()
  39.  
  40. head()
  41. if len(sys.argv) != 4 :
  42. sintax()
  43. else :
  44. chubir(sys.argv[1],sys.argv[2],sys.argv[3])
  45. copyright()
  46.  
  47. # The End
449  Programación / Scripting / [Python] Proxy Tester en: 16 Octubre 2011, 02:52 am
Un simple programa para testear proxies

Código
  1. #!usr/bin/python
  2. #Proxy Tester (C) Doddy Hackman 2011
  3.  
  4. import urllib2,sys
  5.  
  6.  
  7. def toma(web) :
  8. return nave.open(web).read()
  9.  
  10. def header() :
  11. print "\n\n--== Proxy Tester ==--\n"
  12.  
  13. def copyright() :
  14. print "\n\n(C) Doddy Hackman 2011\n"
  15. sys.exit(1)
  16.  
  17. def sintax() :
  18. print "\n[*] Sintax : ",sys.argv[0]," <file>"
  19.  
  20. def testar(host):
  21. try:
  22.  proxy = urllib2.ProxyHandler({"http":host})
  23.  nave = urllib2.build_opener(proxy)
  24.  nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')]
  25.  urllib2.install_opener(nave)
  26.  urllib2.urlopen("http://127.0.0.1/sql.php")#
  27.  print "[+] Proxy Found : "+host
  28. except:
  29.  pass
  30.  
  31. header()
  32. if len(sys.argv) != 2 :
  33. sintax()
  34. else :
  35. print "\n[+] Opening file\n\n"
  36. try:
  37.  hosts = open(sys.argv[1], "r").readlines()
  38. except :
  39.  print "\n[-] Error opening file\n"
  40. for host in hosts:
  41.  host = host.replace("\r","").replace("\n","")
  42.  testar(host)
  43. copyright()
  44.  
  45. #  The End
  46.  
450  Programación / Scripting / [Python] Simple Crack Hash en: 16 Octubre 2011, 02:51 am
Un simple programa para crackear hashes md5

Código
  1. #Simple Crack Hash
  2. #(C) DOddy Hackman 2011
  3. #Test with 202cb962ac59075b964b07152d234b70:123
  4.  
  5. import urllib2,re,sys
  6.  
  7. nave = urllib2.build_opener(urllib2.HTTPCookieProcessor())
  8. nave.add_header = [('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5')]
  9.  
  10.  
  11. def head():
  12. print "\n\n== -- Crack Hash -- ==\n\n"
  13.  
  14. def copyright():
  15. print "\n\n(C) Doddy HAckman 2011\n"
  16.  
  17. def uso():
  18. print "\n[+] crackhash.py <hash>\n\n"
  19.  
  20. def crack(passw):
  21. print "\n[+] Cracking...\n\n"
  22. code = toma("http://md5.hashcracking.com/search.php?md5="+passw)
  23. if re.findall("Cleartext of (.*) is (.*)",code):
  24.  control = re.findall("Cleartext of (.*) is (.*)",code)
  25.  print "[+] Password : "+control[0][1]
  26. else:
  27.  print "\n[-] Not Found\n\n"
  28.  
  29. def toma(web):
  30. return nave.open(web).read()
  31.  
  32. head()
  33.  
  34. if len(sys.argv) == 2 :
  35. crack(sys.argv[1])
  36. else:
  37. uso()
  38.  
  39. copyright()
  40.  
Páginas: 1 ... 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 [45] 46 47 48 49 50 51 52 53 54 55
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines