Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Visual Basics: .EXE Compiler Module

This can be used for a crypter for example.   😉

Source: bit. ly/2Ixr3NQ


Code
Imports System.CodeDom.Compiler
Public Class iCompiler

   Public Shared Sub GenerateExecutable(ByVal Output As String, ByVal Source As String, ByVal Icon As String)
       On Error Resume Next

       Dim Compiler As ICodeCompiler = (New VBCodeProvider).CreateCompiler()
       Dim Parameters As New CompilerParameters()
       Dim cResults As CompilerResults

       Parameters.GenerateExecutable = True
       Parameters.OutputAssembly = Output
       Parameters.CompilerOptions = "/target:winexe"
       Parameters.ReferencedAssemblies.Add("System.dll")
       Parameters.ReferencedAssemblies.Add("System.Data.dll")
       Parameters.ReferencedAssemblies.Add("System.Windows.Forms.dll")

       Dim Version = New Dictionary(Of String, String)
       Version.Add("CompilerVersion", "v2.0")

       Parameters.CompilerOptions = "/filealign:0x00000200 /optimize+ /platform:X86 /debug- /target:winexe"

       Dim ICO As String = IO.Path.GetTempPath & "\iCompiler.ico"

       If Icon <> "" Then
           IO.File.Copy(Icon, ICO)
           Parameters.CompilerOptions &= " /win32icon:" & ICO
       End If

       cResults = Compiler.CompileAssemblyFromSource(Parameters, Source)

       If cResults.Errors.Count > 0 Then
           For Each CompilerError In cResults.Errors
               MessageBox.Show("Error: " & CompilerError.ErrorText, "", MessageBoxButtons.OK, MessageBoxIcon.Error)
           Next
       ElseIf cResults.Errors.Count = 0 Then

       End If
       If Icon <> "" Then : IO.File.Delete(ICO) : End If
   End Sub
End Class
goooooooooood thanks bro for the source
Nice. Now we will see more crypters on the market next week.
https://github.com/malwares/Crypter/blob...ompiler.vb

Link source.
(Apr 5, 2018 01:57 PM)zeroexp Wrote:  https://github.com/malwares/Crypter/blob...ompiler.vb

Link source.

So no new crypters on the market? Feels sad man... :^(
(Apr 5, 2018 02:43 PM)Ninja Wrote:  So no new crypters on the market? Feels sad man... :^(

This method is 100% detected as of now, it has been used more than 5 years ago.
Assert failure(PID 10704 [0x000029d0], Thread: 10960 [0x2ad0]): pBuffer != NULL
(Apr 5, 2018 08:58 PM)Aristocles Wrote:  This method is 100% detected as of now, it has been used more than 5 years ago.

Oh really? I though this was clean and undetected as fuck
(Apr 5, 2018 08:58 PM)Aristocles Wrote:  This method is 100% detected as of now, it has been used more than 5 years ago.

I was being sarcastic broski
(Apr 5, 2018 08:58 PM)Aristocles Wrote:  This method is 100% detected as of now, it has been used more than 5 years ago.

Compiling with csc/vbc is detected?
Probably coding some useless shit.
(Apr 8, 2018 02:52 AM)ubbelol Wrote:  Compiling with csc/vbc is detected?

Seems like it. Your best bet is to uninstall Visual Studio and stop coding in .NET all together. We're all doomed.
https://github.com/Washi1337

"I'll tell you this UDP joke, and I don't care if you will get it or not."


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by DrpriyaOct 4, 2022 11:17 PM 4 330 Oct 4, 2022 11:17 PM
Last Post: LeetSpeed
[.NET] by ZoomersFeb 6, 2019 12:42 AM 1 169 Feb 6, 2019 12:42 AM
Last Post: Eagle 95
[C] by pmtobefriendOct 25, 2018 05:02 PM 2 178 Oct 25, 2018 05:02 PM
Last Post: pmtobefriend