Bonjour voici un petit programme pour proteger vos code contre reflector.
Outils :
1 TextBox
1 Button
1 OpenFileDialog
Outils :
1 TextBox
1 Button
1 OpenFileDialog
Code:
Private Sub TextBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.Click If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then OpenFileDialog1.FileName = "Executable|*.exe|DLL|*.dll" TextBox1.Text = openFileDialog1.SafeFileName End If End sub
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.text = "" then MsgBox("Selectionner une application a proteger") else Dim App As New FileStream(TextBox1.Text, FileMode.Open, FileAccess.Write) App.Seek(244, SeekOrigin.Begin) App.WriteByte(11) App.Flush() App.Close() End if End sub
Commentaire