Raised This Month: $51 Target: $400
 12% 

Desencriptar una string


  
 
 
Thread Tools Display Modes
MexPower
Veteran Member
Join Date: Nov 2012
Old 08-11-2013 , 22:54   Re: Desencriptar una string
#21

Ah ok, yo crei que el encriptado puede ser diferente osea como que se encripta con esa madre randomente
__________________
Allied Modders En Español
MexPower is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 08-12-2013 , 15:30   Re: Desencriptar una string
#22

chile.. las contraseñas que ingresan pueden tener espacios? caracteres especiales como ?!,.: etc? o solo acepta letras y numeros?
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
ChileScripting
BANNED
Join Date: Jan 2013
Old 08-12-2013 , 16:50   Re: Desencriptar una string
#23

Quote:
Originally Posted by rak View Post
chile.. las contraseñas que ingresan pueden tener espacios? caracteres especiales como ?!,.: etc? o solo acepta letras y numeros?
Todo lo permitido en hl

Simple read_args y remove_quotes nada mas como en el plugin sale.
ChileScripting is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 08-12-2013 , 18:03   Re: Desencriptar una string
#24

Quote:
Originally Posted by ChileScripting View Post
Todo lo permitido en hl

Simple read_args y remove_quotes nada mas como en el plugin sale.
fu; voy a hacer un programa... ni ganas de hacerlo en un plugin e.e

edit: creo q esta listo... lo estoy corriendo con una contraseña sin numeros ni mayusculas ni special characters y lleva 1h 30 min; cuando vuelva del trabajo seguro esta terminado

__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 08-13-2013 at 06:01.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
chetah
Senior Member
Join Date: Jan 2013
Location: BangBros
Old 08-13-2013 , 21:14   Re: Desencriptar una string
#25

nice
__________________
Minecraft Mod: | %15
"Tomorrowland <3"
chetah is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 08-14-2013 , 07:38   Re: Desencriptar una string
#26

No se si he entendido bien rak, quieres hacer fuerza bruta para sacar una contraseña encriptada en md5?
Si es como he entendido, y la contraseña tiene una longitud de 34, y va desde 'a' hasta '9' (es decir, minusculas, mayusculas y numeros), el maximo numero de intentos seria(segun la calculadora):

1,5051461824430785920670996495708e+61

Last edited by Stereo; 08-14-2013 at 07:59.
Stereo is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 08-14-2013 , 09:37   Re: Desencriptar una string
#27

lo se pero estaba aburrido y esto me pareció interesante de hacer e.e... le estoy agregando multi thread para aumentar su velocidad

btw... aca esta sin el multi thread;

el Patron son los caracteres a chequear; ej:

abcdefghijklmnñopqrstuvwxyz

abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQ RSTUVWXYZ1234567890

source code

PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Cryptography;

namespace 
MD5Finder
{
    class 
Program
    
{
        static 
void Main(string[] args)
        {

            
String DataSource;

            
int LIMIT//= 7;

            
int SourceNum 0;

            
int izxw//Loop Vars

            
bool Finish false;

            
ulong Counter 0;

            const 
int iPossInt 9iPossPal 8;

            
Console.Write("Ingrese el md5:");

            
Data Console.ReadLine(); //CreateMd52(Console.ReadLine());

            
Console.Write("Ingrese el Patron:");

            
Source Console.ReadLine();

            
Console.Write("Ingrese el la cantidad maxima de caracteres a chequear:");

            
LIMIT int.Parse(Console.ReadLine()) + 1;

            
Console.Clear();

            
Console.WriteLine("Buscando contraseña...\nHora de Inicio: {0}\nIntentos:\nPalabra:"DateTime.Now);

            
StringBuilder Buffer = new StringBuilder("a"LIMIT);

            while (!
Finish)
            {

                if (
Buffer[0] == Source[Source.Length 1])
                {

                    break;

                }
                else
                {

                    
Buffer.Clear();

                    
Buffer.Append(Source[SourceNum]);

                    
SourceNum++;

                    if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                    {

                        
Finish true;

                        break;

                    }
                    else
                    {

                        
Buffer.Append(Source[0]);

                        
1;

                        if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                        {

                            
Finish true;

                            break;

                        }

                        while (!(
Buffer[z] == Source[Source.Length 1] && == LIMIT 2))
                        {

                            if (
== Buffer.Length 1)
                            {

                                
z;

                                for (
1Source.Lengthw++)
                                {

                                    
Buffer[i] = Source[w];

                                    if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                                    {

                                        
Finish true;

                                        break;

                                    }
                                }

                                if (
Finish) break;
                                else
                                {

                                    
Buffer[i] = Source[0];

                                    
Buffer.Append(Source[0]);

                                    if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                                    {

                                        
Finish true;

                                        break;

                                    }
                                }
                            }
                            else
                            {

                                
z++;

                                while (
!= Buffer.Length 1)
                                    
i++;

                                
1;

                                while (
0)
                                {

                                    
1;

                                    
Buffer[i] = Source[0];

                                    for (
1Source.Lengthw++)
                                    {

                                        
Buffer[i] = Source[w];

                                        if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                                        {

                                            
Finish true;

                                            break;

                                        }

                                    }

                                    if (
Finish) break;
                                    else
                                    {

                                        
Buffer[i] = Source[0];

                                        while (
0)
                                        {

                                            if (
Buffer[x] != Source[Source.Length 1])
                                            {

                                                
Buffer[x] = Source[Source.IndexOf(Buffer[x]) + 1];

                                                break;

                                            }
                                            else
                                            {

                                                if (
!= 1)
                                                    
Buffer[x] = Source[0];

                                                
x--;

                                            }
                                        }

                                        if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                                        {

                                            
Finish true;

                                            break;

                                        }

                                        
Buffer[i] = Source[Source.Length 1];
                                    }
                                }

                                if (
Finish) break;
                                else
                                {

                                    if (
Buffer[1] == Source[Source.Length 1])
                                    {

                                        if (
!= LIMIT)
                                        {

                                            
Buffer.Append(Source[0]);

                                            
Buffer[1] = Source[0];

                                        }
                                        else
                                            break;

                                    }
                                    else
                                        
Buffer[1] = Source[Source.IndexOf(Buffer[1]) + 1];


                                    if (
Data == CreateMd5(Buffer.ToString(), ref CounteriPossIntiPossPal))
                                    {

                                        
Finish true;

                                        break;

                                    }
                                }
                            }
                        }
                    }
                }
            }

            if (
Finish)
                
Console.WriteLine("\nContraseña: {0}\nMD5: {1}"Buffer.ToString(), Data);
            else
                
Console.WriteLine("\nLa contraseña no se encontro");

            
Console.WriteLine("Hora de Finalizacion: {0}"DateTime.Now);

            
Console.ReadKey();

        }

        static 
string CreateMd5(string Textref ulong Numint iPossint iPoss2)
        {

            
MD5CryptoServiceProvider Provider = new MD5CryptoServiceProvider();

            
byte[] bData System.Text.Encoding.ASCII.GetBytes(Text);

            
bData Provider.ComputeHash(bData);

            
String Md5 string.Empty;

            for (
int i 0bData.Lengthi++)
            {

                
Md5 += bData[i].ToString("x2").ToLower();

            }

            
PrintConsole(++NumTextiPossiPoss2);

            return 
Md5;

        }

        
/*static string CreateMd52(string Text)
        {

            MD5CryptoServiceProvider Provider = new MD5CryptoServiceProvider();

            byte[] bData = System.Text.Encoding.ASCII.GetBytes(Text);

            bData = Provider.ComputeHash(bData);

            String Md5 = string.Empty;

            for (int i = 0; i < bData.Length; i++)
            {

                Md5 += bData[i].ToString("x2").ToLower();

            }

            return Md5;

        }*/

        
static void PrintConsole(ulong Numstring Wordint iPossint iPoss2)
        {

            
Console.SetCursorPosition(iPoss2);

            
Console.Write(Num);

            
Console.SetCursorPosition(iPoss23);

            
Console.Write(Word+"                                                            ");

            
//Console.WriteLine("Buscando contraseña...\nIntentos: {0}\nPalabra: {1}", Num, Word);
            
        
}

    }

Attached Files
File Type: zip Md5Finder.zip (3.1 KB, 82 views)
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 08-14-2013 at 11:43.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Stereo
Veteran Member
Join Date: Dec 2010
Old 08-14-2013 , 10:15   Re: Desencriptar una string
#28

De todas formas, de la forma que lo hace ChileScripting, si la contraseña ocupa por ejemplo 32 caracteres, lo de FACTORCONVERT no serviría para nada, lo mejor que puedes hacer Chile, para no complicarte, es lo que dijo ILLUSION, resetearle la pw

Last edited by Stereo; 08-15-2013 at 09:01.
Stereo is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 08-14-2013 , 11:33   Re: Desencriptar una string
#29

encontre un error; edito el programa de arriba y su source code;

edit: encontre otro error... por ahora no lo usen

edit2: ya funciona e.e
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 08-14-2013 at 11:42.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
ChileScripting
BANNED
Join Date: Jan 2013
Old 08-14-2013 , 15:37   Re: Desencriptar una string
#30

Lleva 5 minutos y 2 millones de intentos jajajaja XDD

edit: gracias rak

Last edited by ChileScripting; 08-14-2013 at 15:37.
ChileScripting is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode