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

 

 


Tema destacado: Introducción a la Factorización De Semiprimos (RSA)


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


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[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 ?


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
perl
Scripting
nobo 0 3,203 Último mensaje 22 Febrero 2005, 07:49 am
por nobo
Perl
Scripting
zhynar_X 2 2,231 Último mensaje 12 Enero 2008, 04:36 am
por GroK
-=PERL=-
Scripting
D4RIO 1 5,722 Último mensaje 25 Febrero 2008, 17:27 pm
por D4RIO
Libros de Perl online [PERL]
Scripting
madpitbull_99 0 3,839 Último mensaje 18 Mayo 2011, 21:49 pm
por madpitbull_99
[Ruby] FinderShells 0.1
Scripting
BigBear 0 1,247 Último mensaje 11 Febrero 2012, 23:04 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines