If Not Button2("", 1, alphabet, [text]) Then
Loop While Not Button2("", max, alphabet,[text])
If RadioButton1.Checked = True Then End If
If RadioButton1.Checked = True Then
http://msdn.microsoft.com/fr-fr/library/f5h102xz%28v=vs.90%29.aspx</code>
zorro5959
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questiona quoi il serre = pour activer le radiobutton1
If Not Button2("", 1, alphabet, [text]) Then
Qu'est sensé faire ?
If Not Button2("", 1, alphabet, [text]) Then
le but c decrypter MD5.
comment on écrit le code avec ceci.merci
If RadioButton1.Checked = True Then
End If
a quoi il sert re = pour activer le radiobutton1
http://www.cppfrance.com/codes/MD5-BRUTE-FORCE-DICTIONNAIRE_42524.aspx</code>
les codes originaux du brute force :Private Sub backgroundWorkerCassMd5_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs) Dim text As String = Me.textBoxMD5.Text Dim alphabet As String = "azertyuiopqsdfghjklmwxcvbn0123456789" Dim stopwatch As New Stopwatch Dim max As Integer = 1 stopwatch.Start Me.textBoxLongueurMot.Text = ("" & 1) If Not Me.ObjCmd5.CassMd5("", 1, alphabet, [text]) Then Do max += 1 stopwatch.Start Me.textBoxLongueurMot.Text = ("" & max) Loop While Not Me.ObjCmd5.CassMd5("", max, alphabet, [text]) End If Me.textBoxMD5Casser.Text = Me.ObjCmd5.RetourChaine stopwatch.Stop Dim elapsedMilliseconds As Integer = CInt(stopwatch.ElapsedMilliseconds) MessageBox.Show(("Trouvé en : " & CStr((elapsedMilliseconds * 0.001)) & " sec")) End Sub
voila mes code a moi:If RadioButton1.Checked = True Then End If Dim text As String = TextBox2.Text Dim alphabet As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&'()*+,-./:;<=>?@[\]^_'{|}~" Dim stopwatch As New Stopwatch Dim max As Integer = 1 stopwatch.Start() TextBox3.Text = ("" & 1) If Not ("", 1, alphabet, [text]) Then Do max += 1 stopwatch.Start() TextBox3.Text = ("" & max) Loop While Not ("", max, alphabet,[text]) End If TextBox2.Text = TextBox4.Text() stopwatch.Stop() Dim elapsedMilliseconds As Integer = CInt(stopwatch.ElapsedMilliseconds) MessageBox.Show(("Trouvé en : " & CStr((elapsedMilliseconds * 0.001)) & " sec"))
il y a deux erreur radiobutton1:
1:If Not ("", 1, alphabet, [text]) Then
2:Loop While Not ("", max, alphabet,[text])
qui pourais corriger mon probleme.merci
cordialement zorro591
If Not Me.ObjCmd5.CassMd5("", 1, alphabet, [text]) Then
Friend Class Cmd5 ' Methods Public Function CalcMd5(ByVal sChaine As String) As String Dim bytes As Byte() = New ASCIIEncoding().GetBytes(sChaine) Dim buffer As Byte() = New MD5CryptoServiceProvider().ComputeHash(bytes) Dim builder As New StringBuilder(buffer.Length) Dim index As Integer = 0 If (0 < buffer.Length) Then Do builder.Append(buffer(index).ToString("X2")) index += 1 Loop While (index < buffer.Length) End If Return builder.ToString End Function Public Function CassMd5(ByVal chaine As String, ByVal max As Integer, ByVal alphabet As String, ByVal CrypterPass As String) As <MarshalAs(UnmanagedType.U1)> Boolean If (chaine.Length = max) Then If (Me.CalcMd5(chaine) = CrypterPass) Then Me.RetourChaine = chaine Return True End If Return False End If Dim num As Integer = 0 Do If Me.CassMd5((chaine & alphabet.Chars(num)), max, alphabet, CrypterPass) Then Return True End If num += 1 Loop While (num < &H24) Return False End Function ' Fields Public RetourChaine As String End Class
rivate Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged If RadioButton1.Checked = True Then End If Dim text As String = TextBox1.Text Dim alphabet As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&'()*+,-./:;<=>?@[\]^_'{|}~" Dim stopwatch As New Stopwatch Dim ObjCmd5 As New Cmd5 Dim max As Integer = 1 stopwatch.Start() TextBox2.Text = ("" & 1) If Not ObjCmd5.button1("", 1, alphabet, [text]) Then Do max += 1 stopwatch.Start() TextBox2.Text = ("" & max) Loop While Not ObjCmd5.button1("", max, alphabet, [text]) End If TextBox3.Text = ObjCmd5.RetourChaine stopwatch.Stop() Dim elapsedMilliseconds As Integer = CInt(stopwatch.ElapsedMilliseconds) MessageBox.Show(("Trouvé en : " & CStr((elapsedMilliseconds * 0.001)) & " sec")) End Sub
Class Cmd5 Function button1(ByVal chaine As String, ByVal max As Integer, ByVal alphabet As String, ByVal text As String) As Boolean If (chaine.Length = max) Then Me.RetourChaine = chaine Return True End If Dim num As Integer = 0 Do If Me.button1((chaine & alphabet.Chars(num)), max, alphabet, text) Then Return True End If num += 1 Loop While (num < &H24) Return False End Function Public RetourChaine As String End Class
If RadioButton1.Checked = True Then End If